On 3/6/07, Georg Brandl <[EMAIL PROTECTED]> wrote:
Patch http://python.org/sf/1673355 changes Ellipsis' repr() to '...'. While this is consistent, the submitter himself noted that it would probably cause problems with doctest. Additionally, '...' is currently used to denote recursive structures in the repr of lists and dicts, so this would have to be changed too. What do you think?
I believe it is not worth changing Elipsis' repr. In fact, the problems with ... may indicate that we shouldn't allow '...' everywere after all... But I expect it isn't really a problem (It would be a syntax error when used like in doctests, and in the case of eval()'ing the repr of a dict/list it would otherwise raise a syntax error. The traditional meaning of elipsis is actually correct, there, although it's not how Python programmers are used to dealing with it.) -- Thomas Wouters <[EMAIL PROTECTED]> Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
_______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
