Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_display definition allows empty '{' '}' in Language Definition #48167

Closed
dangyogi mannequin opened this issue Sep 21, 2008 · 2 comments
Closed

set_display definition allows empty '{' '}' in Language Definition #48167

dangyogi mannequin opened this issue Sep 21, 2008 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@dangyogi
Copy link
Mannequin

dangyogi mannequin commented Sep 21, 2008

BPO 3917
Nosy @birkenfeld

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 = 'https://github.com/birkenfeld'
closed_at = <Date 2008-09-21.07:10:30.281>
created_at = <Date 2008-09-21.00:37:57.325>
labels = ['docs']
title = "set_display definition allows empty '{' '}' in Language Definition"
updated_at = <Date 2008-09-21.07:10:30.279>
user = 'https://bugs.python.org/dangyogi'

bugs.python.org fields:

activity = <Date 2008-09-21.07:10:30.279>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-09-21.07:10:30.281>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2008-09-21.00:37:57.325>
creator = 'dangyogi'
dependencies = []
files = []
hgrepos = []
issue_num = 3917
keywords = []
message_count = 2.0
messages = ['73478', '73485']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'dangyogi']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue3917'
versions = ['Python 3.0']

@dangyogi
Copy link
Mannequin Author

dangyogi mannequin commented Sep 21, 2008

The definition for set_display in the Language Definition allows for
empty curly braces by enclosing expression_list | comprehension in
brackets ('[', ']'). These brackets should be removed, as empty curly
braces are a dict_display.

http://docs.python.org/dev/3.0/reference/expressions.html#grammar-token-set_display

@dangyogi dangyogi mannequin assigned birkenfeld Sep 21, 2008
@dangyogi dangyogi mannequin added the docs Documentation in the Doc dir label Sep 21, 2008
@birkenfeld
Copy link
Member

Thanks, fixed in r66522. Also removed the last two paragraphs of the set
display explanation which were pasted from genexps and made no sense,
and added a sentence about {} not constructing a set.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant