R. David Murray <rdmur...@bitdance.com> added the comment: That was kind of an abrupt message, let me be more verbose: thank you for wanting to improve python, but as Serhiy pointed out we already solved the problem you are considering via PEP 519. In addition to that we consider str(x) to be the right way to get the string representation of something. Adding an attribute containing the string value is not how python operates in general, so we wouldn't make an exception for this class (and note that this possibility was discussed in the lead up to PEP 519 and rejected).
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32807> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com