[Python-Dev] doctest, unicode repr, and 2to3 (original) (raw)
Glyph Lefkowitz glyph at twistedmatrix.com
Fri Mar 5 05:33:16 CET 2010
- Previous message: [Python-Dev] doctest, unicode repr, and 2to3
- Next message: [Python-Dev] doctest, unicode repr, and 2to3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mar 4, 2010, at 11:30 PM, Barry Warsaw wrote:
If you really want to test that it's a unicode, shouldn't you actually test its type? (I'm not sure what would happen with that under 2to3.)
Presumably 2to3 will be smart enough to translate 'unicode' to 'str' and 'bytes' to... 'bytes'. Just don't use 'str' in 2.x and you should be okay :).
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20100304/f7c01267/attachment.html>
- Previous message: [Python-Dev] doctest, unicode repr, and 2to3
- Next message: [Python-Dev] doctest, unicode repr, and 2to3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]