__str__ vs. __repr__
Fred L. Drake, Jr.
fdrake at acm.org
Fri Nov 5 11:08:19 EST 1999
Just van Rossum writes:
> As a step towards a Unicode-savvy Python, would it be an idea to define
> Unicode versions of repr(), str(), ob.__repr__() and ob.__str__()?
Perhaps it would be more useful for file objects to offer an
attribute or query method that allowed client code to determine if the
stream supports unicode?
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
Corporation for National Research Initiatives
More information about the Python-list
mailing list