summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Issue #28427: old keys should not remove new values fromAntoine Pitrou2016-12-271-0/+2
| |\ \ | | |/ | | | | | | WeakValueDictionary when collecting from another thread.
| | * Issue #28427: old keys should not remove new values fromAntoine Pitrou2016-12-271-0/+2
| | | | | | | | | | | | WeakValueDictionary when collecting from another thread.
* | | Issue #29058: All stable API extensions added after Python 3.2 are nowSerhiy Storchaka2016-12-2718-7/+85
|\ \ \ | |/ / | | | | | | | | | available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python version supporting this API.
| * | Issue #29058: All stable API extensions added after Python 3.2 are nowSerhiy Storchaka2016-12-2718-7/+85
| | | | | | | | | | | | | | | available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python version supporting this API.
* | | Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function.INADA Naoki2016-12-241-1/+5
| | | | | | | | | | | | Calling function is up to 5% faster.
* | | abstract.h: remove long outdated commentVictor Stinner2016-12-191-118/+2
| | | | | | | | | | | | | | | | | | | | | Issue #28838: The documentation is of the Python C API is more complete and more up to date than this old comment. Removal suggested by Antoine Pitrou.
* | | Issue #29009: Merge 3.6.Xiang Zhang2016-12-191-4/+0
|\ \ \ | |/ /
| * | Issue #29009: Merge 3.5.Xiang Zhang2016-12-191-4/+0
| |\ \ | | |/
| | * Issue #29009: Remove outdated doc of PyUnicode_RichCompare.Xiang Zhang2016-12-191-4/+0
| | |
* | | Issue #18896: Python function can now have more than 255 parameters.Serhiy Storchaka2016-12-161-4/+3
| | | | | | | | | | | | collections.namedtuple() now supports tuples with more than 255 elements.
* | | Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵Serhiy Storchaka2016-12-162-1/+3
| | | | | | | | | | | | dict.
* | | Add _PY_FASTCALL_SMALL_STACK constantVictor Stinner2016-12-151-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28870: Add a new _PY_FASTCALL_SMALL_STACK constant, size of "small stacks" allocated on the C stack to pass positional arguments to _PyObject_FastCall(). _PyObject_Call_Prepend() now uses a small stack of 5 arguments (40 bytes) instead of 8 (64 bytes), since it is modified to use _PY_FASTCALL_SMALL_STACK.
* | | Issue #28838: Cleanup abstract.hVictor Stinner2016-12-151-621/+423
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite all comments to use the same style than other Python header files: comment functions *before* their declaration, no newline between the comment and the declaration. Reformat some comments, add newlines, to make them easier to read. Quote argument like 'arg' to mention an argument in a comment.
* | | Issue #26110: Add LOAD_METHOD/CALL_METHOD opcodes.Yury Selivanov2016-12-141-0/+2
| | | | | | | | | | | | | | | | | | | | | Special thanks to INADA Naoki for pushing the patch through the last mile, Serhiy Storchaka for reviewing the code, and to Victor Stinner for suggesting the idea (originally implemented in the PyPy project).
* | | Add _PyObject_VaCallFunctionObjArgs() private functionVictor Stinner2016-12-081-0/+6
| | | | | | | | | | | | | | | Issue #28915: Similar to _PyObject_CallFunctionObjArgs() but use va_list to pass arguments.
* | | Add _Py_VaBuildStack() functionVictor Stinner2016-12-081-0/+13
| | | | | | | | | | | | | | | Issue #28915: Similar to Py_VaBuildValue(), but work on a C array of PyObject*, instead of creating a tuple.
* | | merge 3.6 (#28898)Benjamin Peterson2016-12-081-2/+3
|\ \ \ | |/ /
| * | guard HAVE_LONG_LONG definition to prevent redefinition (#28898)Benjamin Peterson2016-12-081-2/+3
| | |
| * | Prepare for 3.6.1. Any further 3.6.0 release candidates and 3.6.0 final ↵Ned Deily2016-12-071-3/+3
| | | | | | | | | | | | will be cherrypicked and merged here.
| * | Version bump for 3.6.0rc1v3.6.0rc1Ned Deily2016-12-071-3/+3
| | |
* | | Issue #28838: Fix weird indentation of abstract.hVictor Stinner2016-12-061-847/+859
| | | | | | | | | | | | Remove most indentation to move code at the left.
* | | Uniformize argument names of "call" functionsVictor Stinner2016-12-062-70/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28838: Rename parameters of the "calls" functions of the Python C API. * Rename 'callable_object' and 'func' to 'callable': any Python callable object is accepted, not only Python functions * Rename 'method' and 'nameid' to 'name' (method name) * Rename 'o' to 'obj' * Move, fix and update documentation of PyObject_CallXXX() functions in abstract.h * Update also the documentaton of the C API (update parameter names)
* | | Fixed misplaced comment.Serhiy Storchaka2016-12-061-6/+6
|\ \ \ | |/ /
| * | Fixed misplaced comment.Serhiy Storchaka2016-12-061-6/+6
| |\ \ | | |/
| | * Fixed misplaced comment.Serhiy Storchaka2016-12-061-6/+6
| | |
* | | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.Serhiy Storchaka2016-12-051-1/+1
|\ \ \ | |/ /
| * | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.Serhiy Storchaka2016-12-051-1/+1
| |\ \ | | |/
| | * Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.Serhiy Storchaka2016-12-051-1/+1
| | |
| * | Start 3.6.0rc1. (Note, patch level was incorrectly set to 3.6.0b4+ following ↵Ned Deily2016-11-221-1/+1
| | | | | | | | | | | | b3. It is now b4+ again.)
| * | Version bump for 3.6.0b4v3.6.0b4Ned Deily2016-11-221-1/+1
| | |
* | | Issue #28858: Remove _PyObject_CallArg1() macroVictor Stinner2016-12-051-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace _PyObject_CallArg1(func, arg) with PyObject_CallFunctionObjArgs(func, arg, NULL) Using the _PyObject_CallArg1() macro increases the usage of the C stack, which was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this issue.
* | | fix _PyObject_CallArg1 compiler warnings (closes #28855)Benjamin Peterson2016-12-021-1/+1
| | |
* | | Backed out changeset 7efddbf1aa70Victor Stinner2016-11-302-22/+22
| | |
* | | Uniformize argument names of "call" functionsVictor Stinner2016-11-292-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Callable object: callable, o, callable_object => func * Object for method calls: o => obj * Method name: name or nameid => method Cleanup also the C code: * Don't initialize variables to NULL if they are not used before their first assignement * Add braces for readability
* | | Remove CALL_PROFILE special buildVictor Stinner2016-11-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28799: * Remove the PyEval_GetCallStats() function. * Deprecate the untested and undocumented sys.callstats() function. * Remove the CALL_PROFILE special build Use the sys.setprofile() function, cProfile or profile module to profile function calls.
* | | Issue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,Serhiy Storchaka2016-11-223-10/+10
| | | | | | | | | | | | | | | PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of type "const char *" rather of "char *".
* | | MergeRaymond Hettinger2016-11-211-4/+3
|\ \ \ | |/ /
| * | Issue 28751: Fix comments in code.h. (Contributed by Ned Batchelder).Raymond Hettinger2016-11-211-4/+3
| | |
* | | Issue #28748: Private variable _Py_PackageContext is now of type "const char *"Serhiy Storchaka2016-11-211-1/+1
| | | | | | | | | | | | rather of "char *".
* | | Issue #19569: Compiler warnings are now emitted if use most of deprecatedSerhiy Storchaka2016-11-206-45/+53
| | | | | | | | | | | | functions.
* | | Issue #28701: _PyUnicode_EqualToASCIIId and _PyUnicode_EqualToASCIIString nowSerhiy Storchaka2016-11-161-2/+2
|\ \ \ | |/ / | | | | | | require ASCII right argument and assert this condition in debug build.
| * | Issue #28701: _PyUnicode_EqualToASCIIId and _PyUnicode_EqualToASCIIString nowSerhiy Storchaka2016-11-161-2/+2
| | | | | | | | | | | | require ASCII right argument and assert this condition in debug build.
* | | Issue #21449: Removed private function _PyUnicode_CompareWithId.Serhiy Storchaka2016-11-161-9/+0
|\ \ \ | |/ /
| * | Issue #21449: Removed private function _PyUnicode_CompareWithId.Serhiy Storchaka2016-11-161-9/+0
| | |
* | | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.Serhiy Storchaka2016-11-161-0/+19
|\ \ \ | |/ / | | | | | | | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang.
| * | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.Serhiy Storchaka2016-11-161-0/+19
| |\ \ | | |/ | | | | | | | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang.
| | * Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.Serhiy Storchaka2016-11-161-0/+19
| | | | | | | | | | | | | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang.
* | | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-0/+11
|\ \ \ | |/ / | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
| * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-0/+11
| |\ \ | | |/ | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
| | * Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-0/+11
| | | | | | | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.