History log of /external/python/cpython3/Objects/bytesobject.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a634e23209e90fd516fae1b4a303d57fdb1b9917 06-Jan-2017 INADA Naoki <songofacandy@gmail.com> Issue #29159: Fix regression in bytes(x) when x.__index__() raises Exception.
/external/python/cpython3/Objects/bytesobject.c
025f8953f1eff11d1eb3cb5d2068a31e6f6c7270 17-Dec-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #29000: Fixed bytes formatting of octals with zero padding in alternate
form.
b1a1619bf042cd9d51d83c5120cec51a6f27e906 17-Dec-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #29000: Fixed bytes formatting of octals with zero padding in alternate
form.
/external/python/cpython3/Objects/bytesobject.c
5646648678295a44aa82636c6e92826651baf33a 31-Oct-2016 Eric V. Smith <eric@trueblade.com> Issue 28128: Print out better error/warning messages for invalid string escapes. Backport to 3.6.
/external/python/cpython3/Objects/bytesobject.c
7b4bcd20041d25d5c5b5f416bc6d1090dd3e374a 16-Sep-2016 Berker Peksag <berker.peksag@gmail.com> Issue #25270: Merge from 3.5
4a72a7b6c4c95f7613486f0e4e20a3d4815a16c5 16-Sep-2016 Berker Peksag <berker.peksag@gmail.com> Issue #25270: Prevent codecs.escape_encode() from raising SystemError when an empty bytestring is passed
/external/python/cpython3/Objects/bytesobject.c
f051e43b22af014364e231c36489e6745993ea34 13-Sep-2016 Christian Heimes <christian@python.org> Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize memcpy().
/external/python/cpython3/Objects/bytesobject.c
621b430a14f7225f2bf7037408743989b63b7848 09-Sep-2016 Benjamin Peterson <benjamin@python.org> remove all usage of Py_LOCAL
/external/python/cpython3/Objects/bytesobject.c
110b6fecbbb86143a4acb568f50eab2c870e7d34 08-Sep-2016 R David Murray <rdmurray@bitdance.com> #27364: Deprecate invalid escape strings in str/byutes.

Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.
/external/python/cpython3/Objects/bytesobject.c
15f44ab043b37c064d6891c7864205fed9fb0dd1 30-Aug-2016 Raymond Hettinger <python@rcn.com> Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
/external/python/cpython3/Objects/bytesobject.c
1b6c6da85d7fd268825e09cc8ff339540c1f77bc 27-Aug-2016 Martin Panter <vadmium+py@gmail.com> Issue #27506: Support bytes/bytearray.translate() delete as keyword argument

Patch by Xiang Zhang.
/external/python/cpython3/Objects/bytesobject.c
eb24988962728b3edbd346ced938c4120e7e2eed 15-Aug-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #27704: Optimized creating bytes and bytearray from byte-like objects
and iterables. Speed up to 3 times for short objects. Original patch by
Naoki Inada.
/external/python/cpython3/Objects/bytesobject.c
ca0da9b0a3be265b6e0744bba2391d6ae77f47ab 10-Jul-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #27473: Fixed possible integer overflow in bytes and bytearray
concatenations. Patch by Xiang Zhang.
06cfb0cd7037795cc7dca2729a241ed2a1fb1628 10-Jul-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #27473: Fixed possible integer overflow in bytes and bytearray
concatenations. Patch by Xiang Zhang.
/external/python/cpython3/Objects/bytesobject.c
f54d7811c3c7a204d7380cdda4fe503bc01b05fd 06-Jul-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #27460: Unified error messages in bytes constructor for integers
in and out of the Py_ssize_t range. Patch by Xiang Zhang.
/external/python/cpython3/Objects/bytesobject.c
e09132f2c764a9e7df1181b1999d517d949c99e6 03-Jul-2016 Serhiy Storchaka <storchaka@gmail.com> Backed out changeset b0087e17cd5e (issue #26765)

For unknown reasons it perhaps caused a crash on 32-bit Windows (issue #).
/external/python/cpython3/Objects/bytesobject.c
355048970b2aef708c5b9f8e5cfcbf56596d94b1 01-Jul-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26765: Moved wrappers for bytes and bytearray methods to common header
file.
/external/python/cpython3/Objects/bytesobject.c
0855e706aa7fed842e18b0ce14e18d6574318643 01-Jul-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #27007: The fromhex() class methods of bytes and bytearray subclasses
now return an instance of corresponding subclass.
/external/python/cpython3/Objects/bytesobject.c
e514093a2ff13c2479dae7967fa21fef21e62267 30-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #27125: Merge typo fixes from 3.5
a90a4a96517fe25b57246083076b247f417d737d 30-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #27125: Remove duplicated words from documentation and comments
/external/python/cpython3/Objects/bytesobject.c
fb81d3cbe72e406a47962cee0a832d7b67ad11a3 05-May-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26765: Moved common code for the replace() method of bytes and bytearray
to a template file.
/external/python/cpython3/Objects/bytesobject.c
dd40fc3e57da1988bffa35e3aad33fa0a6dda813 04-May-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26765: Moved common code and docstrings for bytes and bytearray methods
to bytes_methods.c.
/external/python/cpython3/Objects/bytesobject.c
7a9579c0ce02ff0254c6aa02952dbcdcdbac6d33 02-May-2016 Serhiy Storchaka <storchaka@gmail.com> Got rid of redundand "self" parameter declarations.

Argument Clinic is now able to infer all needed information.
/external/python/cpython3/Objects/bytesobject.c
71dc3d878a44c8fc6b9b1743750600d4902538f2 26-Apr-2016 Victor Stinner <victor.stinner@gmail.com> Issue #25349, #26249: Fix memleak in formatfloat()
/external/python/cpython3/Objects/bytesobject.c
e914d413128e504f4bb4c46315c9afef104388c9 15-Apr-2016 Victor Stinner <victor.stinner@gmail.com> Issue #26766: Fix _PyBytesWriter_Finish()

Return a bytearray object when bytearray is requested and when the small buffer
is used.

Fix also test_bytes: bytearray%args must return a bytearray type.
/external/python/cpython3/Objects/bytesobject.c
c9a59e6e4f221f492578a03546e3d7c96b9da1b8 15-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26764: Fixed SystemError in bytes.__rmod__.
/external/python/cpython3/Objects/bytesobject.c
f01e408c1688a207eba18444da8c151c872fba59 10-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
57a01d3a0ee20ee9eea69b658c6bac0f39541625 10-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
/external/python/cpython3/Objects/bytesobject.c
03f17f86717372ca010273dc8946fd19914a534b 10-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #17339: Improved TypeError message in bytes constructor.
/external/python/cpython3/Objects/bytesobject.c
ec39756960def5fdd8cb0ae191429f2f8e229f55 06-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #22570: Renamed Py_SETREF to Py_XSETREF.
48842714b948fa239392ddd7e207151d5fcb8bc7 06-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #22570: Renamed Py_SETREF to Py_XSETREF.
/external/python/cpython3/Objects/bytesobject.c
ab479c49d31be03e85b824b8444b474b28e6db71 30-Mar-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26494: Fixed crash on iterating exhausting iterators.

Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
fbb1c5ee068d209e33f6e15ecb4821d5d8b107fa 30-Mar-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26494: Fixed crash on iterating exhausting iterators.

Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
/external/python/cpython3/Objects/bytesobject.c
fac395681fb758401d17974f258b17d285336c57 21-Mar-2016 Victor Stinner <victor.stinner@gmail.com> Optimize bytes.replace(b'', b'.')

Issue #26574: Optimize bytes.replace(b'', b'.') and
bytearray.replace(b'', b'.'): up to 80% faster. Patch written by Josh Snider.
/external/python/cpython3/Objects/bytesobject.c
ef1585eb9a488ae8ce3ff057f43a7048b941cc1c 25-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #25923: Added more const qualifiers to signatures of static and private functions.
/external/python/cpython3/Objects/bytesobject.c
f0069403518243e37da0aaaa1148d9dfee1adebd 24-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #20440: Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
5a57ade58ec5bee85db41b8ce1340ff077781b65 24-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #20440: Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
/external/python/cpython3/Objects/bytesobject.c
3182db356c8e6106b7bdab907739c741c508037a 20-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #25766: Special method __bytes__() now works in str subclasses.
5aac3ed79999f6948d11f979ab3e42b9b60e9083 20-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #25766: Special method __bytes__() now works in str subclasses.
/external/python/cpython3/Objects/bytesobject.c
bb6e4a0b31402f2e242f8f4be9a26e07d3dcc1b7 25-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #24731: Fixed crash on converting objects with special methods
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
f9afda57ad7d0394531982b2c9de8301c5a54e45 25-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #24731: Fixed crash on converting objects with special methods
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
15095800a381a396cbc077cb5320203a8feae51a 25-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #24731: Fixed crash on converting objects with special methods
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
/external/python/cpython3/Objects/bytesobject.c
413fdcea21908055cb8acad28a94b8f72eb2ffec 14-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #24821: Refactor STRINGLIB(fastsearch_memchr_1char) and split it on
STRINGLIB(find_char) and STRINGLIB(rfind_char) that can be used independedly
without special preconditions.
/external/python/cpython3/Objects/bytesobject.c
c3d2bc19e47892e19c9ad6a048047964dbb78cb6 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Use _PyBytesWriter in _PyBytes_FromIterator()
/external/python/cpython3/Objects/bytesobject.c
c5c3ba4becf98b37b4dd92333c144b0d95faef03 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Add _PyBytesWriter_Resize() function

This function gives a control to the buffer size without using min_size.
/external/python/cpython3/Objects/bytesobject.c
3c50ce39bfe0b5b905432b195c5bb1cf939f4273 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Factorize _PyBytes_FromList() and _PyBytes_FromTuple() code using a C macro
/external/python/cpython3/Objects/bytesobject.c
f2eafa323bc16e11dd4564ec68f27e8ea8b9c254 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Split PyBytes_FromObject() into subfunctions
/external/python/cpython3/Objects/bytesobject.c
2ec8063cc960d32e244dc6a27567f66a447bbda3 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Modify _PyBytes_DecodeEscapeRecode() to use _PyBytesAPI

* Don't overallocate by 400% when recode is needed: only overallocate on demand
using _PyBytesWriter.
* Use _PyLong_DigitValue to convert hexadecimal digit to int
* Create _PyBytes_DecodeEscapeRecode() subfunction
/external/python/cpython3/Objects/bytesobject.c
f6358a7e4c635a74202e73c76a01f5046e1b7c36 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> _PyBytesWriter_Alloc(): only use 10 bytes of the small buffer in debug mode to
enhance code to detect buffer under- and overflow.
/external/python/cpython3/Objects/bytesobject.c
2bf8993db966256d564d87865ceddf0e33c02500 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Optimize bytes.fromhex() and bytearray.fromhex()

Issue #25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now
between 2x and 3.5x faster. Changes:

* Use a fast-path working on a char* string for ASCII string
* Use a slow-path for non-ASCII string
* Replace slow hex_digit_to_int() function with a O(1) lookup in
_PyLong_DigitValue precomputed table
* Use _PyBytesWriter API to handle the buffer
* Add unit tests to check the error position in error messages
/external/python/cpython3/Objects/bytesobject.c
772b2b09f279fdcb01bbd703735d35bd02dd8ec1 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Optimize bytearray % args

Issue #25399: Don't create temporary bytes objects: modify _PyBytes_Format() to
create work directly on bytearray objects.

* Rename _PyBytes_Format() to _PyBytes_FormatEx() just in case if something
outside CPython uses it
* _PyBytes_FormatEx() now uses (char*, Py_ssize_t) for the input string, so
bytearray_format() doesn't need tot create a temporary input bytes object
* Add use_bytearray parameter to _PyBytes_FormatEx() which is passed to
_PyBytesWriter, to create a bytearray buffer instead of a bytes buffer

Most formatting operations are now between 2.5 and 5 times faster.
/external/python/cpython3/Objects/bytesobject.c
661aaccf9def380540cc1d440761159a414094d1 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Add use_bytearray attribute to _PyBytesWriter

Issue #25399: Add a new use_bytearray attribute to _PyBytesWriter to use a
bytearray buffer, instead of using a bytes object.
/external/python/cpython3/Objects/bytesobject.c
03dab786b2f504791ac46a9f9b9db82e634efd05 14-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Rewrite PyBytes_FromFormatV() using _PyBytesWriter API

* Add much more unit tests on PyBytes_FromFormatV()
* Remove the first loop to compute the length of the output string
* Use _PyBytesWriter to handle the bytes buffer, use overallocation
* Cleanup the code to make simpler and easier to review
/external/python/cpython3/Objects/bytesobject.c
e9aa5950bb6ae7eab553e915402eddcb610565e4 12-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Fix compilation error in _PyBytesWriter_WriteBytes() on Windows
/external/python/cpython3/Objects/bytesobject.c
6c2cdae9e6b664a0b3e204773aeb8954ae1508e1 12-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Writer APIs: use empty string singletons

Modify _PyBytesWriter_Finish() and _PyUnicodeWriter_Finish() to return the
empty bytes/Unicode string if the string is empty.
/external/python/cpython3/Objects/bytesobject.c
c29e29bed1ea1efc1a0cd3178fac96be4d763ecf 12-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Relax _PyBytesWriter API

Don't require _PyBytesWriter pointer to be a "char *". Same change for
_PyBytesWriter_WriteBytes() parameter.

For example, binascii uses "unsigned char*".
/external/python/cpython3/Objects/bytesobject.c
0cdad1e2bc8794cdbba8a89e2a4177a7dedec313 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Issue #25349: Add fast path for b'%c' % int

Optimize also %% formater.
/external/python/cpython3/Objects/bytesobject.c
be75b8cf2310e0be0f32590a1c0df919058002e8 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Issue #25349: Optimize bytes % int

Optimize bytes.__mod__(args) for integere formats: %d (%i, %u), %o, %x and %X.
_PyBytesWriter is now used to format directly the integer into the writer
buffer, instead of using a temporary bytes object.

Formatting is between 30% and 50% faster on a microbenchmark.
/external/python/cpython3/Objects/bytesobject.c
ce179bf6baed91ba84cc3ff647e96287c3b8e2f2 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Add _PyBytesWriter_WriteBytes() to factorize the code
/external/python/cpython3/Objects/bytesobject.c
ad7715891e3c6c51b4860e0d496843ee5417206b 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> _PyBytesWriter: simplify code to avoid "prealloc" parameters

Substract preallocate bytes from min_size before calling
_PyBytesWriter_Prepare().
/external/python/cpython3/Objects/bytesobject.c
53926a1ce2772ea5dc1c4fb8c19f5f9ae461750d 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> _PyBytesWriter: rename size attribute to min_size
/external/python/cpython3/Objects/bytesobject.c
fa7762ec066aa3632a25b6a52bb7597b8f17c2f3 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API

* Thanks to the _PyBytesWriter API, output smaller than 512 bytes are allocated
on the stack and so avoid calling _PyBytes_Resize(). Because of that, change
the default buffer size to fmtcnt instead of fmtcnt+100.
* Rely on _PyBytesWriter algorithm to overallocate the buffer instead of using
a custom code. For example, _PyBytesWriter uses a different overallocation
factor (25% or 50%) depending on the platform to get best performances.
* Disable overallocation for the last write.
* Replace C loops to fill characters with memset()
* Add also many comments to _PyBytes_Format()
* Remove unused FORMATBUFLEN constant
* Avoid the creation of a temporary bytes object when formatting a floating
point number (when no custom formatting option is used)
* Fix also reference leaks on error handling
* Use Py_MEMCPY() to copy bytes between two formatters (%)
/external/python/cpython3/Objects/bytesobject.c
b3653a34580684d210daed5cbb8a676c4d7a33fd 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Issue #25318: cleanup code _PyBytesWriter

Rename "stack buffer" to "small buffer".

Add also an assertion in _PyBytesWriter_GetPos().
/external/python/cpython3/Objects/bytesobject.c
b13b97d3b881daaab8f3bf32cc851eac9b895c52 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Issue #25318: Fix compilation error

Replace "#if Py_DEBUG" with "#ifdef Py_DEBUG".
/external/python/cpython3/Objects/bytesobject.c
0016507c168fa942d7856bdef371cd8d494b140b 09-Oct-2015 Victor Stinner <victor.stinner@gmail.com> Issue #25318: Move _PyBytesWriter to bytesobject.c

Declare also the private API in bytesobject.h.
/external/python/cpython3/Objects/bytesobject.c
d92d4efe3d1fba48e8b20ec42bec243abea32545 20-Jul-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind()
for single-byte argument on Linux.
/external/python/cpython3/Objects/bytesobject.c
ac5569b1fa483c50edca82bab1ab0a8a927ba86a 30-May-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
fa494fd88384acc52cf9292d0c89e2961c8f747f 30-May-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
/external/python/cpython3/Objects/bytesobject.c
8b2e8b6cce4960e945c7c635c350c8e44a0f9022 30-May-2015 Serhiy Storchaka <storchaka@gmail.com> Specify default values of semantic booleans in Argument Clinic generated signatures as booleans.
/external/python/cpython3/Objects/bytesobject.c
8cb6569fe14ba8e57ab1a2bea68594747852a9d1 26-Apr-2015 Gregory P. Smith <greg@krypto.org> Implements issue #9951: Adds a hex() method to bytes, bytearray, & memoryview.

Also updates a few internal implementations of the same thing to use the
new built-in code.

Contributed by Arnon Yaari.
/external/python/cpython3/Objects/bytesobject.c
4e25913f9fa6c5f67c4591459a8eed2db4178367 18-Apr-2015 Christian Heimes <christian@python.org> Remove local dead code. In both blocks dir is always greater 0.
/external/python/cpython3/Objects/bytesobject.c
89964c48d1493e5fe87f1ca3ac78029cfbd3b64b 15-Apr-2015 Larry Hastings <larry@hastings.org> Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.
/external/python/cpython3/Objects/bytesobject.c
1009bf18b38a8d36298575191dd8fdf43f8f9097 03-Apr-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23501: Argumen Clinic now generates code into separate files by default.
/external/python/cpython3/Objects/bytesobject.c
41525e31a5a40c1c20a5115aed9609f49c60b43a 03-Apr-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23466: Raised OverflowError if %c argument is out of range.
/external/python/cpython3/Objects/bytesobject.c
2c7b5a9d0d6587a38f24da1f96f581bad0d3ded6 30-Mar-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23466: %c, %o, %x, and %X in bytes formatting now raise TypeError on
non-integer input.
/external/python/cpython3/Objects/bytesobject.c
dabbfe7b3017ff6ba62fb4c44c63a43c180532dd 25-Mar-2015 Victor Stinner <victor.stinner@gmail.com> Issue #23573: Fix bytes.rfind() and bytearray.rfind() on Windows

Windows has no memrchr() function.

This change is only a workaround, the optimization must be reenabled on other
platforms.
/external/python/cpython3/Objects/bytesobject.c
d9d769fcdd573ab12b628798288c02dceba53505 24-Mar-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23573: Increased performance of string search operations (str.find,
str.index, str.count, the in operator, str.split, str.partition) with
arguments of different kinds (UCS1, UCS2, UCS4).
/external/python/cpython3/Objects/bytesobject.c
1dd49824df49d0132b21d90c12bb596da89d7a17 20-Mar-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23681: The -b option now affects comparisons of bytes with int.
/external/python/cpython3/Objects/bytesobject.c
62e977f1b6d52a973304db9b0268aece99cb6c42 11-Mar-2015 Ethan Furman <ethan@stoneleaf.us> Close issue23467: add %r compatibility to bytes and bytearray
/external/python/cpython3/Objects/bytesobject.c
63afdaa1105de24e87658e82de314a37d341f02b 10-Mar-2015 Antoine Pitrou <solipsis@pitrou.net> Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects.
a654510150cb738b61033c32e30bd4be9f0ed6ed 10-Mar-2015 Antoine Pitrou <solipsis@pitrou.net> Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects.
/external/python/cpython3/Objects/bytesobject.c
26861b0b29fdf64fba8cd120183408495f2c80e2 16-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23450: Fixed possible integer overflows.
/external/python/cpython3/Objects/bytesobject.c
ea5ce5a15e15e661fd51212d25a5b216f7b2a7d1 10-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23383: Cleaned up bytes formatting.
/external/python/cpython3/Objects/bytesobject.c
83848704f550912fe559988d6de0b5105844d75f 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #22896: Fixed using _getbuffer() in recently added _PyBytes_Format().
/external/python/cpython3/Objects/bytesobject.c
3dd3e26680110b3eeadedc9c8457dfe1db2b913c 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
and PyObject_AsWriteBuffer().
4fdb68491e8b2d044c9173babf625bbb815c39d1 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
and PyObject_AsWriteBuffer().
/external/python/cpython3/Objects/bytesobject.c
5474d0ba19e7fadf98440369216b0b66d6b7e647 26-Jan-2015 Victor Stinner <victor.stinner@gmail.com> Issue #20284: Fix a compilation warning on Windows

Explicitly cast the long to char.
/external/python/cpython3/Objects/bytesobject.c
a8efc9601da1fb1402253124767edbb1b1270a8b 26-Jan-2015 Benjamin Peterson <benjamin@python.org> ensure ilen is initialized when it is assigned to len
/external/python/cpython3/Objects/bytesobject.c
b95b56150fc3e7834783b54acdddeaed4fe44e27 24-Jan-2015 Ethan Furman <ethan@stoneleaf.us> Issue20284: Implement PEP461
/external/python/cpython3/Objects/bytesobject.c
83cf99d733acb49c70dd9548eeccfc724e707531 02-Dec-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20335: bytes constructor now raises TypeError when encoding or errors
is specified with non-string argument. Based on patch by Renaud Blanch.
/external/python/cpython3/Objects/bytesobject.c
0b2cacb42a7a3a79c1d5c491c584f57aa5c82417 02-Dec-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20335: bytes constructor now raises TypeError when encoding or errors
is specified with non-string argument. Based on patch by Renaud Blanch.
dfbeb160de829d16d3668dec5bc902a31ad25835 13-Oct-2014 Larry Hastings <larry@hastings.org> Issue #22615: Argument Clinic now supports the "type" argument for the
int converter. This permits using the int converter with enums and
typedefs.
/external/python/cpython3/Objects/bytesobject.c
861470c83607a4312d3c65bce3e18414b965e586 05-Oct-2014 R David Murray <rdmurray@bitdance.com> #16518: Bring error messages in harmony with docs ("bytes-like object")

Some time ago we changed the docs to consistently use the term 'bytes-like
object' in all the contexts where bytes, bytearray, memoryview, etc are used.
This patch (by Ezio Melotti) completes that work by changing the error
messages that previously reported that certain types did "not support the
buffer interface" to instead say that a bytes-like object is required. (The
glossary entry for bytes-like object references the discussion of the buffer
protocol in the docs.)
/external/python/cpython3/Objects/bytesobject.c
cdfb7691dd3aa4b1a868638a5654c4098b77d0d7 30-Sep-2014 Benjamin Peterson <benjamin@python.org> merge 3.4
c2cfa8ddd8dbad8e09b3f3cec56b0727c9370af1 30-Sep-2014 Benjamin Peterson <benjamin@python.org> merge 3.3
d48bc9468f75e57249da5e3518c42d4c8b83ba29 30-Sep-2014 Benjamin Peterson <benjamin@python.org> these variables ought to be Py_ssize_t
/external/python/cpython3/Objects/bytesobject.c
36a24f3f43c5eab4f02bbff5d7c47accfb509f65 30-Sep-2014 Benjamin Peterson <benjamin@python.org> merge 3.4 (#22519)
18f836fb658a5a545e8f9e3c72751759836322f8 30-Sep-2014 Benjamin Peterson <benjamin@python.org> merge 3.3 (closes #22519)
42ff105539bedfeb8e9a8cb9b8133ac15e027e6f 30-Sep-2014 Benjamin Peterson <benjamin@python.org> fix overflow checking in PyBytes_Repr (closes #22519)
/external/python/cpython3/Objects/bytesobject.c
20b39b27d96b7c068f364ea79584feaa70fd15b6 28-Sep-2014 Serhiy Storchaka <storchaka@gmail.com> Removed redundant casts to `char *`.
Corresponding functions now accept `const char *` (issue #1772673).
/external/python/cpython3/Objects/bytesobject.c
d8a1447c9980be5f1d8ae806f7aecd814b1cd6f6 06-Sep-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #22215: Now ValueError is raised instead of TypeError when str or bytes
argument contains not permitted null character or byte.
/external/python/cpython3/Objects/bytesobject.c
049e509a9f87d1f82ae0ebfe21c226f37ce9fbdb 17-Aug-2014 Victor Stinner <victor.stinner@gmail.com> Issue #22207: Fix "comparison between signed and unsigned integers" warning in
test checking for integer overflow on Py_ssize_t type: cast explicitly to
size_t.
/external/python/cpython3/Objects/bytesobject.c
88d146b7b9cece5c3e2e85feedce3417a589e8c3 17-Aug-2014 Victor Stinner <victor.stinner@gmail.com> Optimize PyBytes_FromObject(): only overallocate when size=0 to not get the
empty string singleton
/external/python/cpython3/Objects/bytesobject.c
ffff1440d118cae189a6c2baf595dda52cdc7c3a 02-Aug-2014 Terry Jan Reedy <tjreedy@udel.edu> Issue #22077: Improve index error messages for bytearrays, bytes, lists, and
tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
Original patch by Claudiu Popa.
/external/python/cpython3/Objects/bytesobject.c
0efea322a9733c5184eaacea4e3a6484609de587 27-Jul-2014 Martin v. Löwis <martin@v.loewis.de> Rerun AC, silence pointer conversion warnings.
/external/python/cpython3/Objects/bytesobject.c
7252a6e81e1e1616057fa806836ec85ec88e1c1c 27-Jul-2014 Martin v. Löwis <martin@v.loewis.de> Issue #20179: Apply Argument Clinic to bytes and bytearray.
Patch by Tal Einat.
/external/python/cpython3/Objects/bytesobject.c
bca9694ac1cc41f091fb78badbc1d1673b35077a 06-May-2014 Zachary Ware <zachary.ware@gmail.com> Issue #21442: Fix MSVC compiler warning introduced by issue21377.
/external/python/cpython3/Objects/bytesobject.c
db067af12a5ebb889874e47d8177f9c4a3dc9a68 02-May-2014 Victor Stinner <victor.stinner@gmail.com> Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now
using ``calloc()`` instead of ``malloc()`` for large objects which is faster
and use less memory (until the bytearray buffer is filled with data).
/external/python/cpython3/Objects/bytesobject.c
161d695fb0455ce52530d4f43a9eac4c738f64bb 01-May-2014 Antoine Pitrou <solipsis@pitrou.net> Issue #21377: PyBytes_Concat() now tries to concatenate in-place when the first argument has a reference count of 1.
Patch by Nikolaus Rath.
/external/python/cpython3/Objects/bytesobject.c
25dded041fe532fcb041b6e68582bf76b4968132 05-Mar-2014 Kristján Valur Jónsson <sweskman@gmail.com> Make the various iterators' "setstate" sliently and consistently clip the
index. This avoids the possibility of setting an iterator to an invalid
state.
/external/python/cpython3/Objects/bytesobject.c
c5cc5011ac33f96a8bf28e3ba088980fd5e71d7a 05-Mar-2014 Kristján Valur Jónsson <sweskman@gmail.com> Make the various iterators' "setstate" sliently and consistently clip the
index. This avoids the possibility of setting an iterator to an invalid
state.
507ac3a5910a5404013883ce45ad2f9cf0509b0e 13-Dec-2013 Victor Stinner <victor.stinner@gmail.com> (Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if
"%c" argument is not in range [0; 255].
c9362cf86ae302e89207dff7206b1c6bba413e33 13-Dec-2013 Victor Stinner <victor.stinner@gmail.com> Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
argument is not in range [0; 255].
/external/python/cpython3/Objects/bytesobject.c
d3afe781b15e47784273bbb82da6122bf7be999e 04-Dec-2013 Christian Heimes <christian@cheimes.de> Silence expression result unused warnings with clang.
The PyObject_INIT() macros returns obj:

../cpython/Objects/methodobject.c:32:23: warning: expression result unused [-Wunused-value]
PyObject_INIT(op, &PyCFunction_Type);
^~
../cpython/Include/objimpl.h:139:69: note: expanded from macro 'PyObject_INIT'
( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
^
1 warning generated.
/external/python/cpython3/Objects/bytesobject.c
985ecdcfc29adfc36ce2339acf03f819ad414869 20-Nov-2013 Christian Heimes <christian@cheimes.de> ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.
Python now uses SipHash24 on all major platforms.
/external/python/cpython3/Objects/bytesobject.c
745d54d2fa1870bbb933579b390fdd1702874ead 16-Nov-2013 Ezio Melotti <ezio.melotti@gmail.com> #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs().
/external/python/cpython3/Objects/bytesobject.c
fd9e44db371f6e097b8756a004ac3783f7fb2df0 04-Nov-2013 Victor Stinner <victor.stinner@gmail.com> Issue #16286: optimize PyUnicode_RichCompare() for identical strings (same
pointer) for any operator, not only Py_EQ and Py_NE.

Code of bytes_richcompare() and PyUnicode_RichCompare() is now closer.
/external/python/cpython3/Objects/bytesobject.c
c8bc5377ac59c6e6af5c0e925fa0af7d9df7ebc0 04-Nov-2013 Victor Stinner <victor.stinner@gmail.com> Issue #16286: write a new subfunction bytes_compare_eq()

* cleanup bytes_richcompare()
* PyUnicode_RichCompare(): replace a test with a XOR
/external/python/cpython3/Objects/bytesobject.c
986e224d5a71342b683975ea0240315a8264616b 29-Oct-2013 Victor Stinner <victor.stinner@gmail.com> Issue #18408: Fix error handling in PyBytes_FromObject()

_PyBytes_Resize(&new) sets new to NULL on error, don't call Py_DECREF() with NULL.
/external/python/cpython3/Objects/bytesobject.c
c679227e31245b0e8dec74a1f7cc77710541d985 19-Oct-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #1772673: The type of `char*` arguments now changed to `const char*`.
/external/python/cpython3/Objects/bytesobject.c
9ed5f2726607c57c894af24159b6a7ccf660da7f 13-Aug-2013 Antoine Pitrou <solipsis@pitrou.net> Issue #18722: Remove uses of the "register" keyword in C code.
/external/python/cpython3/Objects/bytesobject.c
b8cbba5877df478966092ce069b6cedea8487c53 10-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
801d955f04d46994ac5bc7270fea86a7703c5192 10-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
5e61f14c6dd29982da9364696bc864604b143a66 10-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
/external/python/cpython3/Objects/bytesobject.c
8911ef5b6da16e4d4a640bcd70ee4c473aa1178f 02-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #17034: Use Py_CLEAR() in bytesobject.c.
d357a3f841ee41cee55575b5729658b5ecd45902 02-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #17034: Use Py_CLEAR() in bytesobject.c.
f458a036178844beae8bc332e5b5a0570276be3c 02-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #17034: Use Py_CLEAR() in bytesobject.c.
/external/python/cpython3/Objects/bytesobject.c
f584aba3a506e72a59e2e834bc56a6e97f4ab4dd 25-Jan-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
e58785b200241bc9ced51a30bce7781a3c0c629c 25-Jan-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
ace3ad3bf79a8a3b0ea9d1de97c8f8b59d1ac7b2 25-Jan-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
/external/python/cpython3/Objects/bytesobject.c
7643c92cdd0e8a3cfd83be9edae3964097b63f0e 19-Dec-2012 Benjamin Peterson <benjamin@python.org> merge 3.3 (#16722)
5ff3f73d94305900c0773e67ebdd9701d856a0fe 19-Dec-2012 Benjamin Peterson <benjamin@python.org> try to call __bytes__ before __index__ (closes #16722)
/external/python/cpython3/Objects/bytesobject.c
27cbcd6241d787b5e99c6ed05ec8377051f397aa 11-Dec-2012 Gregory P. Smith <greg@krypto.org> Fix the internals of our hash functions to used unsigned values during hash
computation as the overflow behavior of signed integers is undefined.

In practice we require compiling everything with -fwrapv which forces overflow
to be defined as twos compliment but this keeps the code cleaner for checkers
or in the case where someone has compiled it without -fwrapv or their
compiler's equivalent.

Found by Clang trunk's Undefined Behavior Sanitizer (UBSan).

Cleanup only - no functionality or hash values change.
/external/python/cpython3/Objects/bytesobject.c
e7f2186f994f84e050b869559132d28d4fe26614 08-Dec-2012 Chris Jerdonek <chris.jerdonek@gmail.com> Issue #16495: remove extraneous NULL encoding check from bytes_decode().

The NULL encoding check in bytes_decode() was unnecessary because this case
is already taken care of by the call to _Py_normalize_encoding() inside
PyUnicode_Decode().
/external/python/cpython3/Objects/bytesobject.c
cfc22b4a9b8d6176d90ef1eb59f51aa095300ded 16-Oct-2012 Antoine Pitrou <solipsis@pitrou.net> Issue #15958: bytes.join and bytearray.join now accept arbitrary buffer objects.
/external/python/cpython3/Objects/bytesobject.c
aa9a79d27958ae5afb6c8769a2b342d98677c091 06-Oct-2012 Armin Ronacher <armin.ronacher@active-4.com> Issue #16148: implemented PEP 424
/external/python/cpython3/Objects/bytesobject.c
7d12d9df136b45785fb945dcb4812fdb068a2498 28-Jul-2012 Stefan Krah <skrah@bytereef.org> Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays.
/external/python/cpython3/Objects/bytesobject.c
ca28e99202cb31506c071792e463afbcdb5738f4 25-May-2012 Larry Hastings <larry@hastings.org> Issue #14889: PyBytes_FromObject(bytes) now just increfs and returns.
Previously, if you passed in a bytes object, it would create a whole
new object.
/external/python/cpython3/Objects/bytesobject.c
d0880d57b053179a8dd91f2b6fbcb5b5ddf56a1d 27-Apr-2012 Victor Stinner <victor.stinner@gmail.com> Simplify and optimize formatlong()

* Remove _PyBytes_FormatLong(): inline it into formatlong()
* the input type is always a long, so remove the code for bool
* don't duplicate the string if the length does not change
* Use PyUnicode_DATA() instead of _PyUnicode_AsString()
/external/python/cpython3/Objects/bytesobject.c
8f825060f1c168b913f2ac299ca48d4e9375f34d 27-Apr-2012 Victor Stinner <victor.stinner@gmail.com> Check newly created consistency using _PyUnicode_CheckConsistency(str, 1)

* In debug mode, fill the string data with invalid characters
* Simplify also reference counting in PyCodec_BackslashReplaceErrors()
and PyCodec_XMLCharRefReplaceError()
/external/python/cpython3/Objects/bytesobject.c
ca819c3c9d2651bcaeec311915a83dd176acbd13 09-Apr-2012 Benjamin Peterson <benjamin@python.org> merge 3.1 (#14509)
f6622c8a3e6bdf92778359417d0fa6c3e6bda909 09-Apr-2012 Benjamin Peterson <benjamin@python.org> fix build without Py_DEBUG and DNDEBUG (closes #14509)
/external/python/cpython3/Objects/bytesobject.c
a701388de1135241b5a8e4c970e06c0e83a66dc0 05-Apr-2012 Antoine Pitrou <solipsis@pitrou.net> Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI.
/external/python/cpython3/Objects/bytesobject.c
31668b8f7a3efc7b17511bb08525b28e8ff5f23a 03-Apr-2012 Kristján Valur Jónsson <kristjan@ccpgames.com> Issue #14288: Serialization support for builtin iterators.
/external/python/cpython3/Objects/bytesobject.c
cda6b6d60d96e6f755da92deb5e4066839095791 26-Feb-2012 Ezio Melotti <ezio.melotti@gmail.com> #14081: The sep and maxsplit parameter to str.split, bytes.split, and bytearray.split may now be passed as keyword arguments.
/external/python/cpython3/Objects/bytesobject.c
e249dcab7ad8b1bd3b84a44974cfe2746e4269d1 21-Feb-2012 Benjamin Peterson <benjamin@python.org> merge 3.2
69e9727657dad167215b656de910d95cefe1ee45 21-Feb-2012 Benjamin Peterson <benjamin@python.org> ensure no one tries to hash things before the random seed is found
/external/python/cpython3/Objects/bytesobject.c
09a7c72cad48f568e0781541167cf9ea6a3f0760 20-Feb-2012 Georg Brandl <georg@python.org> Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2daf6ae2495c862adf8bc717bfe9964081ea0b10 20-Feb-2012 Georg Brandl <georg@python.org> Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
/external/python/cpython3/Objects/bytesobject.c
20f6bc20bd3024b1b710d2833a74f2a7f2ba8571 22-Jan-2012 Georg Brandl <georg@python.org> merge with 3.2
beca27a394d4e3988a4c08e670a5b42f1e7eb4a0 22-Jan-2012 Georg Brandl <georg@python.org> Fix #13834: strip() strips leading and trailing whitespace.
/external/python/cpython3/Objects/bytesobject.c
63e6c3222f563cfb156de6e92199e9e35ad5d832 15-Jan-2012 Gregory P. Smith <greg@krypto.org> Consolidate the occurrances of the prime used as the multiplier when hashing
to a single #define instead of having several copies in several files.

This excludes the Modules/ tree (datetime and expat both have a copy
for their own purposes with no need for it to be the same).
/external/python/cpython3/Objects/bytesobject.c
bb2e9c477d1cfb24f20ff979584af8fdb7b67a57 17-Dec-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #11231: Fix bytes and bytearray docstrings

Patch written by Brice Berna.
/external/python/cpython3/Objects/bytesobject.c
e010fc029daa0a445c9d7ab78d4cd4f12b42a991 17-Dec-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #11231: Fix bytes and bytearray docstrings

Patch written by Brice Berna.
ce4a9da70535b4bb9048147b141f01004af2133d 21-Nov-2011 Antoine Pitrou <solipsis@pitrou.net> Issue #13411: memoryview objects are now hashable when the underlying object is hashable.
/external/python/cpython3/Objects/bytesobject.c
9e30aa52fd416e17b692c4f22e57191cdd6ec654 21-Nov-2011 Victor Stinner <victor.stinner@haypocalc.com> Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()

And PyUnicode_GetSize() => PyUnicode_GetLength()
/external/python/cpython3/Objects/bytesobject.c
ac65d96777f1619c2910de82093e4f6f24dedd2f 20-Oct-2011 Antoine Pitrou <solipsis@pitrou.net> Issue #12170: The count(), find(), rfind(), index() and rindex() methods
of bytes and bytearray objects now accept an integer between 0 and 255
as their first argument. Patch by Petri Lehtinen.
/external/python/cpython3/Objects/bytesobject.c
f5cff56a1be70d2c4e5cde5fa4e5d5d92e620dda 14-Oct-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #13088: Add shared Py_hexdigits constant to format a number into base 16
/external/python/cpython3/Objects/bytesobject.c
6430fd56b4da63339c7238a75e5e014b95b39983 29-Sep-2011 Victor Stinner <victor.stinner@haypocalc.com> Fix hex_digit_to_int() prototype: expect Py_UCS4, not Py_UNICODE
/external/python/cpython3/Objects/bytesobject.c
d63a3b8beb4a0841cb59fb3515347ccaab34b733 28-Sep-2011 Martin v. Löwis <martin@v.loewis.de> Implement PEP 393.
/external/python/cpython3/Objects/bytesobject.c
57e683e53eed1455176b17304b3ac007ae7eb181 24-Sep-2011 Mark Dickinson <mdickinson@enthought.com> Issue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, tuple.__hash__, frozenset.__hash__ and set indexing operations.
/external/python/cpython3/Objects/bytesobject.c
0d5f6adbb3e5d829a64ef1b431f7ac76dd258c1e 24-Sep-2011 Mark Dickinson <mdickinson@enthought.com> Issue #13012: Allow 'keepends' to be passed as a keyword argument in str.splitlines, bytes.splitlines and bytearray.splitlines.
/external/python/cpython3/Objects/bytesobject.c
fcdaaa9011be28d4653dadc92df4a94b2f669711 27-Jul-2011 Senthil Kumaran <senthil@uthcode.com> merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.
53516a82df8db500a968451daa54fc72eaed7056 27-Jul-2011 Senthil Kumaran <senthil@uthcode.com> Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.
/external/python/cpython3/Objects/bytesobject.c
bf1253b25ac6fc27beb9819dade9c4465ea493fc 26-Apr-2011 Ezio Melotti <ezio.melotti@gmail.com> #6780: merge with 3.2.
f2b3f780a160347b0759b8d0f8ea9c41a456f724 26-Apr-2011 Ezio Melotti <ezio.melotti@gmail.com> #6780: merge with 3.1.
ba42fd5801af664060dd90fccc4054b73967944c 26-Apr-2011 Ezio Melotti <ezio.melotti@gmail.com> #6780: fix starts/endswith error message to mention that tuples are accepted too.
/external/python/cpython3/Objects/bytesobject.c
c1ceb64e41082282f2e3d28065f5ae1e03fa78ae 20-Apr-2011 Jesus Cea <jcea@jcea.es> MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828)
6159ee3cf59b3fd8fcf9818c0a8071362d1ad7c2 20-Apr-2011 Jesus Cea <jcea@jcea.es> MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828)
ac4515063c18157645d135bca8c4cf39542ccd6e 20-Apr-2011 Jesus Cea <jcea@jcea.es> startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828)
/external/python/cpython3/Objects/bytesobject.c
1aef6b6e1ee907bcea172373708f0c1cb94ef0ed 24-Mar-2011 Eli Bendersky <eliben@gmail.com> Issue #11634: Remove misleading paragraph from a comment
/external/python/cpython3/Objects/bytesobject.c
4969f709cc07088a40574c05724d83cddc8fafc7 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11515: Merge with 3.1.
42da663e6fe7ecbb89b17d596c76812a91bb99a4 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11515: fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython3/Objects/bytesobject.c
28a4dce6a827eb221e986722c90bb1343e5db8e3 12-Dec-2010 Benjamin Peterson <benjamin@python.org> remove (un)transform methods
/external/python/cpython3/Objects/bytesobject.c
4d0d471a8031de90a2b1ce99c4ac4780e60b3bc9 03-Dec-2010 Martin v. Löwis <martin@v.loewis.de> Merge branches/pep-0384.
/external/python/cpython3/Objects/bytesobject.c
02524629f39bb70f4ea00ab8e64d694e08719227 02-Dec-2010 Georg Brandl <georg@python.org> #7475: add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2.
/external/python/cpython3/Objects/bytesobject.c
c911bbfd5d18ac14bf24fc7a881883debcc7c7c8 07-Nov-2010 Victor Stinner <victor.stinner@haypocalc.com> str, bytes, bytearray docstring: remove unnecessary [...]
/external/python/cpython3/Objects/bytesobject.c
e14e2122211081fe7e71871f77f70a0cb105dbfd 07-Nov-2010 Victor Stinner <victor.stinner@haypocalc.com> Fix encode/decode method doc of str, bytes, bytearray types

* Specify the default encoding: write 'utf-8' instead of
sys.getdefaultencoding(), because the default encoding is now constant
* Specify the default errors value
/external/python/cpython3/Objects/bytesobject.c
9696088b6d04efe179a825f05060ea3c96a625eb 05-Nov-2010 David Malcolm <dmalcolm@redhat.com> Issue #10288: The deprecated family of "char"-handling macros
(ISLOWER()/ISUPPER()/etc) have now been removed: use Py_ISLOWER() etc
instead.
/external/python/cpython3/Objects/bytesobject.c
8f67d0893f7170986b0ad370844318544270cbcc 17-Oct-2010 Benjamin Peterson <benjamin@python.org> make hashes always the size of pointers; introduce Py_hash_t #9778
/external/python/cpython3/Objects/bytesobject.c
f77342076e3ce1a342c1e8ab8b336095c0b026ef 08-Sep-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 84629 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r84629 | senthil.kumaran | 2010-09-08 18:20:29 +0530 (Wed, 08 Sep 2010) | 3 lines

Revert the doc change done in r83880. str.replace with negative count value is not a feature.
........
/external/python/cpython3/Objects/bytesobject.c
9a9dd1c14069701f25983af56c55a7ec6afd83c8 08-Sep-2010 Senthil Kumaran <orsenthil@gmail.com> Revert the doc change done in r83880. str.replace with negative count value is not a feature.
/external/python/cpython3/Objects/bytesobject.c
bc760d9f4572c1f2356f7444d8cd3aa01f7fad38 15-Aug-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 84070,84074 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r84070 | antoine.pitrou | 2010-08-15 19:12:55 +0200 (dim., 15 août 2010) | 5 lines

Fix some compilation warnings under 64-bit Windows (issue #9566).
Some of these are genuine bugs with objects bigger than 2GB, but
my system doesn't allow me to write tests for it.
........
r84074 | antoine.pitrou | 2010-08-15 19:41:31 +0200 (dim., 15 août 2010) | 3 lines

Fix (harmless) warning with MSVC.
........
/external/python/cpython3/Objects/bytesobject.c
0010d37a431b580034a1da979c2ee7c546fbda90 15-Aug-2010 Antoine Pitrou <solipsis@pitrou.net> Fix some compilation warnings under 64-bit Windows (issue #9566).
Some of these are genuine bugs with objects bigger than 2GB, but
my system doesn't allow me to write tests for it.
/external/python/cpython3/Objects/bytesobject.c
f0f45142d52436d26ce8ed888c73496949caae90 11-Aug-2010 Alexander Belopolsky <alexander.belopolsky@gmail.com> Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99
va_copy, but available on all python platforms. Untabified a few
unrelated files.
/external/python/cpython3/Objects/bytesobject.c
cf940c701f982d7a38144b31d09dc9613af841b7 10-Aug-2010 Mark Dickinson <dickinsm@gmail.com> Issue #9530: Fix undefined-behaviour-inducing overflow checks in bytes and bytearray implementations.
/external/python/cpython3/Objects/bytesobject.c
c3ce882c752d5b78062a526ea1a16ec2edd03144 09-Aug-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 83882 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r83882 | senthil.kumaran | 2010-08-09 14:33:57 +0530 (Mon, 09 Aug 2010) | 3 lines

spelling mistake.
........
/external/python/cpython3/Objects/bytesobject.c
f2de1ffc88b9797fd65cef97ec4abac41764ba8b 09-Aug-2010 Senthil Kumaran <orsenthil@gmail.com> spelling mistake.
/external/python/cpython3/Objects/bytesobject.c
a3aee5377611a279e6e8152d8c867c6f07c84f08 09-Aug-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 83880 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r83880 | senthil.kumaran | 2010-08-09 14:26:25 +0530 (Mon, 09 Aug 2010) | 3 lines

Fix Issue5416 - explain negative value for count in bytes object replace.
........
/external/python/cpython3/Objects/bytesobject.c
77210b4fa9d3e1778549a2fb1790b7bcdba79bf7 09-Aug-2010 Senthil Kumaran <orsenthil@gmail.com> Fix Issue5416 - explain negative value for count in bytes object replace.
/external/python/cpython3/Objects/bytesobject.c
a57aae7d47a20b2cb579b51192d39b9d0521c979 09-Jun-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 81862 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
r81862 | antoine.pitrou | 2010-06-09 18:38:55 +0200 (mer., 09 juin 2010) | 9 lines

Merged revisions 81860 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r81860 | antoine.pitrou | 2010-06-09 18:24:00 +0200 (mer., 09 juin 2010) | 3 lines

Issue #8930: fix some C code indentation
........
................
/external/python/cpython3/Objects/bytesobject.c
d118856049e514dd413112ee6e2d03713c68df9d 09-Jun-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 81860 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r81860 | antoine.pitrou | 2010-06-09 18:24:00 +0200 (mer., 09 juin 2010) | 3 lines

Issue #8930: fix some C code indentation
........
/external/python/cpython3/Objects/bytesobject.c
7f14f0d8a0228c50d5b5de2acbfe9a64ebc6749a 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Recorded merge of revisions 81032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines

Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines

Untabify C files. Will watch buildbots.
........
................
/external/python/cpython3/Objects/bytesobject.c
f95a1b3c53bdd678b64aa608d4375660033460c3 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines

Untabify C files. Will watch buildbots.
........
/external/python/cpython3/Objects/bytesobject.c
0ff8a505c6ae5bcca275bf04e5738e99fd6ec96d 17-Apr-2010 Benjamin Peterson <benjamin@python.org> Merged revisions 80125,80128,80130 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
r80125 | benjamin.peterson | 2010-04-16 17:35:32 -0500 (Fri, 16 Apr 2010) | 13 lines

Merged revisions 80123-80124 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r80123 | benjamin.peterson | 2010-04-16 17:24:16 -0500 (Fri, 16 Apr 2010) | 1 line

bytearray -> type2test
........
r80124 | benjamin.peterson | 2010-04-16 17:25:57 -0500 (Fri, 16 Apr 2010) | 1 line

fix typo
........
................
r80128 | benjamin.peterson | 2010-04-16 17:51:37 -0500 (Fri, 16 Apr 2010) | 9 lines

Merged revisions 80126 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r80126 | benjamin.peterson | 2010-04-16 17:35:38 -0500 (Fri, 16 Apr 2010) | 1 line

have a clear error when passing something > sys.maxsize to bytearray
........
................
r80130 | benjamin.peterson | 2010-04-16 18:00:53 -0500 (Fri, 16 Apr 2010) | 9 lines

Merged revisions 80129 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r80129 | benjamin.peterson | 2010-04-16 17:52:44 -0500 (Fri, 16 Apr 2010) | 1 line

tiny simplification
........
................
/external/python/cpython3/Objects/bytesobject.c
8380dd5aa42372929fe962ebdc3c180d929e497a 17-Apr-2010 Benjamin Peterson <benjamin@python.org> Merged revisions 80126 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r80126 | benjamin.peterson | 2010-04-16 17:35:38 -0500 (Fri, 16 Apr 2010) | 1 line

have a clear error when passing something > sys.maxsize to bytearray
........
/external/python/cpython3/Objects/bytesobject.c
4c81fbb118247ae6cecbdce11b7bc37dd98e060c 25-Jan-2010 Ezio Melotti <ezio.melotti@gmail.com> Merged revisions 77745 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
r77745 | ezio.melotti | 2010-01-25 13:58:28 +0200 (Mon, 25 Jan 2010) | 9 lines

Merged revisions 77743 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r77743 | ezio.melotti | 2010-01-25 13:24:37 +0200 (Mon, 25 Jan 2010) | 1 line

#7775: fixed docstring for rpartition
........
................
/external/python/cpython3/Objects/bytesobject.c
5b2b242f0780d4761acc366f01b3bc61aa01d210 25-Jan-2010 Ezio Melotti <ezio.melotti@gmail.com> Merged revisions 77743 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r77743 | ezio.melotti | 2010-01-25 13:24:37 +0200 (Mon, 25 Jan 2010) | 1 line

#7775: fixed docstring for rpartition
........
/external/python/cpython3/Objects/bytesobject.c
f2c5484f9ee9c964454b2d4a176170042e3beea5 13-Jan-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 77461 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r77461 | antoine.pitrou | 2010-01-13 08:55:48 +0100 (mer., 13 janv. 2010) | 5 lines

Issue #7622: Improve the split(), rsplit(), splitlines() and replace()
methods of bytes, bytearray and unicode objects by using a common
implementation based on stringlib's fast search. Patch by Florent Xicluna.
........
/external/python/cpython3/Objects/bytesobject.c
41f58a70ac168c3f468d2dacb945dd88f1c89350 12-Jan-2010 Alexandre Vassalotti <alexandre@peadrop.com> Issue #7382: Fix bytes.__getnewargs__.
/external/python/cpython3/Objects/bytesobject.c
a5c565a53493eefd9f0e531003bc2396e3cb726a 09-Jan-2010 Alexandre Vassalotti <alexandre@peadrop.com> Issue #6688: Optimize PyBytes_FromObject().

- Add special-cases for list and tuple objects.
- Use _PyObject_LengthHint() instead of an arbitrary value for the
size of the initial buffer of the returned object.
/external/python/cpython3/Objects/bytesobject.c
eb6f8de8bf105b4d6e9e21898e76c5647a48a3c9 31-Dec-2009 Alexandre Vassalotti <alexandre@peadrop.com> Issue #6687: Moved the special-case for integers out of PyBytes_FromObject.
/external/python/cpython3/Objects/bytesobject.c
0f78bff646c60cb3f39f3e908f5c7f10ad63f1f2 30-Nov-2009 Eric Smith <eric@trueblade.com> Issue #5748: bytesobject.c should not have its own private defines for stringlib macros. Also removed unused defines and include for localutil.h.
/external/python/cpython3/Objects/bytesobject.c
308d637c94b9ed88c386b83891ad38b2131ebd12 18-Sep-2009 Benjamin Peterson <benjamin@python.org> Merged revisions 74929 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r74929 | benjamin.peterson | 2009-09-18 16:14:55 -0500 (Fri, 18 Sep 2009) | 1 line

add keyword arguments support to str/unicode encode and decode #6300
........
/external/python/cpython3/Objects/bytesobject.c
80688efd6c82a187514a963613fdb1b46bc3cff9 18-Apr-2009 Benjamin Peterson <benjamin@python.org> rename internal methods of the bytes object to bytes_
/external/python/cpython3/Objects/bytesobject.c
0923d1d8d7e428297461ed5145f06915c462b25b 16-Apr-2009 Eric Smith <eric@trueblade.com> The other half of Issue #1580: use short float repr where possible.

Addresses the float -> string conversion, using David Gay's code which
was added in Mark Dickinson's checkin r71663.

Also addresses these, which are intertwined with the short repr
changes:

- Issue #5772: format(1e100, '<') produces '1e+100', not '1.0e+100'
- Issue #5515: 'n' formatting with commas no longer works poorly
with leading zeros.
- PEP 378 Format Specifier for Thousands Separator: implemented
for floats.
/external/python/cpython3/Objects/bytesobject.c
abc387747dc573e05a4b31387797a0272062b2ef 12-Apr-2009 Georg Brandl <georg@python.org> Add bytes/bytearray.maketrans() to mirror str.maketrans(), and deprecate
string.maketrans() which actually works on bytes. (Also closes #5675.)
/external/python/cpython3/Objects/bytesobject.c
a3b1ac8dca5afa01d9d542e125052014a9af56eb 03-Apr-2009 Eric Smith <eric@trueblade.com> Added ',' thousands grouping to int.__format__. See PEP 378.

This is incomplete, but I want to get some version into the next alpha. I am still working on:
Documentation.
More tests.
Implement for floats.

In addition, there's an existing bug with 'n' formatting that carries forward to thousands grouping (issue 5515).
/external/python/cpython3/Objects/bytesobject.c
e2641f45b6305f9371cecdcb8765998e2946ca94 03-Apr-2009 Alexandre Vassalotti <alexandre@peadrop.com> Optimize slicing of bytes and bytearray by avoiding useless copying.

This restores the behavior that was present in Python 2.x.
/external/python/cpython3/Objects/bytesobject.c
e94c679df0b632bc929936ca54f0de006e1a6dc2 02-Feb-2009 Mark Dickinson <dickinsm@gmail.com> Issue #1717: rename tp_compare to tp_reserved. I'll change the
type of tp_compare in a separate commit, for ease of reversion
should things go wrong.
/external/python/cpython3/Objects/bytesobject.c
a4a37fefb645316c2694f9ef50fa3bbddb41d0ba 11-Jan-2009 Benjamin Peterson <benjamin@python.org> Merged revisions 68381 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r68381 | martin.v.loewis | 2009-01-07 12:40:40 -0600 (Wed, 07 Jan 2009) | 2 lines

Issue #4850: Change COUNT_ALLOCS variables to Py_ssize_t.
........
/external/python/cpython3/Objects/bytesobject.c
09923f3b453028ac6eecbdf3f429663662f51792 28-Dec-2008 Georg Brandl <georg@python.org> Remove confusing error message in bytes.translate.
/external/python/cpython3/Objects/bytesobject.c
fd24b323f9998d34669c84ba0d5c3dbd827bdc17 06-Dec-2008 Mark Dickinson <dickinsm@gmail.com> Issue #4445: save 3 bytes of memory (on average) per bytes allocation.
(This is a forward port of r67601).
/external/python/cpython3/Objects/bytesobject.c
9e9dcd6d4225faa6a8b19120f009e0253d16ab92 17-Oct-2008 Barry Warsaw <barry@python.org> STINNER Victor (haypo)'s patch for bug 3988, Byte warning mode and b'' != ''

Also, his patch to runtests.sh to pass the -bb option (issue 4125).
/external/python/cpython3/Objects/bytesobject.c
1a8501c64837368a6973ff3f9850b652888c281a 02-Oct-2008 Christian Heimes <christian@cheimes.de> Merged revisions 66748 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r66748 | christian.heimes | 2008-10-02 21:47:50 +0200 (Thu, 02 Oct 2008) | 1 line

Fixed a couple more C99 comments and one occurence of inline.
........

+ another // comment in bytesobject
/external/python/cpython3/Objects/bytesobject.c
4b24a42f3c72b4f88da8989a77a175e654dbdcbb 27-Aug-2008 Benjamin Peterson <benjamin@python.org> add NULL checking for PyBytes_FromObject; R=Neal
/external/python/cpython3/Objects/bytesobject.c
c15a07333e712e682036d9ecb7230d25ccb1a85f 26-Aug-2008 Benjamin Peterson <benjamin@python.org> make bytes(o) respect __bytes__ #2415

This adds two new C-API functions: PyObject_Bytes and PyBytes_FromObject.

Reviewer: Barry
/external/python/cpython3/Objects/bytesobject.c
ce694b78fb89a769ec431dd0cf0ce4408ff693d3 24-Aug-2008 Christian Heimes <christian@cheimes.de> Fixed yet another compiler warning of 64bit builds.
Reviewed by Georg Brandl.
/external/python/cpython3/Objects/bytesobject.c
3ce5d9207e66d61d4b0502cf47ed2d2bcdd2212f 24-Aug-2008 Neal Norwitz <nnorwitz@gmail.com> Closes release blocker #3627.

Merged revisions 65335 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt)

........
r65335 | neal.norwitz | 2008-07-31 10:17:14 -0700 (Thu, 31 Jul 2008) | 1 line

Security patches from Apple: prevent int overflow when allocating memory
........
/external/python/cpython3/Objects/bytesobject.c
20443f30436cd93b491286a596063a9ede832467 23-Aug-2008 Amaury Forgeot d'Arc <amauryfa@gmail.com> #3650: fix a reference leak in bytes.split('x')
Actually the same as r65785, but trunk only has bytearray.
/external/python/cpython3/Objects/bytesobject.c
423be95dcf55b0b8737207beb7b30eb549430dba 13-Aug-2008 Martin v. Löwis <martin@v.loewis.de> Merged revisions 65654 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r65654 | martin.v.loewis | 2008-08-12 16:49:50 +0200 (Tue, 12 Aug 2008) | 6 lines

Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,
by denying s# to parse objects that have a releasebuffer procedure,
and introducing s*.

More module might need to get converted to use s*.
........
/external/python/cpython3/Objects/bytesobject.c
4cc0f24857c345ba99691b2ae6829c6ce3c0edcd 07-Aug-2008 Marc-André Lemburg <mal@egenix.com> Rename PyUnicode_AsString -> _PyUnicode_AsString and
PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark
them for interpreter internal use only.

We'll have to rework these APIs or create new ones for the
purpose of accessing the UTF-8 representation of Unicode objects
for 3.1.
/external/python/cpython3/Objects/bytesobject.c
2f89aa678549eae1557247a36ed9194af9a4f7b7 02-Aug-2008 Antoine Pitrou <solipsis@pitrou.net> #2538: bytes objects can only provide read-only buffers
/external/python/cpython3/Objects/bytesobject.c
b2750b5d334e9c8d262009069bce41c15803eca0 06-Jun-2008 Marc-André Lemburg <mal@egenix.com> 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.
/external/python/cpython3/Objects/bytesobject.c
00709aaa3dc7da374e94a3ede8e05603e8a95066 04-Jun-2008 Martin v. Löwis <martin@v.loewis.de> Merged revisions 63856-63857,63859-63860 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r63856 | robert.schuppenies | 2008-06-01 18:16:17 +0200 (So, 01 Jun 2008) | 2 lines

Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.
........
r63859 | georg.brandl | 2008-06-01 18:42:16 +0200 (So, 01 Jun 2008) | 2 lines

Some style nits. Also clarify in the docstrings what __sizeof__ does.
........
r63860 | georg.brandl | 2008-06-01 19:05:56 +0200 (So, 01 Jun 2008) | 2 lines

Fix test_descrtut.
........
/external/python/cpython3/Objects/bytesobject.c
e5d68aceb529934e75d505bbfaf867e02493a1bc 04-Jun-2008 Georg Brandl <georg@python.org> Fix misspelling.
/external/python/cpython3/Objects/bytesobject.c
17cb8a85d4931d60fc6f4a2f692514dd77e8d700 30-May-2008 Georg Brandl <georg@python.org> Fix all return types for str/bytes/bytearray docstrings and make the wording more consistent.
/external/python/cpython3/Objects/bytesobject.c
4116f369671ef95754135100a3e2000949bbe143 27-May-2008 Benjamin Peterson <benjamin@python.org> clean up some docstrings and errors in bytesobject.c
/external/python/cpython3/Objects/bytesobject.c
2c9c7a5f33d502fa468e38537d57834c7e33aa4d 26-May-2008 Christian Heimes <christian@cheimes.de> Renamed files bytesobject.[ch] and stringobject.[ch]
Fixed Windows build
/external/python/cpython3/Objects/bytesobject.c
72b710a59617ebe6dd1c41613d2c7eb81702efd9 26-May-2008 Christian Heimes <christian@cheimes.de> Renamed PyString to PyBytes
/external/python/cpython3/Objects/bytesobject.c
9c4756ea265b5ebd71c9ae59f3673c7cecb6f060 26-May-2008 Christian Heimes <christian@cheimes.de> Renamed PyBytes to PyByteArray
/external/python/cpython3/Objects/bytesobject.c
14a767d4f499c8ead06a14d9c64c01c4ced95e61 09-May-2008 Alexandre Vassalotti <alexandre@peadrop.com> Made the TypeError message in bytes_iconcat() less confusing.

Before this change, the following example would output:

>>> b = bytearray(b"hello")
>>> b += "world"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't concat bytes to bytearray
/external/python/cpython3/Objects/bytesobject.c
e0313f20c0a2e394b8e9606f415316f73c840a16 14-Apr-2008 Alexandre Vassalotti <alexandre@peadrop.com> Re-indented bytes_getbuffer() and bytes_releasebuffer() to 4-space
indents.
/external/python/cpython3/Objects/bytesobject.c
8dcdb25d58f31ec716ddba662294465293c520d9 14-Apr-2008 Alexandre Vassalotti <alexandre@peadrop.com> Improved bytes_extend() to avoid making a full copy of the temporary
buffer. This also makes the code slightly cleaner.
/external/python/cpython3/Objects/bytesobject.c
33fe8093df5c13e41d7dba764279c71c142a4a7d 13-Apr-2008 Christian Heimes <christian@cheimes.de> Merged revisions 62260-62261,62266,62271,62277-62279,62289-62290,62293-62298,62302-62306,62308,62311,62313-62315,62319-62321 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r62260 | gregory.p.smith | 2008-04-10 01:11:56 +0200 (Thu, 10 Apr 2008) | 2 lines

better diagnostics
........
r62261 | gregory.p.smith | 2008-04-10 01:16:37 +0200 (Thu, 10 Apr 2008) | 3 lines

Raise SystemError when size < 0 is passed into PyString_FromStringAndSize,
PyBytes_FromStringAndSize or PyUnicode_FromStringAndSize. [issue2587]
........
r62266 | neal.norwitz | 2008-04-10 07:46:39 +0200 (Thu, 10 Apr 2008) | 5 lines

Remove the test file before writing it in case there is no write permission.
This might help fix some of the failures on Windows box(es). It doesn't hurt
either way and ensure the tests are a little more self contained (ie have
less assumptions).
........
r62271 | gregory.p.smith | 2008-04-10 21:50:36 +0200 (Thu, 10 Apr 2008) | 2 lines

get rid of assert (size >= 0) now that an explicit if (size < 0) is in the code.
........
r62277 | andrew.kuchling | 2008-04-10 23:27:10 +0200 (Thu, 10 Apr 2008) | 1 line

Remove forward-looking statement
........
r62278 | andrew.kuchling | 2008-04-10 23:28:51 +0200 (Thu, 10 Apr 2008) | 1 line

Add punctuation
........
r62279 | andrew.kuchling | 2008-04-10 23:29:01 +0200 (Thu, 10 Apr 2008) | 1 line

Use issue directive
........
r62289 | thomas.heller | 2008-04-11 15:05:38 +0200 (Fri, 11 Apr 2008) | 3 lines

Move backwards compatibility macro to the correct place;
PyIndex_Check() was introduced in Python 2.5.
........
r62290 | thomas.heller | 2008-04-11 16:20:26 +0200 (Fri, 11 Apr 2008) | 2 lines

Performance improvements.
........
r62293 | christian.heimes | 2008-04-12 15:03:03 +0200 (Sat, 12 Apr 2008) | 2 lines

Applied patch #2617 from Frank Wierzbicki wit some extras from me
-J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
........
r62294 | georg.brandl | 2008-04-12 20:11:18 +0200 (Sat, 12 Apr 2008) | 2 lines

Use absolute path in sys.path.
........
r62295 | georg.brandl | 2008-04-12 20:36:09 +0200 (Sat, 12 Apr 2008) | 2 lines

#2615: small consistency update by Jeroen Ruigrok van der Werven.
........
r62296 | georg.brandl | 2008-04-12 21:00:20 +0200 (Sat, 12 Apr 2008) | 2 lines

Add Jeroen.
........
r62297 | georg.brandl | 2008-04-12 21:05:37 +0200 (Sat, 12 Apr 2008) | 2 lines

Don't offend snake lovers.
........
r62298 | gregory.p.smith | 2008-04-12 22:37:48 +0200 (Sat, 12 Apr 2008) | 2 lines

fix compiler warnings
........
r62302 | gregory.p.smith | 2008-04-13 00:24:04 +0200 (Sun, 13 Apr 2008) | 3 lines

socket.error inherits from IOError, it no longer needs listing in
the all_errors tuple.
........
r62303 | brett.cannon | 2008-04-13 01:44:07 +0200 (Sun, 13 Apr 2008) | 8 lines

Re-implement the 'warnings' module in C. This allows for usage of the
'warnings' code in places where it was previously not possible (e.g., the
parser). It could also potentially lead to a speed-up in interpreter start-up
if the C version of the code (_warnings) is imported over the use of the
Python version in key places.

Closes issue #1631171.
........
r62304 | gregory.p.smith | 2008-04-13 02:03:25 +0200 (Sun, 13 Apr 2008) | 3 lines

Adds a profile-opt target for easy compilation of a python binary using
gcc's profile guided optimization.
........
r62305 | brett.cannon | 2008-04-13 02:18:44 +0200 (Sun, 13 Apr 2008) | 3 lines

Fix a bug in PySys_HasWarnOption() where it was not properly checking the
length of the list storing the warning options.
........
r62306 | brett.cannon | 2008-04-13 02:25:15 +0200 (Sun, 13 Apr 2008) | 2 lines

Fix an accidental bug of an non-existent init function.
........
r62308 | andrew.kuchling | 2008-04-13 03:05:59 +0200 (Sun, 13 Apr 2008) | 1 line

Mention -J, -X
........
r62311 | benjamin.peterson | 2008-04-13 04:20:05 +0200 (Sun, 13 Apr 2008) | 2 lines

Give the "Interactive Interpreter Changes" section in 2.6 whatsnew a unique link name
........
r62313 | brett.cannon | 2008-04-13 04:42:36 +0200 (Sun, 13 Apr 2008) | 3 lines

Fix test_warnings by making the state of things more consistent for each test
when it is run.
........
r62314 | skip.montanaro | 2008-04-13 05:17:30 +0200 (Sun, 13 Apr 2008) | 2 lines

spelling
........
r62315 | georg.brandl | 2008-04-13 09:07:44 +0200 (Sun, 13 Apr 2008) | 2 lines

Fix markup.
........
r62319 | christian.heimes | 2008-04-13 11:30:17 +0200 (Sun, 13 Apr 2008) | 1 line

Fix compiler warning Include/warnings.h:19:28: warning: no newline at end of file
........
r62320 | christian.heimes | 2008-04-13 11:33:24 +0200 (Sun, 13 Apr 2008) | 1 line

Use PyString_InternFromString instead of PyString_FromString for static vars
........
r62321 | christian.heimes | 2008-04-13 11:37:05 +0200 (Sun, 13 Apr 2008) | 1 line

Added new files to the pcbuild files
........
/external/python/cpython3/Objects/bytesobject.c
ba4af493a5bcece67bc6ae369bfea0592b10f9e5 28-Mar-2008 Christian Heimes <christian@cheimes.de> Merged revisions 61964-61979 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r61964 | benjamin.peterson | 2008-03-27 01:25:33 +0100 (Thu, 27 Mar 2008) | 2 lines

add commas for introductory clauses
........
r61965 | christian.heimes | 2008-03-27 02:36:21 +0100 (Thu, 27 Mar 2008) | 1 line

Hopefully added _fileio module to the Windows build system
........
r61966 | christian.heimes | 2008-03-27 02:38:47 +0100 (Thu, 27 Mar 2008) | 1 line

Revert commit accident
........
r61967 | neal.norwitz | 2008-03-27 04:49:54 +0100 (Thu, 27 Mar 2008) | 3 lines

Fix bytes so it works on 64-bit platforms.
(Also remove some #if 0 code that is already handled in _getbytevalue.)
........
r61968 | neal.norwitz | 2008-03-27 05:40:07 +0100 (Thu, 27 Mar 2008) | 1 line

Fix memory leaks
........
r61969 | neal.norwitz | 2008-03-27 05:40:50 +0100 (Thu, 27 Mar 2008) | 3 lines

Fix warnings about using char as an array subscript. This is not portable
since char is signed on some platforms and unsigned on others.
........
r61970 | neal.norwitz | 2008-03-27 06:02:57 +0100 (Thu, 27 Mar 2008) | 1 line

Fix test_compiler after adding unicode_literals
........
r61971 | neal.norwitz | 2008-03-27 06:03:11 +0100 (Thu, 27 Mar 2008) | 1 line

Fix compiler warnings
........
r61972 | neal.norwitz | 2008-03-27 07:52:01 +0100 (Thu, 27 Mar 2008) | 1 line

Pluralss only need one s, not 2 (intss -> ints)
........
r61973 | christian.heimes | 2008-03-27 10:02:33 +0100 (Thu, 27 Mar 2008) | 1 line

Quick 'n dirty hack: Increase the magic by 2 to force a rebuild of pyc/pyo files on the build bots
........
r61974 | eric.smith | 2008-03-27 10:42:35 +0100 (Thu, 27 Mar 2008) | 3 lines

Added test cases for single quoted strings, both forms of triple quotes,
and some string concatenations.
Removed unneeded __future__ print_function import.
........
r61975 | christian.heimes | 2008-03-27 11:35:52 +0100 (Thu, 27 Mar 2008) | 1 line

Build bots are working again - removing the hack
........
r61976 | christian.heimes | 2008-03-27 12:46:37 +0100 (Thu, 27 Mar 2008) | 2 lines

Fixed tokenize tests
The tokenize module doesn't understand __future__.unicode_literals yet
........
r61977 | georg.brandl | 2008-03-27 14:27:31 +0100 (Thu, 27 Mar 2008) | 2 lines

#2248: return result of QUIT from quit().
........
r61978 | georg.brandl | 2008-03-27 14:34:59 +0100 (Thu, 27 Mar 2008) | 2 lines

The bug for which there was a test in outstanding_bugs.py was agreed not to be a bug.
........
r61979 | amaury.forgeotdarc | 2008-03-28 00:23:54 +0100 (Fri, 28 Mar 2008) | 5 lines

Issue2495: tokenize.untokenize did not insert space between two consecutive string literals:
"" "" => """", which is invalid code.

Will backport
........
/external/python/cpython3/Objects/bytesobject.c
7b876158dc8a69e030d09e6cf78a1e8b6662f0c3 30-Jan-2008 Christian Heimes <christian@cheimes.de> Fixed #1969: split and rsplit in bytearray are inconsistent
/external/python/cpython3/Objects/bytesobject.c
90aa7646affbaee9628ca6ea6a702aec17b3b550 19-Dec-2007 Christian Heimes <christian@cheimes.de> #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
/external/python/cpython3/Objects/bytesobject.c
110194048e2d6a42f5954c39c8646ba93b66a7e1 10-Dec-2007 Skip Montanaro <skip@pobox.com> typo
/external/python/cpython3/Objects/bytesobject.c
255f53bdb54a64b93035374ca4484ba0cc1b41e1 08-Dec-2007 Christian Heimes <christian@cheimes.de> Merged revisions 59376-59406 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r59377 | georg.brandl | 2007-12-06 01:24:23 +0100 (Thu, 06 Dec 2007) | 2 lines

Add another GHOP student to ACKS.
........
r59378 | raymond.hettinger | 2007-12-06 01:56:53 +0100 (Thu, 06 Dec 2007) | 5 lines

Fix Issue 1045.
Factor-out common calling code by simplifying the length_hint API.
Speed-up the function by caching the PyObject_String for the attribute lookup.
........
r59380 | georg.brandl | 2007-12-06 02:52:24 +0100 (Thu, 06 Dec 2007) | 2 lines

Diverse markup fixes.
........
r59383 | georg.brandl | 2007-12-06 10:45:39 +0100 (Thu, 06 Dec 2007) | 2 lines

Better re.split examples.
........
r59386 | christian.heimes | 2007-12-06 14:15:13 +0100 (Thu, 06 Dec 2007) | 2 lines

Fixed get_config_h_filename for Windows. Without the patch it can't find the pyconfig.h file inside a build tree.
Added several small unit tests for sysconfig.
........
r59387 | christian.heimes | 2007-12-06 14:30:11 +0100 (Thu, 06 Dec 2007) | 1 line

Silence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined in pyconfig.h but several projects don't include it.
........
r59389 | christian.heimes | 2007-12-06 14:55:01 +0100 (Thu, 06 Dec 2007) | 1 line

Disabled one test that is failing on Unix
........
r59399 | christian.heimes | 2007-12-06 22:13:06 +0100 (Thu, 06 Dec 2007) | 8 lines

Several Windows related cleanups:
* Removed a #define from pyconfig.h. The macro was already defined a few lines higher.
* Fixed path to tix in the build_tkinter.py script
* Changed make_buildinfo.c to use versions of unlink and strcat which are considered safe by Windows (as suggested by MvL).
* Removed two defines from pyproject.vsprops that are no longer required. Both are defined in pyconfig.h and make_buildinfo.c doesn't use the unsafe versions any more (as suggested by MvL).
* Added some more information about PGO and the property files to PCbuild9/readme.txt.

Are you fine with the changes, Martin?
........
r59400 | raymond.hettinger | 2007-12-07 02:53:01 +0100 (Fri, 07 Dec 2007) | 4 lines

Don't have the docs berate themselves. Keep a professional tone.
If a todo is needed, put it in the tracker.
........
r59402 | georg.brandl | 2007-12-07 10:07:10 +0100 (Fri, 07 Dec 2007) | 3 lines

Increase unit test coverage of SimpleXMLRPCServer.
Written for GHOP by Turkay Eren.
........
r59406 | georg.brandl | 2007-12-07 16:16:57 +0100 (Fri, 07 Dec 2007) | 2 lines

Update to windows doc from Robert.
........
/external/python/cpython3/Objects/bytesobject.c
a74169b7c13bb081380a463541e80b7ba6934abd 04-Dec-2007 Alexandre Vassalotti <alexandre@peadrop.com> Remove a few tab characters introduced by r59314.
/external/python/cpython3/Objects/bytesobject.c
09121e8eb252d8164d93a12552c832b9bf2e0117 04-Dec-2007 Alexandre Vassalotti <alexandre@peadrop.com> Issue #1283: Allow any iterable of integers to be passed to
bytearray.extend().
/external/python/cpython3/Objects/bytesobject.c
217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2 02-Dec-2007 Christian Heimes <christian@cheimes.de> Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
/external/python/cpython3/Objects/bytesobject.c
254348e201647ad9d264de2cc0fde031e8214719 21-Nov-2007 Guido van Rossum <guido@python.org> Rename buffer -> bytearray.
/external/python/cpython3/Objects/bytesobject.c
98297ee7815939b124156e438b22bd652d67b5db 06-Nov-2007 Guido van Rossum <guido@python.org> Merging the py3k-pep3137 branch back into the py3k branch.
No detailed change log; just check out the change log for the py3k-pep3137
branch. The most obvious changes:

- str8 renamed to bytes (PyString at the C level);
- bytes renamed to buffer (PyBytes at the C level);
- PyString and PyUnicode are no longer compatible.

I.e. we now have an immutable bytes type and a mutable bytes type.

The behavior of PyString was modified quite a bit, to make it more
bytes-like. Some changes are still on the to-do list.
/external/python/cpython3/Objects/bytesobject.c
a6c04bed1ed51e87bf9a24bc4b9ab9364821aef5 03-Nov-2007 Guido van Rossum <guido@python.org> Patch 1171 by mfenniak -- allow subclassing of bytes.
I suspect this has some problems when the subclass is evil,
but that's for later.
/external/python/cpython3/Objects/bytesobject.c
ae404e2e0a957e1e584b476e21c51201e611ab44 26-Oct-2007 Guido van Rossum <guido@python.org> Sort the method lists for str8 and bytes so differences are more apparent.
Changed bytes.fromhex to take a str argument, as the docstring promises.
Added str8.fromhex (untested so far).
/external/python/cpython3/Objects/bytesobject.c
a5d2d5573a6dc24f6b0de8dd089290216bd96249 26-Oct-2007 Guido van Rossum <guido@python.org> Patch 1335 by Christian Heimes.
Add a bytes iterator (copied from stringobject.c and reindented :-).
I (Guido) added a small change to _abcoll.py to remove the registration
of bytes as a virtual subtype of Iterator -- the presence of __iter__
will handle that now.
/external/python/cpython3/Objects/bytesobject.c
61ec0d32634eaa43bbe433628607c137d91736de 26-Oct-2007 Neal Norwitz <nnorwitz@gmail.com> Fix some Py_ssize_t warnings on Win64 that were probably bugs
/external/python/cpython3/Objects/bytesobject.c
40d20bcf1fccfe8af2393f1aec88ba18e38d0bc1 22-Oct-2007 Guido van Rossum <guido@python.org> Issue 1267, continued.
Additional patch by Christian Heimes to deal more cleanly with the
FILE* vs file-descriptor issues.
I cleaned up his code a bit, and moved the lseek() call into import.c.
/external/python/cpython3/Objects/bytesobject.c
60d241f135f10312f5a638846659d7e471f6cac9 16-Oct-2007 Gregory P. Smith <greg@mad-scientist.com> For PEP3137: Adds missing methods to the mutable PyBytes object (soon
to be called a buffer). Shares code with stringobject when possible.
Adds unit tests with common code that should be usable to test the PEPs
mutable buffer() and immutable bytes() types.

http://bugs.python.org/issue1261
/external/python/cpython3/Objects/bytesobject.c
1e35e765321311222f118197c79f2c3937035ffc 09-Oct-2007 Guido van Rossum <guido@python.org> Patch #1049 by Thomas Lee.

Changes comparisons between PyBytes and PyUnicode to return unequal
instead of raising TypeError.
/external/python/cpython3/Objects/bytesobject.c
8ae62b60940ae0f33b1792703f3255e9c6a6a88a 23-Sep-2007 Travis E. Oliphant <oliphant@enthought.com> Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
/external/python/cpython3/Objects/bytesobject.c
8f95067915fc1cd74c8ef31fccc84796cd45fff3 10-Sep-2007 Guido van Rossum <guido@python.org> Bug # 1125 (my code).
Support bytes.split() and bytes.strip() -- these split/strip using ASCII
whitespace (tab, space, CR, LF, FF, VT) like their str counterparts.
Also for rsplit(), lstrip() and rstrip().
And change all these functions to accept arbitrary buffer-API-supporting
arguments.
With unit tests.
/external/python/cpython3/Objects/bytesobject.c
06b8b027112a491af996d8be25ee79959f8c18dc 31-Aug-2007 Guido van Rossum <guido@python.org> Per Georg's suggestion, get rid of str.decode() (which always raises an
exception) and change bytes.find() to use _getbuffer(), so b"".find("")
will raise TypeError instead of SystemError.
/external/python/cpython3/Objects/bytesobject.c
16596ddb61558818949958f5dcf14d23f406a5bc 30-Aug-2007 Neal Norwitz <nnorwitz@gmail.com> Try to fix the problem on the Windows buildbot where this code:

b * sys.maxint # from test_bytes.py line 379

Caused: SystemError: error return without exception set
/external/python/cpython3/Objects/bytesobject.c
18c3ff887f95e7b566b36faf97d457372c04c213 29-Aug-2007 Jeremy Hylton <jeremy@alum.mit.edu> Make it an error to compare a bytes object and a Unicode object.
/external/python/cpython3/Objects/bytesobject.c
a74184eb1d1ed8c1c139ea692b6037a7563d5540 29-Aug-2007 Guido van Rossum <guido@python.org> Commit strict str/bytes distinction.
From now on, trying to write str to a binary stream
is an error (I'm still working on the reverse).
There are still (at least) two failing tests:
- test_asynchat
- test_urllib2_localnet
but I'm sure these will be fixed by someone.
/external/python/cpython3/Objects/bytesobject.c
2bad9702930f620b61c8bc3cec3d4cd811df3693 27-Aug-2007 Neal Norwitz <nnorwitz@gmail.com> Make some internal functions static
/external/python/cpython3/Objects/bytesobject.c
75d38e992e9e3be428e51bcfe4bd5b201e953236 24-Aug-2007 Guido van Rossum <guido@python.org> Whitespace cleanup.
/external/python/cpython3/Objects/bytesobject.c
faa54a392951468090f0095ffa927b16fcb20ca4 19-Aug-2007 Neal Norwitz <nnorwitz@gmail.com> Code review of the new buffer protocol. Mostly add questions that should
be answered with the comments removed.

There are many places that require checks when doing arithmetic for memory
sizes when allocating memory. Otherwise, overflow is possible with
a subsequent crash.

Fix SF #1777057 which was a result of not initializing the new BufferError
properly. Had to update the test for exceptions for BufferError too.
/external/python/cpython3/Objects/bytesobject.c
b99f762f10edb2646a634c2290ecb064bd52e5c7 18-Aug-2007 Travis E. Oliphant <oliphant@enthought.com> Merged in py3k-buffer branch to main line. All objects now use the buffer protocol in PEP 3118.
/external/python/cpython3/Objects/bytesobject.c
eb29e9ab2b037db198591a9cacb5993385c7f83d 08-Aug-2007 Guido van Rossum <guido@python.org> Fix core dump in an endcase of b.strip() that I missed.
/external/python/cpython3/Objects/bytesobject.c
9c121069d3a61868f4586ad2ba2e5435a82af061 05-Aug-2007 Martin v. Löwis <martin@v.loewis.de> Change PyUnicode_FromString[AndSize] to expect UTF-8.
/external/python/cpython3/Objects/bytesobject.c
5d7428b8ce0ffc79b24b05df2b3d2865db037902 21-Jul-2007 Martin v. Löwis <martin@v.loewis.de> Fix merge breakage.
/external/python/cpython3/Objects/bytesobject.c
9f2e346911988cda95fec7c901e8d10d34fa9563 21-Jul-2007 Martin v. Löwis <martin@v.loewis.de> Merged revisions 56467-56482 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

................
r56477 | martin.v.loewis | 2007-07-21 09:04:38 +0200 (Sa, 21 Jul 2007) | 11 lines

Merged revisions 56466-56476 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r56476 | martin.v.loewis | 2007-07-21 08:55:02 +0200 (Sa, 21 Jul 2007) | 4 lines

PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
........
................
r56478 | martin.v.loewis | 2007-07-21 09:47:23 +0200 (Sa, 21 Jul 2007) | 2 lines

PEP 3123: Use proper C inheritance for PyObject.
................
r56479 | martin.v.loewis | 2007-07-21 10:06:55 +0200 (Sa, 21 Jul 2007) | 3 lines

Add longintrepr.h to Python.h, so that the compiler can
see that PyFalse is really some kind of PyObject*.
................
r56480 | martin.v.loewis | 2007-07-21 10:47:18 +0200 (Sa, 21 Jul 2007) | 2 lines

Qualify SHIFT, MASK, BASE.
................
r56482 | martin.v.loewis | 2007-07-21 19:10:57 +0200 (Sa, 21 Jul 2007) | 2 lines

Correctly refer to _ob_next.
................
/external/python/cpython3/Objects/bytesobject.c
f93254d2992896445cbd1eec0ee4a80eb8edc6b8 20-Jul-2007 Guido van Rossum <guido@python.org> Fix test_pickle, by reverting the string opcodes (S, T, U) to returning
strings, in Latin-1. Bytes are once more pickled through bytes.__reduce__,
but now it returns "latin-1" as the second parameter.

Unfortunately this breaks datetime pickling. I'll have to investigate
further; reverting Martin's changes doesn't seem to help.
/external/python/cpython3/Objects/bytesobject.c
10a60b3ec0cdf7eeac98258fc53a33b7026f8ff3 18-Jul-2007 Martin v. Löwis <martin@v.loewis.de> Change Py_BuildValue to generate Unicode objects for
's' and 'c' codes.
Change pickle to dump bytes objects using the 'S'
code, and to load the 'S' code as byte objects.
Change datetime and array to generate and expect
bytes objects in reduce/unreduce.
/external/python/cpython3/Objects/bytesobject.c
5b222135f8d2492713994f2cb003980e87ce6a72 10-Jun-2007 Martin v. Löwis <martin@v.loewis.de> Make identifiers str (not str8) objects throughout.
This affects the parser, various object implementations,
and all places that put identifiers into C string literals.

In testing, a number of crashes occurred as code would
fail when the recursion limit was reached (such as the
Unicode interning dictionary having key/value pairs where
key is not value). To solve these, I added an overflowed
flag, which allows for 50 more recursions after the
limit was reached and the exception was raised, and
a recursion_critical flag, which indicates that recursion
absolutely must be allowed, i.e. that a certain call
must not cause a stack overflow exception.

There are still some places where both str and str8 are
accepted as identifiers; these should eventually be
removed.
/external/python/cpython3/Objects/bytesobject.c
1ab833082738ced53318aca05901e596d5ede683 18-May-2007 Walter Dörwald <walter@livinglogic.de> Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror
PyString_Concat() and PyString_ConcatAndDel() (the name PyUnicode_Concat()
was already taken).

Change PyObject_Repr() to always return a unicode object.

Update all repr implementations to return unicode objects.

Add a function PyObject_ReprStr8() that calls PyObject_Repr() and converts
the result to an 8bit string.

Use PyObject_ReprStr8() where using PyObject_Repr() can't be done
straightforward.
/external/python/cpython3/Objects/bytesobject.c
63eac1592700e550d7a8e9b5ef1f77cadac9a020 10-May-2007 Guido van Rossum <guido@python.org> The NULL pointer for empty strings turns out to be a pain.
At least for the buffer API, return "" in that case.
/external/python/cpython3/Objects/bytesobject.c
cd6ae68943e5bd219d0f32be346d1a730635aaa4 09-May-2007 Guido van Rossum <guido@python.org> I don't know how come bytes.join() was a class method, but that's clearly
a mistake. It's not a regular (instance) method. b".".join([b"a", b"b"])
now returns b"a.b" -- it used to return b"ab"!
/external/python/cpython3/Objects/bytesobject.c
57b93ad56d570c27bd3de3820b996352121c18e2 08-May-2007 Guido van Rossum <guido@python.org> repr(b"\0") should return b"\x00", not the (unusual) b"\0".
/external/python/cpython3/Objects/bytesobject.c
4355a47903f3242222b5807c71ec3dda4a8c8d5c 04-May-2007 Guido van Rossum <guido@python.org> Make all of test_bytes pass (except pickling, which is too badly busted).
/external/python/cpython3/Objects/bytesobject.c
6c1e6741f8e3f44fbf7dc05e3ec79a1290c63c11 04-May-2007 Guido van Rossum <guido@python.org> Add trailing null bytes to a few more places.
/external/python/cpython3/Objects/bytesobject.c
f15a29f975bbdef6de0aa19a19b176d1baf8f5ab 04-May-2007 Guido van Rossum <guido@python.org> More coding by random modification.
Encoding now return bytes instead of str8.
eval(), exec(), compile() now accept unicode or bytes.
/external/python/cpython3/Objects/bytesobject.c
ad7d8d10b70b62b25fc8ebd1a6bfef0c008a232a 13-Apr-2007 Guido van Rossum <guido@python.org> Rough and dirty job -- allow concatenation of bytes and arbitrary
buffer-supporting objects (Unicode always excluded), and also of
str and bytes.
(For some reason u"" + b"" doesn't fail, I'll investigate later.)
/external/python/cpython3/Objects/bytesobject.c
b6f1fdc90ca1f5826c5bd8e015a37563923144b5 13-Apr-2007 Guido van Rossum <guido@python.org> Clean up trailing whitespace.
/external/python/cpython3/Objects/bytesobject.c
0dd32e246cd232012d07926ae312205decb74b61 11-Apr-2007 Guido van Rossum <guido@python.org> Real pickling for bytes.
Restore complex pickling.
Use cPickle in io.py.
/external/python/cpython3/Objects/bytesobject.c
ebea9beab34d9c7552764c071b0d7fdb4744092b 09-Apr-2007 Guido van Rossum <guido@python.org> Bytes should never equal unicode.
Add tests for str <cmpop> bytes.
/external/python/cpython3/Objects/bytesobject.c
343e97ff7f939fc16d144a196a95ecf2e82c061e 09-Apr-2007 Guido van Rossum <guido@python.org> For Make Benefit Glorious Nation of Backwards Compatibility,
bytes objects can now be compared to anything that supports the buffer API.
/external/python/cpython3/Objects/bytesobject.c
4fc8ae424f915d07ff56d32dceec3d2c4a89560e 27-Feb-2007 Guido van Rossum <guido@python.org> Fix off-by-one bug in memmove() call in bytes_insert().
Fix by Pete Shinners (for his own bug :-).
/external/python/cpython3/Objects/bytesobject.c
6968b056efdec8cf178901cf5bfcf65e1c8eac65 27-Feb-2007 Neal Norwitz <nnorwitz@gmail.com> SF patch #1669633, add methods for bytes from Pete Shinners.
/external/python/cpython3/Objects/bytesobject.c
b3f568f167e531c2275ae5fe4b16d3e57416db5f 27-Feb-2007 Georg Brandl <georg@python.org> Remove a few stray tabs from bytesobject.c.
/external/python/cpython3/Objects/bytesobject.c
0b9b9e04830c40c7866b4ba23d6fa1a0aa80f039 27-Feb-2007 Georg Brandl <georg@python.org> Implement bytes.fromhex(), with tests.
/external/python/cpython3/Objects/bytesobject.c
ee91be45df796b8e5721d9142a6e92e55a465451 24-Feb-2007 Georg Brandl <georg@python.org> Make bytes_repr return a string containing a b"" literal.
/external/python/cpython3/Objects/bytesobject.c
376446dd4e30006c4d4ad09b4cbda8b07e9ce23a 19-Dec-2006 Thomas Wouters <thomas@python.org> Implement extended slicing in bytes objects.
/external/python/cpython3/Objects/bytesobject.c
9a6e62b947ebb5547ca9a164f6145a461b98d86a 24-Aug-2006 Thomas Wouters <thomas@python.org> Fix buglet in slice assignment of bytesobjects: assigning to b[3:0] ('stop'
being before 'start') would actually assign to b[0:0] (or whatever 'stop'
was)
/external/python/cpython3/Objects/bytesobject.c
d204a715f4776fc2e5498e81c9e7a647e902b682 22-Aug-2006 Thomas Wouters <thomas@python.org> Make bytesobject raise ValueError instead of TypeError again (thanks, Nick)
/external/python/cpython3/Objects/bytesobject.c
00ee7baf49430d8a6eed355a5fd7a05179325747 21-Aug-2006 Thomas Wouters <thomas@python.org> Merge current trunk into p3yk. This includes the PyNumber_Index API change,
which unfortunately means the errors from the bytes type change somewhat:

bytes([300]) still raises a ValueError, but bytes([10**100]) now raises a
TypeError (either that, or bytes(1.0) also raises a ValueError --
PyNumber_AsSsize_t() can only raise one type of exception.)

Merged revisions 51188-51433 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r51189 | kurt.kaiser | 2006-08-10 19:11:09 +0200 (Thu, 10 Aug 2006) | 4 lines

Retrieval of previous shell command was not always preserving indentation
since 1.2a1) Patch 1528468 Tal Einat.
........
r51190 | guido.van.rossum | 2006-08-10 19:41:07 +0200 (Thu, 10 Aug 2006) | 3 lines

Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.
SF bug #1112549.
........
r51191 | guido.van.rossum | 2006-08-10 19:42:50 +0200 (Thu, 10 Aug 2006) | 2 lines

News item for SF bug 1112549.
........
r51192 | guido.van.rossum | 2006-08-10 20:09:25 +0200 (Thu, 10 Aug 2006) | 2 lines

Fix title -- it's rc1, not beta3.
........
r51194 | martin.v.loewis | 2006-08-10 21:04:00 +0200 (Thu, 10 Aug 2006) | 3 lines

Update dangling references to the 3.2 database to
mention that this is UCD 4.1 now.
........
r51195 | tim.peters | 2006-08-11 00:45:34 +0200 (Fri, 11 Aug 2006) | 6 lines

Followup to bug #1069160.

PyThreadState_SetAsyncExc(): internal correctness changes wrt
refcount safety and deadlock avoidance. Also added a basic test
case (relying on ctypes) and repaired the docs.
........
r51196 | tim.peters | 2006-08-11 00:48:45 +0200 (Fri, 11 Aug 2006) | 2 lines

Whitespace normalization.
........
r51197 | tim.peters | 2006-08-11 01:22:13 +0200 (Fri, 11 Aug 2006) | 5 lines

Whitespace normalization broke test_cgi, because a line
of quoted test data relied on preserving a single trailing
blank. Changed the string from raw to regular, and forced
in the trailing blank via an explicit \x20 escape.
........
r51198 | tim.peters | 2006-08-11 02:49:01 +0200 (Fri, 11 Aug 2006) | 10 lines

test_PyThreadState_SetAsyncExc(): This is failing on some
64-bit boxes. I have no idea what the ctypes docs mean
by "integers", and blind-guessing here that it intended to
mean the signed C "int" type, in which case perhaps I can
repair this by feeding the thread id argument to type
ctypes.c_long().

Also made the worker thread daemonic, so it doesn't hang
Python shutdown if the test continues to fail.
........
r51199 | tim.peters | 2006-08-11 05:49:10 +0200 (Fri, 11 Aug 2006) | 6 lines

force_test_exit(): This has been completely ineffective
at stopping test_signal from hanging forever on the Tru64
buildbot. That could be because there's no such thing as
signal.SIGALARM. Changed to the idiotic (but standard)
signal.SIGALRM instead, and added some more debug output.
........
r51202 | neal.norwitz | 2006-08-11 08:09:41 +0200 (Fri, 11 Aug 2006) | 6 lines

Fix the failures on cygwin (2006-08-10 fixed the actual locking issue).

The first hunk changes the colon to an ! like other Windows variants.
We need to always wait on the child so the lock gets released and
no other tests fail. This is the try/finally in the second hunk.
........
r51205 | georg.brandl | 2006-08-11 09:15:38 +0200 (Fri, 11 Aug 2006) | 3 lines

Add Chris McDonough (latest cgi.py patch)
........
r51206 | georg.brandl | 2006-08-11 09:26:10 +0200 (Fri, 11 Aug 2006) | 3 lines

logging's atexit hook now runs even if the rest of the module has
already been cleaned up.
........
r51212 | thomas.wouters | 2006-08-11 17:02:39 +0200 (Fri, 11 Aug 2006) | 4 lines


Add ignore of *.pyc and *.pyo to Lib/xml/etree/.
........
r51215 | thomas.heller | 2006-08-11 21:55:35 +0200 (Fri, 11 Aug 2006) | 7 lines

When a ctypes C callback function is called, zero out the result
storage before converting the result to C data. See the comment in
the code for details.

Provide a better context for errors when the conversion of a callback
function's result cannot be converted.
........
r51218 | neal.norwitz | 2006-08-12 03:43:40 +0200 (Sat, 12 Aug 2006) | 6 lines

Klocwork made another run and found a bunch more problems.
This is the first batch of fixes that should be easy to verify based on context.

This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
........
r51219 | neal.norwitz | 2006-08-12 03:45:47 +0200 (Sat, 12 Aug 2006) | 9 lines

Even though _Py_Mangle() isn't truly public anyone can call it and
there was no verification that privateobj was a PyString. If it wasn't
a string, this could have allowed a NULL pointer to creep in below and crash.

I wonder if this should be PyString_CheckExact? Must identifiers be strings
or can they be subclasses?

Klocwork #275
........
r51220 | neal.norwitz | 2006-08-12 03:46:42 +0200 (Sat, 12 Aug 2006) | 5 lines

It's highly unlikely, though possible for PyEval_Get*() to return NULLs.
So be safe and do an XINCREF.

Klocwork # 221-222.
........
r51221 | neal.norwitz | 2006-08-12 03:47:59 +0200 (Sat, 12 Aug 2006) | 7 lines

This code is actually not used unless WITHOUT_COMPLEX is defined.
However, there was no error checking that PyFloat_FromDouble returned
a valid pointer. I believe this change is correct as it seemed
to follow other code in the area.

Klocwork # 292.
........
r51222 | neal.norwitz | 2006-08-12 03:49:12 +0200 (Sat, 12 Aug 2006) | 5 lines

Handle NULL nodes while parsing. I'm not entirely sure this is correct.
There might be something else that needs to be done to setup the error.

Klocwork #295.
........
r51223 | neal.norwitz | 2006-08-12 03:50:38 +0200 (Sat, 12 Aug 2006) | 6 lines

If _stat_float_times is false, we will try to INCREF ival which could be NULL.
Return early in that case. The caller checks for PyErr_Occurred so this
should be ok.

Klocwork #297
........
r51224 | neal.norwitz | 2006-08-12 03:51:12 +0200 (Sat, 12 Aug 2006) | 3 lines

Move the assert which checks for a NULL pointer first.
Klocwork #274.
........
r51225 | neal.norwitz | 2006-08-12 03:53:28 +0200 (Sat, 12 Aug 2006) | 5 lines

Try to handle a malloc failure. I'm not entirely sure this is correct.
There might be something else we need to do to handle the exception.

Klocwork # 212-213
........
r51226 | neal.norwitz | 2006-08-12 03:57:47 +0200 (Sat, 12 Aug 2006) | 6 lines

I'm not sure why this code allocates this string for the error message.
I think it would be better to always use snprintf and have the format
limit the size of the name appropriately (like %.200s).

Klocwork #340
........
r51227 | neal.norwitz | 2006-08-12 04:06:34 +0200 (Sat, 12 Aug 2006) | 3 lines

Check returned pointer is valid.
Klocwork #233
........
r51228 | neal.norwitz | 2006-08-12 04:12:30 +0200 (Sat, 12 Aug 2006) | 1 line

Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed
........
r51229 | neal.norwitz | 2006-08-12 04:33:36 +0200 (Sat, 12 Aug 2006) | 4 lines

Don't deref v if it's NULL.

Klocwork #214
........
r51230 | neal.norwitz | 2006-08-12 05:16:54 +0200 (Sat, 12 Aug 2006) | 5 lines

Check return of PyMem_MALLOC (garbage) is non-NULL.
Check seq in both portions of if/else.

Klocwork #289-290.
........
r51231 | neal.norwitz | 2006-08-12 05:17:41 +0200 (Sat, 12 Aug 2006) | 4 lines

PyModule_GetDict() can fail, produce fatal errors if this happens on startup.

Klocwork #298-299.
........
r51232 | neal.norwitz | 2006-08-12 05:18:50 +0200 (Sat, 12 Aug 2006) | 5 lines

Verify verdat which is returned from malloc is not NULL.
Ensure we don't pass NULL to free.

Klocwork #306 (at least the first part, checking malloc)
........
r51233 | tim.peters | 2006-08-12 06:42:47 +0200 (Sat, 12 Aug 2006) | 35 lines

test_signal: Signal handling on the Tru64 buildbot
appears to be utterly insane. Plug some theoretical
insecurities in the test script:

- Verify that the SIGALRM handler was actually installed.

- Don't call alarm() before the handler is installed.

- Move everything that can fail inside the try/finally,
so the test cleans up after itself more often.

- Try sending all the expected signals in
force_test_exit(), not just SIGALRM. Since that was
fixed to actually send SIGALRM (instead of invisibly
dying with an AttributeError), we've seen that sending
SIGALRM alone does not stop this from hanging.

- Move the "kill the child" business into the finally
clause, so the child doesn't survive test failure
to send SIGALRM to other tests later (there are also
baffling SIGALRM-related failures in test_socket).

- Cancel the alarm in the finally clause -- if the
test dies early, we again don't want SIGALRM showing
up to confuse a later test.

Alas, this still relies on timing luck wrt the spawned
script that sends the test signals, but it's hard to see
how waiting for seconds can so often be so unlucky.

test_threadedsignals: curiously, this test never fails
on Tru64, but doesn't normally signal SIGALRM. Anyway,
fixed an obvious (but probably inconsequential) logic
error.
........
r51234 | tim.peters | 2006-08-12 07:17:41 +0200 (Sat, 12 Aug 2006) | 8 lines

Ah, fudge. One of the prints here actually "shouldn't be"
protected by "if verbose:", which caused the test to fail on
all non-Windows boxes.

Note that I deliberately didn't convert this to unittest yet,
because I expect it would be even harder to debug this on Tru64
after conversion.
........
r51235 | georg.brandl | 2006-08-12 10:32:02 +0200 (Sat, 12 Aug 2006) | 3 lines

Repair logging test spew caused by rev. 51206.
........
r51236 | neal.norwitz | 2006-08-12 19:03:09 +0200 (Sat, 12 Aug 2006) | 8 lines

Patch #1538606, Patch to fix __index__() clipping.

I modified this patch some by fixing style, some error checking, and adding
XXX comments. This patch requires review and some changes are to be expected.
I'm checking in now to get the greatest possible review and establish a
baseline for moving forward. I don't want this to hold up release if possible.
........
r51238 | neal.norwitz | 2006-08-12 20:44:06 +0200 (Sat, 12 Aug 2006) | 10 lines

Fix a couple of bugs exposed by the new __index__ code. The 64-bit buildbots
were failing due to inappropriate clipping of numbers larger than 2**31
with new-style classes. (typeobject.c) In reviewing the code for classic
classes, there were 2 problems. Any negative value return could be returned.
Always return -1 if there was an error. Also make the checks similar
with the new-style classes. I believe this is correct for 32 and 64 bit
boxes, including Windows64.

Add a test of classic classes too.
........
r51240 | neal.norwitz | 2006-08-13 02:20:49 +0200 (Sun, 13 Aug 2006) | 1 line

SF bug #1539336, distutils example code missing
........
r51245 | neal.norwitz | 2006-08-13 20:10:10 +0200 (Sun, 13 Aug 2006) | 6 lines

Move/copy assert for tstate != NULL before first use.
Verify that PyEval_Get{Globals,Locals} returned valid pointers.

Klocwork 231-232
........
r51246 | neal.norwitz | 2006-08-13 20:10:28 +0200 (Sun, 13 Aug 2006) | 5 lines

Handle a whole lot of failures from PyString_FromInternedString().

Should fix most of Klocwork 234-272.
........
r51247 | neal.norwitz | 2006-08-13 20:10:47 +0200 (Sun, 13 Aug 2006) | 8 lines

cpathname could be NULL if it was longer than MAXPATHLEN. Don't try
to write the .pyc to NULL.

Check results of PyList_GetItem() and PyModule_GetDict() are not NULL.

Klocwork 282, 283, 285
........
r51248 | neal.norwitz | 2006-08-13 20:11:08 +0200 (Sun, 13 Aug 2006) | 6 lines

Fix segfault when doing string formatting on subclasses of long if
__oct__, __hex__ don't return a string.

Klocwork 308
........
r51250 | neal.norwitz | 2006-08-13 20:11:27 +0200 (Sun, 13 Aug 2006) | 5 lines

Check return result of PyModule_GetDict().
Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
........
r51251 | neal.norwitz | 2006-08-13 20:11:43 +0200 (Sun, 13 Aug 2006) | 5 lines

Handle malloc and fopen failures more gracefully.

Klocwork 180-181
........
r51252 | neal.norwitz | 2006-08-13 20:12:03 +0200 (Sun, 13 Aug 2006) | 7 lines

It's very unlikely, though possible that source is not a string. Verify
that PyString_AsString() returns a valid pointer. (The problem can
arise when zlib.decompress doesn't return a string.)

Klocwork 346
........
r51253 | neal.norwitz | 2006-08-13 20:12:26 +0200 (Sun, 13 Aug 2006) | 5 lines

Handle failures from lookup.

Klocwork 341-342
........
r51254 | neal.norwitz | 2006-08-13 20:12:45 +0200 (Sun, 13 Aug 2006) | 6 lines

Handle failure from PyModule_GetDict() (Klocwork 208).

Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
........
r51255 | neal.norwitz | 2006-08-13 20:13:02 +0200 (Sun, 13 Aug 2006) | 4 lines

Really address the issue of where to place the assert for leftblock.
(Followup of Klocwork 274)
........
r51256 | neal.norwitz | 2006-08-13 20:13:36 +0200 (Sun, 13 Aug 2006) | 4 lines

Handle malloc failure.

Klocwork 281
........
r51258 | neal.norwitz | 2006-08-13 20:40:39 +0200 (Sun, 13 Aug 2006) | 4 lines

Handle alloca failures.

Klocwork 225-228
........
r51259 | neal.norwitz | 2006-08-13 20:41:15 +0200 (Sun, 13 Aug 2006) | 1 line

Get rid of compiler warning
........
r51261 | neal.norwitz | 2006-08-14 02:51:15 +0200 (Mon, 14 Aug 2006) | 1 line

Ignore pgen.exe and kill_python.exe for cygwin
........
r51262 | neal.norwitz | 2006-08-14 02:59:03 +0200 (Mon, 14 Aug 2006) | 4 lines

Can't return NULL from a void function. If there is a memory error,
about the best we can do is call PyErr_WriteUnraisable and go on.
We won't be able to do the call below either, so verify delstr is valid.
........
r51263 | neal.norwitz | 2006-08-14 03:49:54 +0200 (Mon, 14 Aug 2006) | 1 line

Update purify doc some.
........
r51264 | thomas.heller | 2006-08-14 09:13:05 +0200 (Mon, 14 Aug 2006) | 2 lines

Remove unused, buggy test function.
Fixes klockwork issue #207.
........
r51265 | thomas.heller | 2006-08-14 09:14:09 +0200 (Mon, 14 Aug 2006) | 2 lines

Check for NULL return value from new_CArgObject().
Fixes klockwork issues #183, #184, #185.
........
r51266 | thomas.heller | 2006-08-14 09:50:14 +0200 (Mon, 14 Aug 2006) | 2 lines

Check for NULL return value of GenericCData_new().
Fixes klockwork issues #188, #189.
........
r51274 | thomas.heller | 2006-08-14 12:02:24 +0200 (Mon, 14 Aug 2006) | 2 lines

Revert the change that tries to zero out a closure's result storage
area because the size if unknown in source/callproc.c.
........
r51276 | marc-andre.lemburg | 2006-08-14 12:55:19 +0200 (Mon, 14 Aug 2006) | 11 lines

Slightly revised version of patch #1538956:

Replace UnicodeDecodeErrors raised during == and !=
compares of Unicode and other objects with a new
UnicodeWarning.

All other comparisons continue to raise exceptions.
Exceptions other than UnicodeDecodeErrors are also left
untouched.
........
r51277 | thomas.heller | 2006-08-14 13:17:48 +0200 (Mon, 14 Aug 2006) | 13 lines

Apply the patch #1532975 plus ideas from the patch #1533481.

ctypes instances no longer have the internal and undocumented
'_as_parameter_' attribute which was used to adapt them to foreign
function calls; this mechanism is replaced by a function pointer in
the type's stgdict.

In the 'from_param' class methods, try the _as_parameter_ attribute if
other conversions are not possible.

This makes the documented _as_parameter_ mechanism work as intended.

Change the ctypes version number to 1.0.1.
........
r51278 | marc-andre.lemburg | 2006-08-14 13:44:34 +0200 (Mon, 14 Aug 2006) | 3 lines

Readd NEWS items that were accidentally removed by r51276.
........
r51279 | georg.brandl | 2006-08-14 14:36:06 +0200 (Mon, 14 Aug 2006) | 3 lines

Improve markup in PyUnicode_RichCompare.
........
r51280 | marc-andre.lemburg | 2006-08-14 14:57:27 +0200 (Mon, 14 Aug 2006) | 3 lines

Correct an accidentally removed previous patch.
........
r51281 | thomas.heller | 2006-08-14 18:17:41 +0200 (Mon, 14 Aug 2006) | 3 lines

Patch #1536908: Add support for AMD64 / OpenBSD.
Remove the -no-stack-protector compiler flag for OpenBSD
as it has been reported to be unneeded.
........
r51282 | thomas.heller | 2006-08-14 18:20:04 +0200 (Mon, 14 Aug 2006) | 1 line

News item for rev 51281.
........
r51283 | georg.brandl | 2006-08-14 22:25:39 +0200 (Mon, 14 Aug 2006) | 3 lines

Fix refleak introduced in rev. 51248.
........
r51284 | georg.brandl | 2006-08-14 23:34:08 +0200 (Mon, 14 Aug 2006) | 5 lines

Make tabnanny recognize IndentationErrors raised by tokenize.
Add a test to test_inspect to make sure indented source
is recognized correctly. (fixes #1224621)
........
r51285 | georg.brandl | 2006-08-14 23:42:55 +0200 (Mon, 14 Aug 2006) | 3 lines

Patch #1535500: fix segfault in BZ2File.writelines and make sure it
raises the correct exceptions.
........
r51287 | georg.brandl | 2006-08-14 23:45:32 +0200 (Mon, 14 Aug 2006) | 3 lines

Add an additional test: BZ2File write methods should raise IOError
when file is read-only.
........
r51289 | georg.brandl | 2006-08-14 23:55:28 +0200 (Mon, 14 Aug 2006) | 3 lines

Patch #1536071: trace.py should now find the full module name of a
file correctly even on Windows.
........
r51290 | georg.brandl | 2006-08-15 00:01:24 +0200 (Tue, 15 Aug 2006) | 3 lines

Cookie.py shouldn't "bogusly" use string._idmap.
........
r51291 | georg.brandl | 2006-08-15 00:10:24 +0200 (Tue, 15 Aug 2006) | 3 lines

Patch #1511317: don't crash on invalid hostname info
........
r51292 | tim.peters | 2006-08-15 02:25:04 +0200 (Tue, 15 Aug 2006) | 2 lines

Whitespace normalization.
........
r51293 | neal.norwitz | 2006-08-15 06:14:57 +0200 (Tue, 15 Aug 2006) | 3 lines

Georg fixed one of my bugs, so I'll repay him with 2 NEWS entries.
Now we're even. :-)
........
r51295 | neal.norwitz | 2006-08-15 06:58:28 +0200 (Tue, 15 Aug 2006) | 8 lines

Fix the test for SocketServer so it should pass on cygwin and not fail
sporadically on other platforms. This is really a band-aid that doesn't
fix the underlying issue in SocketServer. It's not clear if it's worth
it to fix SocketServer, however, I opened a bug to track it:

http://python.org/sf/1540386
........
r51296 | neal.norwitz | 2006-08-15 06:59:30 +0200 (Tue, 15 Aug 2006) | 3 lines

Update the docstring to use a version a little newer than 1999. This was
taken from a Debian patch. Should we update the version for each release?
........
r51298 | neal.norwitz | 2006-08-15 08:29:03 +0200 (Tue, 15 Aug 2006) | 2 lines

Subclasses of int/long are allowed to define an __index__.
........
r51300 | thomas.heller | 2006-08-15 15:07:21 +0200 (Tue, 15 Aug 2006) | 1 line

Check for NULL return value from new_CArgObject calls.
........
r51303 | kurt.kaiser | 2006-08-16 05:15:26 +0200 (Wed, 16 Aug 2006) | 2 lines

The 'with' statement is now a Code Context block opener
........
r51304 | anthony.baxter | 2006-08-16 05:42:26 +0200 (Wed, 16 Aug 2006) | 1 line

preparing for 2.5c1
........
r51305 | anthony.baxter | 2006-08-16 05:58:37 +0200 (Wed, 16 Aug 2006) | 1 line

preparing for 2.5c1 - no, really this time
........
r51306 | kurt.kaiser | 2006-08-16 07:01:42 +0200 (Wed, 16 Aug 2006) | 9 lines

Patch #1540892: site.py Quitter() class attempts to close sys.stdin
before raising SystemExit, allowing IDLE to honor quit() and exit().

M Lib/site.py
M Lib/idlelib/PyShell.py
M Lib/idlelib/CREDITS.txt
M Lib/idlelib/NEWS.txt
M Misc/NEWS
........
r51307 | ka-ping.yee | 2006-08-16 09:02:50 +0200 (Wed, 16 Aug 2006) | 6 lines

Update code and tests to support the 'bytes_le' attribute (for
little-endian byte order on Windows), and to work around clocks
with low resolution yielding duplicate UUIDs.

Anthony Baxter has approved this change.
........
r51308 | kurt.kaiser | 2006-08-16 09:04:17 +0200 (Wed, 16 Aug 2006) | 2 lines

Get quit() and exit() to work cleanly when not using subprocess.
........
r51309 | marc-andre.lemburg | 2006-08-16 10:13:26 +0200 (Wed, 16 Aug 2006) | 2 lines

Revert to having static version numbers again.
........
r51310 | martin.v.loewis | 2006-08-16 14:55:10 +0200 (Wed, 16 Aug 2006) | 2 lines

Build _hashlib on Windows. Build OpenSSL with masm assembler code.
Fixes #1535502.
........
r51311 | thomas.heller | 2006-08-16 15:03:11 +0200 (Wed, 16 Aug 2006) | 6 lines

Add commented assert statements to check that the result of
PyObject_stgdict() and PyType_stgdict() calls are non-NULL before
dereferencing the result. Hopefully this fixes what klocwork is
complaining about.

Fix a few other nits as well.
........
r51312 | anthony.baxter | 2006-08-16 15:08:25 +0200 (Wed, 16 Aug 2006) | 1 line

news entry for 51307
........
r51313 | andrew.kuchling | 2006-08-16 15:22:20 +0200 (Wed, 16 Aug 2006) | 1 line

Add UnicodeWarning
........
r51314 | andrew.kuchling | 2006-08-16 15:41:52 +0200 (Wed, 16 Aug 2006) | 1 line

Bump document version to 1.0; remove pystone paragraph
........
r51315 | andrew.kuchling | 2006-08-16 15:51:32 +0200 (Wed, 16 Aug 2006) | 1 line

Link to docs; remove an XXX comment
........
r51316 | martin.v.loewis | 2006-08-16 15:58:51 +0200 (Wed, 16 Aug 2006) | 1 line

Make cl build step compile-only (/c). Remove libs from source list.
........
r51317 | thomas.heller | 2006-08-16 16:07:44 +0200 (Wed, 16 Aug 2006) | 5 lines

The __repr__ method of a NULL py_object does no longer raise an
exception. Remove a stray '?' character from the exception text
when the value is retrieved of such an object.

Includes tests.
........
r51318 | andrew.kuchling | 2006-08-16 16:18:23 +0200 (Wed, 16 Aug 2006) | 1 line

Update bug/patch counts
........
r51319 | andrew.kuchling | 2006-08-16 16:21:14 +0200 (Wed, 16 Aug 2006) | 1 line

Wording/typo fixes
........
r51320 | thomas.heller | 2006-08-16 17:10:12 +0200 (Wed, 16 Aug 2006) | 9 lines

Remove the special casing of Py_None when converting the return value
of the Python part of a callback function to C. If it cannot be
converted, call PyErr_WriteUnraisable with the exception we got.
Before, arbitrary data has been passed to the calling C code in this
case.

(I'm not really sure the NEWS entry is understandable, but I cannot
find better words)
........
r51321 | marc-andre.lemburg | 2006-08-16 18:11:01 +0200 (Wed, 16 Aug 2006) | 2 lines

Add NEWS item mentioning the reverted distutils version number patch.
........
r51322 | fredrik.lundh | 2006-08-16 18:47:07 +0200 (Wed, 16 Aug 2006) | 5 lines

SF#1534630

ignore data that arrives before the opening start tag
........
r51324 | andrew.kuchling | 2006-08-16 19:11:18 +0200 (Wed, 16 Aug 2006) | 1 line

Grammar fix
........
r51328 | thomas.heller | 2006-08-16 20:02:11 +0200 (Wed, 16 Aug 2006) | 12 lines

Tutorial:

Clarify somewhat how parameters are passed to functions
(especially explain what integer means).

Correct the table - Python integers and longs can both be used.
Further clarification to the table comparing ctypes types, Python
types, and C types.

Reference:

Replace integer by C ``int`` where it makes sense.
........
r51329 | kurt.kaiser | 2006-08-16 23:45:59 +0200 (Wed, 16 Aug 2006) | 8 lines

File menu hotkeys: there were three 'p' assignments. Reassign the
'Save Copy As' and 'Print' hotkeys to 'y' and 't'. Change the
Shell menu hotkey from 's' to 'l'.

M Bindings.py
M PyShell.py
M NEWS.txt
........
r51330 | neil.schemenauer | 2006-08-17 01:38:05 +0200 (Thu, 17 Aug 2006) | 3 lines

Fix a bug in the ``compiler`` package that caused invalid code to be
generated for generator expressions.
........
r51342 | martin.v.loewis | 2006-08-17 21:19:32 +0200 (Thu, 17 Aug 2006) | 3 lines

Merge 51340 and 51341 from 2.5 branch:
Leave tk build directory to restore original path.
Invoke debug mk1mf.pl after running Configure.
........
r51354 | martin.v.loewis | 2006-08-18 05:47:18 +0200 (Fri, 18 Aug 2006) | 3 lines

Bug #1541863: uuid.uuid1 failed to generate unique identifiers
on systems with low clock resolution.
........
r51355 | neal.norwitz | 2006-08-18 05:57:54 +0200 (Fri, 18 Aug 2006) | 1 line

Add template for 2.6 on HEAD
........
r51356 | neal.norwitz | 2006-08-18 06:01:38 +0200 (Fri, 18 Aug 2006) | 1 line

More post-release wibble
........
r51357 | neal.norwitz | 2006-08-18 06:58:33 +0200 (Fri, 18 Aug 2006) | 1 line

Try to get Windows bots working again
........
r51358 | neal.norwitz | 2006-08-18 07:10:00 +0200 (Fri, 18 Aug 2006) | 1 line

Try to get Windows bots working again. Take 2
........
r51359 | neal.norwitz | 2006-08-18 07:39:20 +0200 (Fri, 18 Aug 2006) | 1 line

Try to get Unix bots install working again.
........
r51360 | neal.norwitz | 2006-08-18 07:41:46 +0200 (Fri, 18 Aug 2006) | 1 line

Set version to 2.6a0, seems more consistent.
........
r51362 | neal.norwitz | 2006-08-18 08:14:52 +0200 (Fri, 18 Aug 2006) | 1 line

More version wibble
........
r51364 | georg.brandl | 2006-08-18 09:27:59 +0200 (Fri, 18 Aug 2006) | 4 lines

Bug #1541682: Fix example in the "Refcount details" API docs.
Additionally, remove a faulty example showing PySequence_SetItem applied
to a newly created list object and add notes that this isn't a good idea.
........
r51366 | anthony.baxter | 2006-08-18 09:29:02 +0200 (Fri, 18 Aug 2006) | 3 lines

Updating IDLE's version number to match Python's (as per python-dev
discussion).
........
r51367 | anthony.baxter | 2006-08-18 09:30:07 +0200 (Fri, 18 Aug 2006) | 1 line

RPM specfile updates
........
r51368 | georg.brandl | 2006-08-18 09:35:47 +0200 (Fri, 18 Aug 2006) | 2 lines

Typo in tp_clear docs.
........
r51378 | andrew.kuchling | 2006-08-18 15:57:13 +0200 (Fri, 18 Aug 2006) | 1 line

Minor edits
........
r51379 | thomas.heller | 2006-08-18 16:38:46 +0200 (Fri, 18 Aug 2006) | 6 lines

Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'n not 1000% sure about the non-NULL, raise
a RuntimeError for safety.

This should fix the klocwork issues that Neal sent me. If so,
it should be applied to the release25-maint branch also.
........
r51400 | neal.norwitz | 2006-08-19 06:22:33 +0200 (Sat, 19 Aug 2006) | 5 lines

Move initialization of interned strings to before allocating the
object so we don't leak op. (Fixes an earlier patch to this code)

Klockwork #350
........
r51401 | neal.norwitz | 2006-08-19 06:23:04 +0200 (Sat, 19 Aug 2006) | 4 lines

Move assert to after NULL check, otherwise we deref NULL in the assert.

Klocwork #307
........
r51402 | neal.norwitz | 2006-08-19 06:25:29 +0200 (Sat, 19 Aug 2006) | 2 lines

SF #1542693: Remove semi-colon at end of PyImport_ImportModuleEx macro
........
r51403 | neal.norwitz | 2006-08-19 06:28:55 +0200 (Sat, 19 Aug 2006) | 6 lines

Move initialization to after the asserts for non-NULL values.

Klocwork 286-287.

(I'm not backporting this, but if someone wants to, feel free.)
........
r51404 | neal.norwitz | 2006-08-19 06:52:03 +0200 (Sat, 19 Aug 2006) | 6 lines

Handle PyString_FromInternedString() failing (unlikely, but possible).

Klocwork #325

(I'm not backporting this, but if someone wants to, feel free.)
........
r51416 | georg.brandl | 2006-08-20 15:15:39 +0200 (Sun, 20 Aug 2006) | 2 lines

Patch #1542948: fix urllib2 header casing issue. With new test.
........
r51428 | jeremy.hylton | 2006-08-21 18:19:37 +0200 (Mon, 21 Aug 2006) | 3 lines

Move peephole optimizer to separate file.
........
r51429 | jeremy.hylton | 2006-08-21 18:20:29 +0200 (Mon, 21 Aug 2006) | 2 lines

Move peephole optimizer to separate file. (Forgot .h in previous checkin.)
........
r51432 | neal.norwitz | 2006-08-21 19:59:46 +0200 (Mon, 21 Aug 2006) | 5 lines

Fix bug #1543303, tarfile adds padding that breaks gunzip.
Patch # 1543897.

Will backport to 2.5
........
r51433 | neal.norwitz | 2006-08-21 20:01:30 +0200 (Mon, 21 Aug 2006) | 2 lines

Add assert to make Klocwork happy (#276)
........
/external/python/cpython3/Objects/bytesobject.c
50e9fb9e2d6b4b12524116ab775ac6543e4a5332 17-Aug-2006 Guido van Rossum <guido@python.org> Completely get rid of PyClass and PyInstance.
(classobject.[ch] aren't empty yet because they also define PyMethod.)
This breaks lots of stuff, notably cPickle. But it's a step in the right
direction. I'll clean it up later.
(Also a few unrelated changes, e.g. T_NONE to define a "struct member"
that is always None, and simplification of __hash__ -- these are unfinished.)
/external/python/cpython3/Objects/bytesobject.c
3cf5b1eef99fbd85bbd2bcd2e6223dfec92daf8b 27-Jul-2006 Guido van Rossum <guido@python.org> Get rid of most of the flags (in tp_flags) that keep track of various
variations of the type struct and its attachments. In Py3k, all type
structs have to have all fields -- no binary backwards compatibility.
Had to change the complex object to a new-style number!
/external/python/cpython3/Objects/bytesobject.c
2018831b2b2106499a43b37e49e24f7f14154d35 05-May-2006 Guido van Rossum <guido@python.org> Adding bytes.join() -- a class methods that concatenates an iterable of bytes.
The name and API are questionable, but the functionality isn't.
/external/python/cpython3/Objects/bytesobject.c
a0867f79bbdd2b38add23fced8e5ae071ce09f70 05-May-2006 Guido van Rossum <guido@python.org> Optimizations for bytes reallocation.
This uses up to 12.5% overallocation, not entirely unlike list_resize().
Could probably use more tweaks for odd allocation patterns, TBD.

Also add __alloc__() method which returns the actually allocated size.

PS. I'm now convinced that we need something like "".join(); later.
/external/python/cpython3/Objects/bytesobject.c
13e57219d3143e4bae976a90846d6902e0514006 28-Apr-2006 Guido van Rossum <guido@python.org> Implement bytes += bytes, bytes *= int, int in bytes, bytes in bytes.
/external/python/cpython3/Objects/bytesobject.c
d624f18a2167daeabc85c1fef7e71dbc93daf5b5 24-Apr-2006 Guido van Rossum <guido@python.org> Added much functionality to the bytes type.
Change file.readinto() to require binary mode.
/external/python/cpython3/Objects/bytesobject.c
e06b6b8ff5a380f5e107f2d28f23853bfe20021e 23-Apr-2006 Guido van Rossum <guido@python.org> Fix a leak and a buglet discovered by Thomas.
Get rid of silly lambdas in the unit test suite.
Add a TODO list to the unit test suite (TDD style).
/external/python/cpython3/Objects/bytesobject.c
4dfe8a1131b551687659b9339eaee163a24f82f1 23-Apr-2006 Guido van Rossum <guido@python.org> Here is a bytes type. It's very minimal but it's a start.
/external/python/cpython3/Objects/bytesobject.c