Message115163
| Author |
mark.dickinson |
| Recipients |
belopolsky, jdwhitley, mark.dickinson |
| Date |
2010年08月28日.17:54:49 |
| SpamBayes Score |
1.1826149e-05 |
| Marked as misclassified |
No |
| Message-id |
<1283018091.05.0.810653519388.issue9574@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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). |
|
History
|
|---|
| 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 |
|