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, eric.smith, ezio.melotti, lemburg, mark.dickinson, skrah, vstinner
Date 2010-12-02.17:54:27
SpamBayes Score 0.008461147
Marked as misclassified No
Message-id <1291312471.29.0.130265635062.issue10557@psf.upfronthosting.co.za>
In-reply-to
Content
Is the stripping of whitespace necessary for this fix?

Currently, the complex constructor accepts whitespace both inside and outside the (optional) parentheses:

>>> complex(' ( 2+3j ) ')
(2+3j)

The classes of whitespace accepted in each position are the same.  IIUC, with your patch, that consistency would be lost---is that right?

If the whitespace stripping isn't necessary then I'd prefer to leave that change for another issue.
History
Date User Action Args
2010-12-02 17:54:31mark.dickinsonsetrecipients: + mark.dickinson, lemburg, belopolsky, vstinner, eric.smith, ezio.melotti, skrah
2010-12-02 17:54:31mark.dickinsonsetmessageid: <1291312471.29.0.130265635062.issue10557@psf.upfronthosting.co.za>
2010-12-02 17:54:27mark.dickinsonlinkissue10557 messages
2010-12-02 17:54:27mark.dickinsoncreate