Commit Graph

5 Commits

Author SHA1 Message Date
Marc-André Lemburg b2750b5d33 Move the codec decode type checks to bytes/bytearray.decode().
Use faster PyUnicode_FromEncodedObject() for bytes/bytearray.decode().

Add new PyCodec_KnownEncoding() API.

Add new PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode() APIs.

Add missing PyUnicode_AsDecodedObject() to unicodeobject.h

Fix punicode codec to also work on memoryviews.
2008-06-06 12:18:17 +00:00
Georg Brandl e5d68aceb5 Fix misspelling. 2008-06-04 11:30:26 +00:00
Georg Brandl 1e7217de49 Don't return the same object from trivial replace() cases --
it is guaranteed to return a new bytearray.
2008-05-30 12:02:38 +00:00
Georg Brandl 17cb8a85d4 Fix all return types for str/bytes/bytearray docstrings and make the wording more consistent. 2008-05-30 08:20:09 +00:00
Christian Heimes 2c9c7a5f33 Renamed files bytesobject.[ch] and stringobject.[ch]
Fixed Windows build
2008-05-26 13:42:13 +00:00