Skip to content

curses attribute constants list is incomplete #74362

Closed

Description

@zhangyangyu
BPO 30176
Nosy @Yhg1s, @vstinner, @berkerpeksag, @serhiy-storchaka, @zhangyangyu, @Mariatta
PRs
  • bpo-30176: add missing curses cell attributes constants #1302
  • [3.6] bpo-30176: Add missing curses cell attributes constants (GH-1302). #2241
  • [3.5] bpo-30176: Add missing curses cell attributes constants #2277
  • [2.7] bpo-30176: Add missing curses cell attributes constants #2278
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-06-19.14:13:28.288>
    created_at = <Date 2017-04-26.16:10:21.307>
    labels = ['3.7', 'docs']
    title = 'curses attribute constants list is incomplete'
    updated_at = <Date 2017-06-19.14:13:28.287>
    user = 'https://github.com/zhangyangyu'

    bugs.python.org fields:

    activity = <Date 2017-06-19.14:13:28.287>
    actor = 'xiang.zhang'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2017-06-19.14:13:28.288>
    closer = 'xiang.zhang'
    components = ['Documentation']
    creation = <Date 2017-04-26.16:10:21.307>
    creator = 'xiang.zhang'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30176
    keywords = []
    message_count = 9.0
    messages = ['292375', '292377', '292379', '292388', '296155', '296195', '296341', '296342', '296343']
    nosy_count = 7.0
    nosy_names = ['twouters', 'vstinner', 'docs@python', 'berker.peksag', 'serhiy.storchaka', 'xiang.zhang', 'Mariatta']
    pr_nums = ['1302', '2241', '2277', '2278']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue30176'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6', 'Python 3.7']

    Activity

    1. serhiy-storchaka commented on Apr 26, 2017

      @serhiy-storchaka
      Member

      Initially constants was enumerated in alphabetical order (except A_ITALIC). Maybe continue supporting this order? On other hand, it may be worth to group highlighting attributes separately. A_ATTRIBUTES, A_CHARTEXT and A_COLOR are not specific attributes, but bit masks, they also could be grouped separately or moved into a separate table.

      Perhaps it is worth to add notes for A_ITALIC and highlighting attributes. They are not always available.

    2. zhangyangyu commented on Apr 26, 2017

      @zhangyangyu
      MemberAuthor

      +1 for group. I added "The exact constants available are system dependent" to note some may be absent.

    3. serhiy-storchaka commented on Apr 26, 2017

      @serhiy-storchaka
      Member

      I still think that the difference between the groups should be documented in more details. Not all functions that support A_BOLD support also A_ITALIC and A_HORIZONTAL (even if they are defined). Bit masks are used in totally different way than other constants.

    4. zhangyangyu commented on Apr 27, 2017

      @zhangyangyu
      MemberAuthor

      I can't find any official, portable doc about the details so I don't prefer to have them. I support bit-masks are different. Previously I don't what's the better way to organize them, now I have a try. Please check the update. :-)

    5. Mariatta commented on Jun 16, 2017

      @Mariatta
      Member

      New changeset 116dd5e by Mariatta (Xiang Zhang) in branch 'master':
      bpo-30176: Add missing curses cell attributes constants (GH-1302)
      116dd5e

    6. Mariatta commented on Jun 16, 2017

      @Mariatta
      Member

      New changeset 304a96e by Mariatta in branch '3.6':
      bpo-30176: Add missing curses cell attributes constants (GH-1302). (GH-2241)
      304a96e

    7. zhangyangyu commented on Jun 19, 2017

      @zhangyangyu
      MemberAuthor

      New changeset 04521c2 by Xiang Zhang in branch '3.5':
      bpo-30176: Add missing curses cell attributes constants (bpo-2277)
      04521c2

    8. zhangyangyu commented on Jun 19, 2017

      @zhangyangyu
      MemberAuthor

      New changeset b39a748 by Xiang Zhang in branch '2.7':
      bpo-30176: Add missing curses cell attributes constants (bpo-2278)
      b39a748

    9. zhangyangyu commented on Jun 19, 2017

      @zhangyangyu
      MemberAuthor

      Thanks Mariatta and Serhiy!

    10. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifedocsDocumentation in the Doc dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions