This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients belopolsky, jdwhitley, mark.dickinson
Date 2010-08-28.17:54:49
SpamBayes Score 1.18261e-05
Marked as misclassified No
Message-id <>
If someone does want to produce a patch, here's the grammar that I suggest, in pseudo BNF form.  This would be reasonably simple to implement, and is also simple to describe.

whitespace = ' ' | '\t' | '\n' | '\v' | '\f'    # include other non-ASCII whitespace?
binop = [whitespace] ('+' | '-') [whitespace]
imag_marker = 'j' | 'J'
complex_string = float_string binop float_string imag_marker
               | float_string imag_marker
               | float_string
padded_complex_string = [whitespace] complex_string [whitespace]
complex_constructor_input = padded_complex_string
                          | [whitespace] '(' padded_complex_string ')' [whitespace]

where float_string is any string that (a) doesn't contain leading or trailing whitespace, and (b) is accepted by the current float constructor.

This would allow (a) and (f) in the previous message, but not (b) or (c).
Date User Action Args
2010-08-28 17:54:51mark.dickinsonsetrecipients: + mark.dickinson, belopolsky, jdwhitley
2010-08-28 17:54:51mark.dickinsonsetmessageid: <>
2010-08-28 17:54:49mark.dickinsonlinkissue9574 messages
2010-08-28 17:54:49mark.dickinsoncreate