homepage

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 pitrou
Recipients benjamin.peterson, docs@python, eli.bendersky, eric.araujo, pitrou, stutzbach, terry.reedy
Date 2011年07月16日.10:43:32
SpamBayes Score 0.19595475
Marked as misclassified No
Message-id <1310812943.3630.0.camel@localhost.localdomain>
In-reply-to <1310807043.84.0.00492707140306.issue12434@psf.upfronthosting.co.za>
Content
> The error Terry sees gets thrown here (in Modules/_io/stringio.c):
> 
> if (!PyUnicode_Check(obj)) {
> PyErr_Format(PyExc_TypeError, "string argument expected, got '%s'",
> Py_TYPE(obj)->tp_name);
> return NULL;
> }
> 
> Therefore, I propose to change this error message to:
> 
> "unicode argument expected, got '%s'"
> 
> as Terry suggested.
> 
> Adding Antoine, Benjamin and Daniel (listed as experts on IO) to nosy.
> 
> Is there an objection to making this change in the error message?
No, the proposal is right.
History
Date User Action Args
2011年07月16日 10:43:32pitrousetrecipients: + pitrou, terry.reedy, benjamin.peterson, stutzbach, eric.araujo, eli.bendersky, docs@python
2011年07月16日 10:43:32pitroulinkissue12434 messages
2011年07月16日 10:43:32pitroucreate

AltStyle によって変換されたページ (->オリジナル) /