Bugs item #1758804, was opened at 2007-07-23 10:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1758804&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unicode Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Guillaume (guillaumb) Assigned to: M.-A. Lemburg (lemburg) Summary: unicode(None,charset) raise TypeError Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1758804&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com