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 mgiuca
Recipients georg.brandl, loewis, mgiuca
Date 2008-08-16.10:26:03
SpamBayes Score 2.2294944e-12
Marked as misclassified No
Message-id <1218882369.59.0.170513169056.issue3565@psf.upfronthosting.co.za>
In-reply-to
Content
I renamed tostring/fromstring to tobytes/frombytes in the array module,
as described above. I then grepped the entire py3k tree for "tostring"
and "fromstring", and carefully replaced all references which pertain to
array objects.

The relatively minor number of these references suggests this won't be a
big problem. All the test cases pass.

I haven't (yet) renamed tounicode/fromunicode to tostring/fromstring.
The more I think about it, the more that sounds like a bad idea (and
could create confusion as to whether this is a character string or byte
string, as Martin pointed out).

The patch (doc+bytesmethods.patch) does both the original
doc-only.patch, plus the renaming and updating of all usages. Use the
above commit log, plus:

Renamed array.tostring to array.tobytes, and array.fromstring to
array.frombytes, to reflect the Python 3.0 terminology.

Updated all references to these methods in Lib to the new names.
History
Date User Action Args
2008-08-16 10:26:09mgiucasetrecipients: + mgiuca, loewis, georg.brandl
2008-08-16 10:26:09mgiucasetmessageid: <1218882369.59.0.170513169056.issue3565@psf.upfronthosting.co.za>
2008-08-16 10:26:07mgiucalinkissue3565 messages
2008-08-16 10:26:06mgiucacreate