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 christian.heimes
Recipients christian.heimes, gvanrossum
Date 2007-10-31.09:50:09
SpamBayes Score 0.045233976
Marked as misclassified No
Message-id <1193824211.16.0.246660638775.issue1365@psf.upfronthosting.co.za>
In-reply-to
Content
Hey Guido!

During my testing and local modifications of the PEP 3137 branch I found
a bunch of unit tests that were choking on bytes(1) where bytes is PyString.

The PEP doesn't list bytes(<int>) as a valid constructor, only
buffer(<int>). I don't see a reason why bytes() shouldn't accept an int
when b'1' still creates a byte sequence with 3 elements. Here is a patch
History
Date User Action Args
2007-10-31 09:50:11christian.heimessetspambayes_score: 0.045234 -> 0.045233976
recipients: + christian.heimes, gvanrossum
2007-10-31 09:50:11christian.heimessetspambayes_score: 0.045234 -> 0.045234
messageid: <1193824211.16.0.246660638775.issue1365@psf.upfronthosting.co.za>
2007-10-31 09:50:10christian.heimeslinkissue1365 messages
2007-10-31 09:50:09christian.heimescreate