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 ajaksu2, eric.smith, gvanrossum, mark, mark.dickinson
Date 2009-04-28.09:39:37
SpamBayes Score 2.8032918e-09
Marked as misclassified No
Message-id <1240911579.78.0.0114029619584.issue1588@psf.upfronthosting.co.za>
In-reply-to
Content
Two things that haven't come up so far:

(1) What about parentheses? The current complex repr and str have
parentheses in them, for reasons that I still don't really understand.

I'd suggest leaving them out altogether;  except that I have
the impression (perhaps wrongly) that an empty type code is
supposed to correspond to str.  And given that I don't understand
why the parens were in there in the first place, I'm probably
not a good person to judge whether they should stay in a
formatted complex number.

(2) What about zeros?  The current repr and str leave out the real
part (and the enclosing parens) if it's equal to zero.  Should
format do the same?  I'd say not, except possibly again in the
case where there's no type code.
History
Date User Action Args
2009-04-28 09:39:39mark.dickinsonsetrecipients: + mark.dickinson, gvanrossum, eric.smith, ajaksu2, mark
2009-04-28 09:39:39mark.dickinsonsetmessageid: <1240911579.78.0.0114029619584.issue1588@psf.upfronthosting.co.za>
2009-04-28 09:39:38mark.dickinsonlinkissue1588 messages
2009-04-28 09:39:38mark.dickinsoncreate