summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #11231: Fix bytes and bytearray docstringsVictor Stinner2011-12-171-3/+4
|\ | | | | | | Patch written by Brice Berna.
| * Issue #11231: Fix bytes and bytearray docstringsVictor Stinner2011-12-171-3/+4
| | | | | | | | Patch written by Brice Berna.
* | Issue #13411: memoryview objects are now hashable when the underlying object ↵Antoine Pitrou2011-11-211-16/+5
| | | | | | | | is hashable.
* | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()Victor Stinner2011-11-211-1/+1
| | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength()
* | Issue #12170: The count(), find(), rfind(), index() and rindex() methodsAntoine Pitrou2011-10-201-18/+44
| | | | | | | | | | of bytes and bytearray objects now accept an integer between 0 and 255 as their first argument. Patch by Petri Lehtinen.
* | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16Victor Stinner2011-10-141-3/+2
| |
* | Fix hex_digit_to_int() prototype: expect Py_UCS4, not Py_UNICODEVictor Stinner2011-09-291-2/+2
| |
* | Implement PEP 393.Martin v. Löwis2011-09-281-64/+63
| |
* | Issue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, ↵Mark Dickinson2011-09-241-4/+4
| | | | | | | | tuple.__hash__, frozenset.__hash__ and set indexing operations.
* | Issue #13012: Allow 'keepends' to be passed as a keyword argument in ↵Mark Dickinson2011-09-241-3/+5
| | | | | | | | str.splitlines, bytes.splitlines and bytearray.splitlines.
* | merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind ↵Senthil Kumaran2011-07-271-2/+2
|\ \ | |/ | | | | methods of bytes/bytearry/unicodeobject.
| * Fix closes Issue12621 - Fix docstrings of find and rfind methods of ↵Senthil Kumaran2011-07-271-2/+2
| | | | | | | | bytes/bytearry/unicodeobject.
* | #6780: merge with 3.2.Ezio Melotti2011-04-261-2/+10
|\ \ | |/
| * #6780: merge with 3.1.Ezio Melotti2011-04-261-2/+10
| |\
| | * #6780: fix starts/endswith error message to mention that tuples are accepted ↵Ezio Melotti2011-04-261-2/+10
| | | | | | | | | | | | too.
* | | MERGE: startswith and endswith don't accept None as slice index. Patch by ↵Jesus Cea2011-04-201-18/+5
|\ \ \ | |/ / | | | | | | Torsten Becker. (closes #11828)
| * | MERGE: startswith and endswith don't accept None as slice index. Patch by ↵Jesus Cea2011-04-201-18/+5
| |\ \ | | |/ | | | | | | Torsten Becker. (closes #11828)
| | * startswith and endswith don't accept None as slice index. Patch by Torsten ↵Jesus Cea2011-04-201-18/+5
| | | | | | | | | | | | Becker. (closes #11828)
* | | Issue #11634: Remove misleading paragraph from a commentEli Bendersky2011-03-241-6/+2
|/ /
* | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
|\ \ | |/
| * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| |
| * Merged revisions 84629 via svnmerge fromSenthil Kumaran2010-09-081-2/+1
| | | | | | | | | | | | | | | | | | | | 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. ........
| * Merged revisions 84070,84074 via svnmerge fromAntoine Pitrou2010-08-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ........
| * Merged revisions 83882 via svnmerge fromSenthil Kumaran2010-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | 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. ........
| * Merged revisions 83880 via svnmerge fromSenthil Kumaran2010-08-091-1/+2
| | | | | | | | | | | | | | | | | | | | 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. ........
| * Merged revisions 81862 via svnmerge fromAntoine Pitrou2010-06-091-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ........ ................
| * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-2593/+2593
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ........ ................
| * Merged revisions 80125,80128,80130 via svnmerge fromBenjamin Peterson2010-04-161-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ........ ................
| * Merged revisions 77745 via svnmerge fromEzio Melotti2010-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ........ ................
* | remove (un)transform methodsBenjamin Peterson2010-12-121-64/+0
| |
* | Merge branches/pep-0384.Martin v. Löwis2010-12-031-1/+1
| |
* | #7475: add (un)transform method to bytes/bytearray and str, add back codecs ↵Georg Brandl2010-12-021-0/+64
| | | | | | | | that can be used with them from Python 2.
* | str, bytes, bytearray docstring: remove unnecessary [...]Victor Stinner2010-11-071-1/+1
| |
* | Fix encode/decode method doc of str, bytes, bytearray typesVictor Stinner2010-11-071-3/+3
| | | | | | | | | | | | * Specify the default encoding: write 'utf-8' instead of sys.getdefaultencoding(), because the default encoding is now constant * Specify the default errors value
* | Issue #10288: The deprecated family of "char"-handling macrosDavid Malcolm2010-11-051-14/+14
| | | | | | | | | | (ISLOWER()/ISUPPER()/etc) have now been removed: use Py_ISLOWER() etc instead.
* | make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson2010-10-171-2/+2
| |
* | Revert the doc change done in r83880. str.replace with negative count value ↵Senthil Kumaran2010-09-081-2/+1
| | | | | | | | is not a feature.
* | Fix some compilation warnings under 64-bit Windows (issue #9566).Antoine Pitrou2010-08-151-6/+6
| | | | | | | | | | Some of these are genuine bugs with objects bigger than 2GB, but my system doesn't allow me to write tests for it.
* | Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99Alexander Belopolsky2010-08-111-9/+1
| | | | | | | | | | va_copy, but available on all python platforms. Untabified a few unrelated files.
* | Issue #9530: Fix undefined-behaviour-inducing overflow checks in bytes and ↵Mark Dickinson2010-08-101-34/+23
| | | | | | | | bytearray implementations.
* | spelling mistake.Senthil Kumaran2010-08-091-1/+1
| |
* | Fix Issue5416 - explain negative value for count in bytes object replace.Senthil Kumaran2010-08-091-1/+2
| |
* | Merged revisions 81860 via svnmerge fromAntoine Pitrou2010-06-091-19/+19
| | | | | | | | | | | | | | | | | | | | 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 ........
* | Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-2326/+2326
| | | | | | | | | | | | | | | | | | | | 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. ........
* | Merged revisions 80126 via svnmerge fromBenjamin Peterson2010-04-161-5/+7
| | | | | | | | | | | | | | | | | | | | 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 ........
* | Merged revisions 77743 via svnmerge fromEzio Melotti2010-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | 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 ........
* | Merged revisions 77461 via svnmerge fromAntoine Pitrou2010-01-131-447/+76
| | | | | | | | | | | | | | | | | | | | | | | | 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. ........
* | Issue #7382: Fix bytes.__getnewargs__.Alexandre Vassalotti2010-01-121-1/+1
| |
* | Issue #6688: Optimize PyBytes_FromObject().Alexandre Vassalotti2010-01-091-7/+52
| | | | | | | | | | | | - 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.
* | Issue #6687: Moved the special-case for integers out of PyBytes_FromObject.Alexandre Vassalotti2009-12-311-21/+25
| |