Nick Coghlan
d5cacbb1d9
PEP 489: Multi-phase extension module initialization
...
Known limitations of the current implementation:
- documentation changes are incomplete
- there's a reference leak I haven't tracked down yet
The leak is most visible by running:
./python -m test -R3:3 test_importlib
However, you can also see it by running:
./python -X showrefcount
Importing the array or _testmultiphase modules, and
then deleting them from both sys.modules and the local
namespace shows significant increases in the total
number of active references each cycle. By contrast,
with _testcapi (which continues to use single-phase
initialisation) the global refcounts stabilise after
a couple of cycles.
2015-05-23 22:24:10 +10:00
Larry Hastings
38337d1e15
Issue #24000 : Improved Argument Clinic's mapping of converters to legacy
...
"format units". Updated the documentation to match.
2015-05-07 23:30:09 -07:00
Larry Hastings
dbfdc380df
Issue #24001 : Argument Clinic converters now use accept={type}
...
instead of types={'type'} to specify the types the converter accepts.
2015-05-04 06:59:46 -07:00
Larry Hastings
7f90cba7f3
Issue #23935 : Argument Clinic's understanding of format units
...
accepting bytes, bytearrays, and buffers is now consistent with
both the documentation and the implementation.
2015-04-15 23:02:12 -04:00
Larry Hastings
89964c48d1
Issue #23944 : Argument Clinic now wraps long impl prototypes at column 78.
2015-04-14 18:07:59 -04:00
Serhiy Storchaka
04e6dba7dc
Fixed the array module broken in issue #23492 .
...
array_array_frombytes() is used in other functions, but it's signature was
changed. Closes issue #23866 .
2015-04-04 17:06:55 +03:00
Serhiy Storchaka
1009bf18b3
Issue #23501 : Argumen Clinic now generates code into separate files by default.
2015-04-03 23:53:51 +03:00
Stefan Krah
650c1e818d
Issue #14203 : Remove obsolete support for view==NULL in bytesiobuf_getbuffer()
...
and array_buffer_getbuf().
2015-02-03 21:43:23 +01:00
Serhiy Storchaka
92bf919ed0
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
2014-12-05 22:26:10 +02:00
Serhiy Storchaka
b757c83ec6
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
2014-12-05 22:25:22 +02:00
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.
2014-10-13 10:39:41 +01:00
Benjamin Peterson
588dad0308
merge 3.4 ( closes #22605 )
2014-10-10 20:58:43 -04:00
Benjamin Peterson
682124ccc3
prevent passing NULL to memcpy ( closes #22605 )
...
Patch by Jakub Wilk.
2014-10-10 20:58:30 -04:00
Brett Cannon
1eb32c2045
Issue #20152 : Port the array module to Argument Clinic.
2014-10-10 16:26:45 -04:00
Victor Stinner
706768c687
Issue #22156 : Fix some "comparison between signed and unsigned integers"
...
compiler warnings in the Modules/ subdirectory.
2014-08-16 01:03:39 +02:00
Kristján Valur Jónsson
c5cc5011ac
Make the various iterators' "setstate" sliently and consistently clip the
...
index. This avoids the possibility of setting an iterator to an invalid
state.
2014-03-05 15:23:07 +00:00
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.
2014-03-05 13:47:57 +00:00
Alexandre Vassalotti
9730e33535
Issue #3693 : Fix array obscure error message when given a str.
2013-11-29 20:47:15 -08:00
Victor Stinner
541067a640
Issue #19437 : Fix array.buffer_info(), handle PyLong_FromVoidPtr() and
...
PyLong_FromLong() failure
2013-11-14 01:27:12 +01:00
Antoine Pitrou
9ed5f27266
Issue #18722 : Remove uses of the "register" keyword in C code.
2013-08-13 20:18:52 +02:00
Victor Stinner
4755beac3c
Issue #18408 : Fix array_tolist(), handle PyList_SetItem() failure
2013-07-18 01:12:35 +02:00
Victor Stinner
0b142e2809
Issue #18408 : Fix array_index(), handle getarrayitem() failure
2013-07-17 23:01:30 +02:00
Victor Stinner
25c3053a4f
(Merge 3.3) 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.
2013-02-26 00:27:56 +01:00
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.
2013-02-26 00:27:38 +01:00
Eli Bendersky
0485314305
Make indentation consistent and remove dead commented-out code.
2012-12-31 15:34:43 -08:00
Eli Bendersky
03ab4d3581
Make indentation consistent and remove dead commented-out code.
2012-12-31 15:34:20 -08:00
Gregory P. Smith
370bc2f7ee
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
2012-12-10 20:22:55 -08:00
Gregory P. Smith
08d5ca6cd4
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
2012-12-10 20:22:31 -08:00
Gregory P. Smith
9504b13145
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
2012-12-10 20:20:20 -08:00
Christian Heimes
743e0cd6b5
Issue #16166 : Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified
...
endianess detection and handling.
2012-10-17 23:52:17 +02:00
Mark Dickinson
c04ddff290
Issue #16096 : Fix several occurrences of potential signed integer overflow. Thanks Serhiy Storchaka.
2012-10-06 18:04:49 +01:00
Meador Inge
80dd1af4e0
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 23:21:39 -05:00
Meador Inge
03b4d5072a
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 22:35:45 -05:00
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.
2012-08-06 00:46:05 +02:00
Antoine Pitrou
a701388de1
Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI.
2012-04-05 00:04:20 +02:00
Kristján Valur Jónsson
31668b8f7a
Issue #14288 : Serialization support for builtin iterators.
2012-04-03 10:49:41 +00:00
Florent Xicluna
720682efd1
Merge 3.2
2011-12-09 23:42:29 +01:00
Florent Xicluna
0e686cbb7d
Fix docstring typo.
2011-12-09 23:41:19 +01:00
Ezio Melotti
90bf5f1171
Remove mention of narrow/wide builds and update array doc, add a test.
2011-10-25 10:05:34 +03:00
Florent Xicluna
6a985c3549
Merge 3.2.
2011-10-24 13:17:27 +02:00
Florent Xicluna
c45fb25fba
Issue #13255 : wrong docstrings in array module.
2011-10-24 13:14:55 +02:00
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
2011-10-14 10:20:37 +02:00
Martin v. Löwis
1ee1b6fe0d
Use identifier API for PyObject_GetAttrString.
2011-10-10 18:11:30 +02:00
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.
2011-10-09 10:38:36 +02:00
Victor Stinner
1fe99a2ea7
Fix a compiler warning
2011-09-30 01:55:49 +02:00
Victor Stinner
1fbcaeff55
Fix array.array('u') constructor
2011-09-30 01:54:04 +02:00
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
2011-09-30 00:51:10 +02:00
Victor Stinner
f8bb7d02f6
array module stores the typecode in a char, instead of Py_UNICODE
2011-09-30 00:03:59 +02:00
Georg Brandl
4cb0de246c
Rename new macros to conform to naming rules (function macros have "Py" prefix, not "PY").
2011-09-28 21:49:49 +02:00
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
2011-09-28 07:41:54 +02:00