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 mishok13
Recipients mishok13
Date 2009-03-27.15:35:56
SpamBayes Score 4.991285e-12
Marked as misclassified No
Message-id <1238168158.76.0.166850509675.issue5580@psf.upfronthosting.co.za>
In-reply-to
Content
I think the following message is a little bit confusing:
Python 2.7a0 (trunk, Mar 17 2009, 12:06:19)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> open('abc\x00')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: file() argument 1 must be (encoded string without NULL
bytes), not str

This message could be much more better if unneeded parentheses were
removed. :)
The message on line 861 in Python/getargs.c reads much better:
"string without null bytes"
Would it be appropriate to change the message in topic to something like
this?
History
Date User Action Args
2009-03-27 15:35:58mishok13setrecipients: + mishok13
2009-03-27 15:35:58mishok13setmessageid: <1238168158.76.0.166850509675.issue5580@psf.upfronthosting.co.za>
2009-03-27 15:35:57mishok13linkissue5580 messages
2009-03-27 15:35:56mishok13create