This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author guillaumb
Recipients
Date 2007-07-23.10:39:54
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Behavior of unicode() builtin is not the same with None as the first argument if we give  the second optional argument.

>>> unicode(None)
u'None'
>>> unicode(None,'ascii')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: coercing to Unicode: need string or buffer, NoneType found

This is confusing.
History
Date User Action Args
2007-08-23 14:58:49adminlinkissue1758804 messages
2007-08-23 14:58:49admincreate