Stefan Krah
650c1e818d
Issue #14203 : Remove obsolete support for view==NULL in bytesiobuf_getbuffer()
and array_buffer_getbuf().
11 years ago
Serhiy Storchaka
b757c83ec6
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
11 years ago
Larry Hastings
dfbeb160de
Issue #22615 : Argument Clinic now supports the "type" argument for the
int converter. This permits using the int converter with enums and
typedefs.
11 years ago
Benjamin Peterson
682124ccc3
prevent passing NULL to memcpy ( closes #22605 )
Patch by Jakub Wilk.
11 years ago
Brett Cannon
1eb32c2045
Issue #20152 : Port the array module to Argument Clinic.
11 years ago
Victor Stinner
706768c687
Issue #22156 : Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
12 years ago
Kristján Valur Jónsson
25dded041f
Make the various iterators' "setstate" sliently and consistently clip the
index. This avoids the possibility of setting an iterator to an invalid
state.
12 years ago
Alexandre Vassalotti
9730e33535
Issue #3693 : Fix array obscure error message when given a str.
12 years ago
Victor Stinner
541067a640
Issue #19437 : Fix array.buffer_info(), handle PyLong_FromVoidPtr() and
PyLong_FromLong() failure
12 years ago
Antoine Pitrou
9ed5f27266
Issue #18722 : Remove uses of the "register" keyword in C code.
13 years ago
Victor Stinner
4755beac3c
Issue #18408 : Fix array_tolist(), handle PyList_SetItem() failure
13 years ago
Victor Stinner
0b142e2809
Issue #18408 : Fix array_index(), handle getarrayitem() failure
13 years ago
Victor Stinner
29ec595c6a
Issue #17223 : array module: Fix a crasher when converting an array containing
invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array),
str(array) and array.tounicode(). Patch written by Manuel Jacob.
13 years ago
Eli Bendersky
03ab4d3581
Make indentation consistent and remove dead commented-out code.
13 years ago
Gregory P. Smith
9504b13145
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
13 years ago
Christian Heimes
743e0cd6b5
Issue #16166 : Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified
endianess detection and handling.
13 years ago
Mark Dickinson
c04ddff290
Issue #16096 : Fix several occurrences of potential signed integer overflow. Thanks Serhiy Storchaka.
13 years ago
Meador Inge
03b4d5072a
Issue #15424 : Add a __sizeof__ implementation for array objects.
Patch by Ludwig Hähne.
14 years ago
Meador Inge
2d639d5665
Issue #15424 : Add a __sizeof__ implementation for array objects.
Patch by Ludwig Hähne.
14 years ago
Victor Stinner
62bb394729
Close #13072 : Restore code before the PEP 393 for the array module
'u' format of the array module uses again Py_UNICODE type for backward
compatibility with Python 3.2.
The only change from Python 3.2 is that PyUnicode_AsUnicode() result is now
checked for NULL value.
14 years ago
Antoine Pitrou
a701388de1
Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI.
14 years ago
Kristján Valur Jónsson
31668b8f7a
Issue #14288 : Serialization support for builtin iterators.
14 years ago
Florent Xicluna
0e686cbb7d
Fix docstring typo.
14 years ago
Florent Xicluna
b918bdc92c
Fix docstring typo.
14 years ago
Florent Xicluna
c45fb25fba
Issue #13255 : wrong docstrings in array module.
14 years ago
Ezio Melotti
90bf5f1171
Remove mention of narrow/wide builds and update array doc, add a test.
14 years ago
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
14 years ago
Martin v. Löwis
1ee1b6fe0d
Use identifier API for PyObject_GetAttrString.
14 years ago
Martin v. Löwis
afe55bba33
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
14 years ago
Victor Stinner
1fe99a2ea7
Fix a compiler warning
14 years ago
Victor Stinner
1fbcaeff55
Fix array.array('u') constructor
14 years ago
Victor Stinner
8dba4e004f
array module uses the new Unicode API
* Use Py_UCS4* buffer instead of Py_UNICODE*
* Use "I" or "L" format, instead of "u" format
14 years ago
Victor Stinner
f8bb7d02f6
array module stores the typecode in a char, instead of Py_UNICODE
14 years ago
Georg Brandl
4cb0de246c
Rename new macros to conform to naming rules (function macros have "Py" prefix, not "PY").
14 years ago
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
14 years ago
Mark Dickinson
c7d93b7614
Issue #1621 : Fix undefined behaviour from signed overflow in datetime module hashes, array and list iterations, and get_integer (stringlib/string_format.h)
14 years ago
Meador Inge
1c9f0c93ad
Issue #1172711 : Add 'long long' support to the array module.
Initial patch by Oren Tirosh and Hirokazu Yamamoto.
14 years ago
Brian Curtin
dfc80e3d97
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724 .
15 years ago
Brett Cannon
4a5e5de03f
Revert a reversed comparison order introduced in r70695.
15 years ago
Brett Cannon
a0b1ff5844
Remove some extraneous parentheses and swap the comparison order to
prevent accidental assignment.
Silences a warning from LLVM/clang 2.9.
15 years ago
Brett Cannon
b94767ff44
Issue #8914 : fix various warnings from the Clang static analyzer v254.
15 years ago
Alexander Belopolsky
4ea1aacb94
Reverted r87944 - issue #5109 should not have been backported
15 years ago
Alexander Belopolsky
830c85d0ba
Merged revisions 87942 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87942 | alexander.belopolsky | 2011-01-11 16:44:00 -0500 (Tue, 11 Jan 2011) | 3 lines
Issue #5109 : array.array constructor will now use fast code when
initial data is provided in an array object with correct type.
........
15 years ago
Alexander Belopolsky
ef4a03fffe
Issue #5109 : array.array constructor will now use fast code when
initial data is provided in an array object with correct type.
15 years ago
Georg Brandl
c29cc6a8f2
#1569291 : speed up array.repeat() by making only O(log n) memcpy() calls; the code follows unicode_repeat.
15 years ago
Martin v. Löwis
4d0d471a80
Merge branches/pep-0384.
15 years ago
Amaury Forgeot d'Arc
24aa26b05e
Fix compilation warnings seen on Windows.
'typecode' is always an ascii letter, there was no data lost.
15 years ago
Victor Stinner
9f0b51e4e3
Issue #10359 : Use Py_UNICODE for the typecode in array
And don't create non constant array, invalid in ISO C.
15 years ago
Antoine Pitrou
1ce3eb5c5b
Issue #8990 : array.fromstring() and array.tostring() get renamed to
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.
16 years ago
Mark Dickinson
5e684339c2
Merged revisions 83751-83752 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83751 | mark.dickinson | 2010-08-06 10:36:57 +0100 (Fri, 06 Aug 2010) | 1 line
Issue #9526 : Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB.
........
r83752 | mark.dickinson | 2010-08-06 10:38:58 +0100 (Fri, 06 Aug 2010) | 1 line
Misc/NEWS entry for r83751.
........
16 years ago