curses attribute constants list is incomplete #74362
Copy link
Copy link
Closed
Labels
Description
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']Reactions are currently unavailable
Activity
serhiy-storchaka commentedon Apr 26, 2017
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.
zhangyangyu commentedon Apr 26, 2017
+1 for group. I added "The exact constants available are system dependent" to note some may be absent.
serhiy-storchaka commentedon Apr 26, 2017
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.
zhangyangyu commentedon Apr 27, 2017
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. :-)
Mariatta commentedon Jun 16, 2017
New changeset 116dd5e by Mariatta (Xiang Zhang) in branch 'master':
bpo-30176: Add missing curses cell attributes constants (GH-1302)
116dd5e
Mariatta commentedon Jun 16, 2017
New changeset 304a96e by Mariatta in branch '3.6':
bpo-30176: Add missing curses cell attributes constants (GH-1302). (GH-2241)
304a96e
zhangyangyu commentedon Jun 19, 2017
New changeset 04521c2 by Xiang Zhang in branch '3.5':
bpo-30176: Add missing curses cell attributes constants (bpo-2277)
04521c2
zhangyangyu commentedon Jun 19, 2017
New changeset b39a748 by Xiang Zhang in branch '2.7':
bpo-30176: Add missing curses cell attributes constants (bpo-2278)
b39a748
zhangyangyu commentedon Jun 19, 2017
Thanks Mariatta and Serhiy!