Message115163
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:51 | mark.dickinson | set | recipients:
+ mark.dickinson, belopolsky, jdwhitley |
2010-08-28 17:54:51 | mark.dickinson | set | messageid: <1283018091.05.0.810653519388.issue9574@psf.upfronthosting.co.za> |
2010-08-28 17:54:49 | mark.dickinson | link | issue9574 messages |
2010-08-28 17:54:49 | mark.dickinson | create | |
|