summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵Antoine Pitrou2012-04-041-1/+1
| | | | the stable ABI.
* Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-031-1/+29
|
* Merge 3.2Florent Xicluna2011-12-091-1/+1
|\
| * Fix docstring typo.Florent Xicluna2011-12-091-1/+1
| |
* | Remove mention of narrow/wide builds and update array doc, add a test.Ezio Melotti2011-10-251-4/+1
| |
* | Merge 3.2.Florent Xicluna2011-10-241-4/+4
|\ \ | |/
| * Issue #13255: wrong docstrings in array module.Florent Xicluna2011-10-241-4/+4
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-4/+4
| |
* | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-3/+5
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-2/+5
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Fix a compiler warningVictor Stinner2011-09-291-1/+1
| |
* | Fix array.array('u') constructorVictor Stinner2011-09-291-6/+12
| |
* | array module uses the new Unicode APIVictor Stinner2011-09-291-33/+30
| | | | | | | | | | * Use Py_UCS4* buffer instead of Py_UNICODE* * Use "I" or "L" format, instead of "u" format
* | array module stores the typecode in a char, instead of Py_UNICODEVictor Stinner2011-09-291-19/+16
| |
* | Rename new macros to conform to naming rules (function macros have "Py" ↵Georg Brandl2011-09-281-1/+1
| | | | | | | | prefix, not "PY").
* | Implement PEP 393.Martin v. Löwis2011-09-281-4/+4
| |
* | Issue #1621: Fix undefined behaviour from signed overflow in datetime module ↵Mark Dickinson2011-09-251-1/+1
| | | | | | | | hashes, array and list iterations, and get_integer (stringlib/string_format.h)
* | Issue #1172711: Add 'long long' support to the array module.Meador Inge2011-09-211-1/+78
| | | | | | | | Initial patch by Oren Tirosh and Hirokazu Yamamoto.
* | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin2011-08-111-4/+2
| | | | | | | | The macro was introduced in #12724.
* | Revert a reversed comparison order introduced in r70695.Brett Cannon2011-06-081-1/+1
| |
* | Remove some extraneous parentheses and swap the comparison order toBrett Cannon2011-06-071-1/+1
| | | | | | | | | | | | prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
* | Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-221-1/+0
|/
* Issue #5109: array.array constructor will now use fast code whenAlexander Belopolsky2011-01-111-5/+15
| | | | initial data is provided in an array object with correct type.
* #1569291: speed up array.repeat() by making only O(log n) memcpy() calls; ↵Georg Brandl2010-12-041-9/+17
| | | | the code follows unicode_repeat.
* Merge branches/pep-0384.Martin v. Löwis2010-12-031-2/+2
|
* Fix compilation warnings seen on Windows.Amaury Forgeot d'Arc2010-11-251-7/+7
| | | | 'typecode' is always an ascii letter, there was no data lost.
* Issue #10359: Use Py_UNICODE for the typecode in arrayVictor Stinner2010-11-091-7/+9
| | | | And don't create non constant array, invalid in ISO C.
* Issue #8990: array.fromstring() and array.tostring() get renamed toAntoine Pitrou2010-09-011-17/+77
| | | | | | frombytes() and tobytes(), respectively, to avoid confusion. Furthermore, array.frombytes(), array.extend() as well as the array.array() constructor now accept bytearray objects. Patch by Thomas Jollans.
* Issue #9526: Remove outdated casts to int that were preventing the array ↵Mark Dickinson2010-08-061-2/+2
| | | | module from working correctly with arrays > 2GB.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1923/+1923
| | | | | | | | | | 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 78189 via svnmerge fromMark Dickinson2010-02-141-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78189 | mark.dickinson | 2010-02-14 13:40:30 +0000 (Sun, 14 Feb 2010) | 1 line Silence more 'comparison between signed and unsigned' warnings. ........
* Merged revisions 77821 via svnmerge fromMark Dickinson2010-01-291-2/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77821 | mark.dickinson | 2010-01-29 17:11:39 +0000 (Fri, 29 Jan 2010) | 3 lines Issue #7788: Fix a crash produced by deleting a list slice with huge step value. Patch by Marcin Bachry. ........
* Silence gcc warning about possibly uninitialized variable 'converted_items'Mark Dickinson2009-10-261-0/+2
|
* Use the proper autoconf macro for checking byte order.Alexandre Vassalotti2009-07-171-1/+1
| | | | | | | The BYTEORDER_IS_BIG_ENDIAN macro is defined Objects/unicodeobject.c, thus the code was always emitting the little-endian machine format codes. This should fix the failure seen on the SPARC buildbot.
* Fix omission in a comment.Alexandre Vassalotti2009-07-151-1/+1
|
* Issue #2389: Implement a portable mechanism for pickling array objects.Alexandre Vassalotti2009-07-151-49/+515
| | | | Reviewed by: Martin v. Löwis
* #6430: remove mention of "w" array typecode.Georg Brandl2009-07-111-1/+0
|
* Add the fix for issue 4509 to the mapping methods.Alexandre Vassalotti2009-07-051-0/+10
|
* Fix array.extend and array.__iadd__ to handle the case where an arrayAlexandre Vassalotti2009-07-051-3/+5
| | | | | | is extended with itself. This bug is specific the py3k version of arraymodule.c
* Issue 4509: Do not modify an array if we know the change would resultAlexandre Vassalotti2009-07-051-0/+8
| | | | in a failure due to exported buffers.
* Py_BuildValue's 'c' code should use byte strings #5666Benjamin Peterson2009-04-031-2/+2
|
* Issue #5334: array.fromfile() failed to insert values when EOFError was raised.Hirokazu Yamamoto2009-03-061-6/+11
| | | | Reviewed by Benjamin Peterson.
* Merged revisions 69846 via svnmerge fromMark Dickinson2009-02-211-6/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69846 | mark.dickinson | 2009-02-21 20:27:01 +0000 (Sat, 21 Feb 2009) | 2 lines Issue #5341: Fix a variety of spelling errors. ........
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-2/+2
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #4583: crash after resizing an array.array which has buffer exports.Antoine Pitrou2008-12-181-96/+46
|
* Merged revisions 65654 via svnmerge fromMartin v. Löwis2008-08-131-0/+2
| | | | | | | | | | | | | | 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*. ........
* Merged revisions 65182 via svnmerge fromGeorg Brandl2008-07-231-1/+4
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65182 | gregory.p.smith | 2008-07-22 06:46:32 +0200 (Tue, 22 Jul 2008) | 7 lines Issue #2620: Overflow checking when allocating or reallocating memory was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed. ........
* Merged revisions 64114 via svnmerge fromAmaury Forgeot d'Arc2008-06-181-2/+33
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r64114 | gregory.p.smith | 2008-06-11 09:41:16 +0200 (mer., 11 juin 2008) | 6 lines Merge in release25-maint r60793: Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code. ........
* Merged revisions ↵Amaury Forgeot d'Arc2008-06-171-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 64119,64147,64150,64165,64219-64221,64229-64230,64233,64235,64253,64278,64280,64301,64303,64320,64328,64338-64339 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r64119 | andrew.kuchling | 2008-06-11 14:53:14 +0200 (mer., 11 juin 2008) | 1 line Note PEP 371 section ........ r64147 | benjamin.peterson | 2008-06-11 22:04:30 +0200 (mer., 11 juin 2008) | 2 lines update ACKS and NEWs for multiprocessing ........ r64150 | georg.brandl | 2008-06-11 22:28:06 +0200 (mer., 11 juin 2008) | 2 lines Can we agree to put dots at entry ends? Thanks. ........ r64165 | armin.rigo | 2008-06-12 11:50:58 +0200 (jeu., 12 juin 2008) | 3 lines Sounds obvious, but I didn't even realize that you can put non-string keys in type dictionaries without using this locals() hack. ........ r64219 | neal.norwitz | 2008-06-13 08:00:46 +0200 (ven., 13 juin 2008) | 1 line Check for memory alloc failure ........ r64220 | neal.norwitz | 2008-06-13 08:02:26 +0200 (ven., 13 juin 2008) | 3 lines Fix some memory dealloc problems when exceptions occur. It caused: "Fatal Python error: UNREF invalid object" in the DoubleTest. ........ r64221 | neal.norwitz | 2008-06-13 08:03:25 +0200 (ven., 13 juin 2008) | 3 lines Fix typo in method name. The LT class implemented less than. The LE class should implement less than or equal to (as the code does). ........ r64229 | georg.brandl | 2008-06-13 15:26:54 +0200 (ven., 13 juin 2008) | 2 lines Clarification. ........ r64230 | robert.schuppenies | 2008-06-13 15:29:37 +0200 (ven., 13 juin 2008) | 2 lines Fixed: sys.getsizeof does not take the actual length of the tuples into account. ........ r64233 | benjamin.peterson | 2008-06-13 17:11:50 +0200 (ven., 13 juin 2008) | 2 lines platform.uname now tries to fill empty values even when os.uname is present ........ r64235 | benjamin.peterson | 2008-06-13 17:41:09 +0200 (ven., 13 juin 2008) | 1 line set svn:ignore on multiprocessing ........ r64253 | andrew.kuchling | 2008-06-13 21:38:18 +0200 (ven., 13 juin 2008) | 1 line Typo fixes ........ r64278 | martin.v.loewis | 2008-06-14 16:24:47 +0200 (sam., 14 juin 2008) | 2 lines Disable UAC by default. ........ r64280 | gregory.p.smith | 2008-06-14 19:34:09 +0200 (sam., 14 juin 2008) | 3 lines silence the test when it is skipped on some platforms. should fix a buildbot. ........ r64301 | georg.brandl | 2008-06-15 21:54:36 +0200 (dim., 15 juin 2008) | 2 lines Forward-port new test from r64300. ........ r64303 | raymond.hettinger | 2008-06-16 03:42:40 +0200 (lun., 16 juin 2008) | 1 line Issue 3116: fix quadratic behavior in marshal.dumps(). ........ r64320 | georg.brandl | 2008-06-16 23:00:47 +0200 (lun., 16 juin 2008) | 2 lines Add Jesse Noller to the developers list. ........ r64328 | georg.brandl | 2008-06-17 11:01:35 +0200 (mar., 17 juin 2008) | 2 lines Split the HTML index. ........ r64338 | vinay.sajip | 2008-06-17 13:02:14 +0200 (mar., 17 juin 2008) | 1 line Bug #3126: StreamHandler and FileHandler check before calling "flush" and "close" that the stream object has these, using hasattr (thanks to bobf for the patch). ........ r64339 | vinay.sajip | 2008-06-17 13:04:02 +0200 (mar., 17 juin 2008) | 1 line Updated with fix for #3126. ........
* Merged revisions 64226 via svnmerge fromMartin v. Löwis2008-06-131-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r64226 | martin.v.loewis | 2008-06-13 09:47:47 +0200 (Fr, 13 Jun 2008) | 2 lines Make more symbols static. ........