summaryrefslogtreecommitdiffstats
path: root/Objects/bytearrayobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix compilation on WindowsChristian Heimes2012-11-031-1/+1
|
* #8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an ↵Ezio Melotti2012-11-031-0/+6
| | | | error.
* Improve tooltips for splitlines() by showing that the default for keepends ↵Raymond Hettinger2012-06-021-1/+1
| | | | is False.
* Issue #13019: Fix potential reference leaks in bytearray.extend().Antoine Pitrou2012-04-011-2/+6
| | | | Patch by Suman Saha.
* merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind ↵Senthil Kumaran2011-07-271-2/+2
| | | | methods of bytes/bytearry/unicodeobject.
* startswith and endswith don't accept None as slice index. Patch by Torsten ↵Jesus Cea2011-04-201-8/+5
| | | | Becker. (closes #11828)
* #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
|
* Merged revisions 88735 via svnmerge fromEli Bendersky2011-03-041-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88735 | eli.bendersky | 2011-03-04 06:55:25 +0200 (Fri, 04 Mar 2011) | 2 lines Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearrays ........
* Merged revisions ↵Georg Brandl2011-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87050,87101,87146,87156,87172,87175,87371,87378,87522-87524,87526,87530-87535 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87050 | georg.brandl | 2010-12-04 18:09:30 +0100 (Sa, 04 Dez 2010) | 1 line Fix typo. ........ r87101 | georg.brandl | 2010-12-06 23:02:48 +0100 (Mo, 06 Dez 2010) | 1 line Remove visible XXX comments. ........ r87146 | georg.brandl | 2010-12-09 19:08:43 +0100 (Do, 09 Dez 2010) | 1 line Fix "seperate". ........ r87156 | georg.brandl | 2010-12-10 11:01:44 +0100 (Fr, 10 Dez 2010) | 1 line #10668: fix wrong call of __init__. ........ r87172 | georg.brandl | 2010-12-11 20:10:30 +0100 (Sa, 11 Dez 2010) | 1 line Avoid AttributeError(_closed) when a TemporaryDirectory is deallocated whose mkdtemp call failed. ........ r87175 | georg.brandl | 2010-12-11 23:19:34 +0100 (Sa, 11 Dez 2010) | 1 line Fix markup. ........ r87371 | georg.brandl | 2010-12-18 17:21:58 +0100 (Sa, 18 Dez 2010) | 1 line Fix typo. ........ r87378 | georg.brandl | 2010-12-18 18:51:28 +0100 (Sa, 18 Dez 2010) | 1 line #10723: add missing builtin exceptions. ........ r87522 | georg.brandl | 2010-12-28 10:16:12 +0100 (Di, 28 Dez 2010) | 1 line Replace sys.maxint mention by sys.maxsize. ........ r87523 | georg.brandl | 2010-12-28 10:18:24 +0100 (Di, 28 Dez 2010) | 1 line Remove confusing paragraph -- this is relevant only to advanced users anyway and does not belong into the tutorial. ........ r87524 | georg.brandl | 2010-12-28 10:29:19 +0100 (Di, 28 Dez 2010) | 1 line Fix advice: call PyType_Ready to fill in ob_type of custom types. ........ r87526 | georg.brandl | 2010-12-28 11:38:33 +0100 (Di, 28 Dez 2010) | 1 line #10777: fix iteration over dict keys while mutating the dict. ........ r87530 | georg.brandl | 2010-12-28 12:06:07 +0100 (Di, 28 Dez 2010) | 1 line #10767: update README in crashers; not all may have a bug entry and/or be fixed. ........ r87531 | georg.brandl | 2010-12-28 12:08:17 +0100 (Di, 28 Dez 2010) | 1 line #10742: document readonly attribute of memoryviews. ........ r87532 | georg.brandl | 2010-12-28 12:15:49 +0100 (Di, 28 Dez 2010) | 1 line #10781: clarify that *encoding* is not a parameter for Node objects in general. ........ r87533 | georg.brandl | 2010-12-28 12:38:12 +0100 (Di, 28 Dez 2010) | 1 line Remove history; adapt a bit more to reST, since this will once be part of the dev guide. ........ r87534 | georg.brandl | 2010-12-28 12:48:53 +0100 (Di, 28 Dez 2010) | 1 line Rewrap. ........ r87535 | georg.brandl | 2010-12-28 12:49:41 +0100 (Di, 28 Dez 2010) | 1 line #10739: document that on Windows, socket.makefile() does not make a file that has a true file descriptor usable where such a thing is expected. ........
* Issue #8930: fix some C code indentationAntoine Pitrou2010-06-091-45/+45
|
* tiny simplificationBenjamin Peterson2010-04-161-2/+1
|
* have a clear error when passing something > sys.maxsize to bytearrayBenjamin Peterson2010-04-161-7/+11
|
* Silence more compiler warnings; fix an instance of potential undefined ↵Mark Dickinson2010-02-141-4/+5
| | | | behaviour from signed overflow.
* Issue #7788: Fix a crash produced by deleting a list slice with hugeMark Dickinson2010-01-291-1/+2
| | | | step value. Patch by Marcin Bachry.
* #7775: fixed docstring for rpartitionEzio Melotti2010-01-251-1/+1
|
* Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)Antoine Pitrou2010-01-171-17/+6
| | | | | | could crash in many places because of the PyByteArray_AS_STRING() macro returning NULL. The macro now returns a statically allocated empty string instead.
* Fixed typoEzio Melotti2010-01-141-1/+1
|
* Issue #7622: Improve the split(), rsplit(), splitlines() and replace()Antoine Pitrou2010-01-131-429/+77
| | | | | methods of bytes, bytearray and unicode objects by using a common implementation based on stringlib's fast search. Patch by Florent Xicluna.
* Issue #7462: Implement the stringlib fast search algorithm for the `rfind`,Antoine Pitrou2010-01-021-30/+9
| | | | `rindex`, `rsplit` and `rpartition` methods. Patch by Florent Xicluna.
* Fix missing semicolonMark Dickinson2009-10-151-1/+1
|
* backport keyword argument support for bytearray.decodeBenjamin Peterson2009-09-181-3/+4
|
* Issue #6847: s/bytes/bytearray/ in some bytearray error messages. Thanks ↵Mark Dickinson2009-09-061-4/+4
| | | | Hagen Fürstenau.
* Issue #6846: bytearray.pop was returning ints in the range [-128, 128)Mark Dickinson2009-09-061-1/+1
| | | | instead of [0, 256). Thanks Hagen Fürstenau for the report and fix.
* Issue #6540: Fixed crash for bytearray.translate() with invalid parameters.Georg Brandl2009-07-221-3/+5
|
* Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to ↵Eric Smith2009-04-271-9/+9
| | | | py3k. Should fix Windows buildbot errors.
* rename internal bytes_ functions to bytearrayBenjamin Peterson2009-04-181-153/+153
|
* Whitespace normalization.Georg Brandl2009-04-051-8/+8
|
* fix funky indentationBenjamin Peterson2009-03-081-4/+4
|
* Fixed memory leak on failure.Hirokazu Yamamoto2009-03-051-1/+1
|
* Issue 1242657: list(obj) can swallow KeyboardInterrupt.Raymond Hettinger2009-02-021-0/+4
|
* fix building the core with --disable-unicodeBenjamin Peterson2009-01-251-17/+30
| | | | | I changed some bytearray methods to use strings instead of unicode like bytes_repr Also, bytearray.fromhex() can take strings as well as unicode
* Backport r67974:Georg Brandl2008-12-281-16/+25
| | | | | | #4759: allow None as first argument of bytearray.translate(), for consistency with bytes.translate(). Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6.
* Issue #4509: bugs in bytearray with exports (buffer protocol)Antoine Pitrou2008-12-061-11/+31
|
* make sure that bytearray methods return a new bytearray even if there is no ↵Benjamin Peterson2008-11-191-21/+3
| | | | | | | change Fixes #4348 Reviewed by Brett
* Silenced compiler warningChristian Heimes2008-08-221-0/+1
| | | | | Objects/stringlib/find.h:97: warning: 'stringlib_contains_obj' defined but not used Reviewed by Benjamin Peterson
* Fix a refleak in bytearray.split and bytearray.rsplit, detected byAmaury Forgeot d'Arc2008-08-171-4/+10
| | | | regrtest.py -R:: test_bytes
* Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,Martin v. Löwis2008-08-121-32/+37
| | | | | | | by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*.
* Fix a couple of names in error messages that were wrongNeal Norwitz2008-07-201-2/+2
|
* Backport part of r65043.Georg Brandl2008-07-161-2/+1
|
* Use _getbytevalue() in init too.Georg Brandl2008-07-161-10/+3
|
* #3156: fix consistency in what type bytearray methods accept as items.Georg Brandl2008-07-161-40/+38
| | | | Also rename confusing "item" parameters to "index".
* Added additional __sizeof__ implementations and addressed comments made inRobert Schuppenies2008-07-101-0/+14
| | | | Issue3122.
* Docstring typoAndrew M. Kuchling2008-06-211-1/+1
|
* Renamed bytesobject.c to bytearrayobject.cChristian Heimes2008-05-261-0/+3379
Renamed stringobject.c to bytesobject.c Fixed Windows builds