R. David Murray added the comment:

That's a good point; however the goal of the "repr invariant" is to be able to 
losslessly reproduce the object when possible.  The fact that you have to use 
the complex constructor to do that is unfortunate, but is a consequence of the 
underlying problem.  I suspect that literal_eval, on the other hand, should 
reproduce what the interpreter does, but since I think it already doesn't do 
that 100% (though I can't offhand remember what makes me think that) perhaps 
that is a possibility.  I'll reopen the issue to discuss that.

----------
resolution: rejected -> 
stage: resolved -> 
status: closed -> open

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27363>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to