summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | Issue #28618: Mark dict lookup functions as hotVictor Stinner2016-11-151-2/+2
| | | | | | | | | | | | It's common to see these functions in the top 3 of "perf report".
* | | Issue #28618: Make hot functions using __attribute__((hot))Victor Stinner2016-11-111-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Python is not compiled with PGO, the performance of Python on call_simple and call_method microbenchmarks depend highly on the code placement. In the worst case, the performance slowdown can be up to 70%. The GCC __attribute__((hot)) attribute helps to keep hot code close to reduce the risk of such major slowdown. This attribute is ignored when Python is compiled with PGO. The following functions are considered as hot according to statistics collected by perf record/perf report: * _PyEval_EvalFrameDefault() * call_function() * _PyFunction_FastCall() * PyFrame_New() * frame_dealloc() * PyErr_Occurred()
* | | Issue #23996: Added _PyGen_SetStopIterationValue for safe raisingSerhiy Storchaka2016-11-061-0/+1
|\ \ \ | |/ / | | | | | | | | | StopIteration with value. More safely handle non-normalized exceptions in -_PyGen_FetchStopIterationValue.
| * | Issue #23996: Added _PyGen_SetStopIterationValue for safe raisingSerhiy Storchaka2016-11-061-0/+1
| |\ \ | | |/ | | | | | | | | | StopIteration with value. More safely handle non-normalized exceptions in -_PyGen_FetchStopIterationValue.
| | * Issue #23996: Added _PyGen_SetStopIterationValue for safe raisingSerhiy Storchaka2016-11-061-0/+1
| | | | | | | | | | | | | | | StopIteration with value. More safely handle non-normalized exceptions in -_PyGen_FetchStopIterationValue.
| * | Start 3.6.0b4Ned Deily2016-11-011-2/+2
| | |
| * | Version bump for 3.6.0b3v3.6.0b3Ned Deily2016-11-011-2/+2
| | |
| * | Issue 28128: Print out better error/warning messages for invalid string ↵Eric V. Smith2016-10-312-0/+16
| | | | | | | | | | | | escapes. Backport to 3.6.
* | | Issue 28128: Print out better error/warning messages for invalid string escapes.Eric V. Smith2016-10-312-0/+16
| | |
* | | Merge 3.6 (issue #28544)Yury Selivanov2016-10-281-1/+1
|\ \ \ | |/ /
| * | Issue #28544: Pass `PyObject*` to _PyDict_Pop, not `PyDictObject*`Yury Selivanov2016-10-281-1/+1
| | |
* | | Merge 3.6 (issue #28544)Yury Selivanov2016-10-282-2/+2
|\ \ \ | |/ /
| * | Issue #28544: Fix compilation of _asynciomodule.c on WindowsYury Selivanov2016-10-282-2/+2
| | |
* | | Issue #28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(),Serhiy Storchaka2016-10-271-8/+25
|\ \ \ | |/ / | | | | | | | | | PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode().