Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rephrase !PyErr_Occurred() comment: may=>can | Victor Stinner | 2017-01-18 | 1 | -2/+2 |
| | | | | Issue #29259. | ||||
* | sorted() uses METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -11/+9 |
| | |||||
* | next() uses FASTCALL | Victor Stinner | 2017-01-17 | 1 | -3/+9 |
| | |||||
* | getattr() uses METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -3/+8 |
| | |||||
* | Issue #29029: Speed up processing positional arguments in | Serhiy Storchaka | 2017-01-17 | 1 | -101/+89 |
| | | | | PyArg_ParseTupleAndKeywords(), _PyArg_ParseTupleAndKeywordsFast() and like. | ||||
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 2 | -38/+86 |
| | | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using "boring" positional arguments. Manually fix _elementtree: _elementtree_XMLParser_doctype() must remain consistent with the clinic code. | ||||
* | Add _PyArg_UnpackStack() function helper | Victor Stinner | 2017-01-17 | 1 | -18/+55 |
| | | | | Issue #29286. | ||||
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 3 | -9/+17 |
| | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using only positional arguments. | ||||
* | Add _PyArg_NoStackKeywords() helper function | Victor Stinner | 2017-01-17 | 1 | -4/+21 |
| | | | | | Issue #29286. Similar to _PyArg_NoKeywords(), but expects a tuple of keyword names, instead of a dict. | ||||
* | Add _PyArg_ParseStack() helper function | Victor Stinner | 2017-01-17 | 1 | -21/+69 |
| | | | | | Issue #29286. Function similar to PyArg_ParseTuple(), but uses a C array of PyObject* to pass arguments. Don't support the compatibility mode. | ||||
* | Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords | Victor Stinner | 2017-01-17 | 3 | -5/+5 |
| | | | | Issue #29286. | ||||
* | Rename keywords to kwargs in getargs.c | Victor Stinner | 2017-01-17 | 1 | -31/+31 |
| | | | | Issue #29029. Patch written by Serhiy Storchaka. | ||||
* | Cleanup getargs.c | Victor Stinner | 2017-01-16 | 1 | -49/+17 |
| | | | | | | | Factorize argument checks in: * vgetargskeywordsfast() * vgetargskeywordsfast_impl() | ||||
* | __build_class__() builtin uses METH_FASTCALL | Victor Stinner | 2017-01-16 | 1 | -15/+9 |
| | |||||
* | Issue #26110: Add document for LOAD_METHOD and CALL_METHOD opcode. | INADA Naoki | 2017-01-16 | 1 | -40/+32 |
| | | | | Changed stack layout bit for "easy to explain." | ||||
* | _PyEval_EvalCodeWithName(): remove redundant check | Victor Stinner | 2017-01-11 | 1 | -1/+2 |
| | | | | Replace the runtime check with an assertion (just in case). | ||||
* | Inline call_function() | Victor Stinner | 2017-01-11 | 1 | -2/+4 |
| | | | | | | | | | | | | | Issue #29227: Inline call_function() into _PyEval_EvalFrameDefault() using Py_LOCAL_INLINE to reduce the stack consumption. It reduces the stack consumption, bytes per call, before => after: test_python_call: 1152 => 1040 (-112 B) test_python_getitem: 1008 => 976 (-32 B) test_python_iterator: 1232 => 1120 (-112 B) => total: 3392 => 3136 (- 256 B) | ||||
* | Issue #29157: enhance py_getrandom() documentation | Victor Stinner | 2017-01-06 | 1 | -13/+20 |
| | |||||
* | py_getentropy() now supports ENOSYS, EPERM & EINTR | Victor Stinner | 2017-01-06 | 1 | -3/+39 |
| | | | | Issue #29157. | ||||
* | Issue #29157: getrandom() is now preferred over getentropy() | Victor Stinner | 2017-01-06 | 1 | -44/+47 |
| | | | | | | | | | | | | | | The glibc now implements getentropy() on Linux using the getrandom() syscall. But getentropy() doesn't support non-blocking mode. Since getrandom() is tried first, it's not more needed to explicitly exclude getentropy() on Solaris. Replace: if defined(HAVE_GETENTROPY) && !defined(sun) with if defined(HAVE_GETENTROPY) | ||||
* | Issue #29157: Simplify dev_urandom() | Victor Stinner | 2017-01-06 | 1 | -29/+87 |
| | | | | | | pyurandom() is now responsible to call getentropy() or getrandom(). Enhance also dev_urandom() and pyurandom() documentation. | ||||
* | Issue #29157: dev_urandom() now calls py_getentropy() | Victor Stinner | 2017-01-06 | 1 | -20/+16 |
| | | | | | Prepare the fallback to support getentropy() failure and falls back on reading from /dev/urandom. | ||||
* | Optimize _PyFunction_FastCallDict() when kwargs is {} | Victor Stinner | 2017-01-03 | 1 | -3/+5 |
| | | | | | Issue #28839: Optimize _PyFunction_FastCallDict() when kwargs is an empty dictionary, avoid the creation of an useless empty tuple. | ||||
* | merge 3.6 (#29057) | Benjamin Peterson | 2017-01-01 | 1 | -1/+1 |
|\ | |||||
| * | merge 3.5 (#29057) | Benjamin Peterson | 2017-01-01 | 1 | -1/+1 |
| |\ | |||||
| | * | only include sys/random.h if it seems like it might have something useful ↵ | Benjamin Peterson | 2017-01-01 | 1 | -1/+1 |
| | | | | | | | | | | | | (#29057) | ||||
* | | | merge 3.6 | Benjamin Peterson | 2017-01-01 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | merge 3.5 | Benjamin Peterson | 2017-01-01 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | merge 3.4 | Benjamin Peterson | 2017-01-01 | 1 | -1/+1 |
| | |\ | |||||
| | | * | merge 3.3 | Benjamin Peterson | 2017-01-01 | 1 | -1/+1 |
| | | |\ | |||||
| | | | * | ring in 2017 for Python | Benjamin Peterson | 2017-01-01 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Issue #29049: Remove unnecessary Py_DECREF | INADA Naoki | 2016-12-26 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Issue #29049: Fix refleak introduced by f5eb0c4f5d37. | INADA Naoki | 2016-12-26 | 1 | -1/+4 |
| | | | | | |||||
* | | | | | Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function. | INADA Naoki | 2016-12-24 | 1 | -10/+21 |
| | | | | | | | | | | | | | | | | | | | | Calling function is up to 5% faster. | ||||
* | | | | | merge 3.6 (#28932) | Benjamin Peterson | 2016-12-19 | 1 | -1/+1 |
|\ \ \ \ \ | |/ / / / | |||||
| * | | | | merge 3.5 (#28932) | Benjamin Peterson | 2016-12-19 | 1 | -1/+1 |
| |\ \ \ \ | | |/ / / | |||||
| | * | | | add a specific configure check for sys/random.h (closes #28932) | Benjamin Peterson | 2016-12-19 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Issue #25677: Merge SyntaxError caret positioning from 3.6 | Martin Panter | 2016-12-19 | 2 | -5/+2 |
|\ \ \ \ \ | |/ / / / | |||||
| * | | | | Issue #25677: Merge SyntaxError caret positioning from 3.5 | Martin Panter | 2016-12-19 | 2 | -5/+2 |
| |\ \ \ \ | | |/ / / | |||||
| | * | | | Issue #25677: Correct syntax error caret for indented blocks. | Martin Panter | 2016-12-11 | 2 | -5/+2 |
| | | | | | | | | | | | | | | | | | | | | Based on patch by Michael Layzell. | ||||
* | | | | | Issue #18896: Python function can now have more than 255 parameters. | Serhiy Storchaka | 2016-12-16 | 2 | -6/+1 |
| | | | | | | | | | | | | | | | | | | | | collections.namedtuple() now supports tuples with more than 255 elements. | ||||
* | | | | | Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵ | Serhiy Storchaka | 2016-12-16 | 3 | -22/+14 |
| | | | | | | | | | | | | | | | | | | | | dict. | ||||
* | | | | | Merge 3.6. | Xavier de Gaye | 2016-12-15 | 1 | -5/+5 |
|\ \ \ \ \ | |/ / / / | |||||
| * | | | | Issue #26919: On Android, operating system data is now always encoded/decoded | Xavier de Gaye | 2016-12-15 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | to/from UTF-8, instead of the locale encoding to avoid inconsistencies with os.fsencode() and os.fsdecode() which are already using UTF-8. | ||||
* | | | | | Add _PY_FASTCALL_SMALL_STACK constant | Victor Stinner | 2016-12-15 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #26110: Add LOAD_METHOD/CALL_METHOD opcodes. | Yury Selivanov | 2016-12-13 | 5 | -481/+615 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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). | ||||
* | | | | | Issue #28896: Disable WindowsRegistryFinder by default. | Steve Dower | 2016-12-12 | 1 | -56/+53 |
|\ \ \ \ \ | |/ / / / | |||||
| * | | | | Issue #28896: Disable WindowsRegistryFinder by default. | Steve Dower | 2016-12-12 | 1 | -56/+53 |
| | | | | | |||||
* | | | | | Issue #28739: f-string expressions no longer accepted as docstrings and | Serhiy Storchaka | 2016-12-11 | 2 | -7/+7 |
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | by ast.literal_eval() even if they do not include subexpressions. | ||||
| * | | | | Issue #28739: f-string expressions no longer accepted as docstrings and | Serhiy Storchaka | 2016-12-11 | 2 | -7/+7 |
| | | | | | | | | | | | | | | | | | | | | by ast.literal_eval() even if they do not include subexpressions. |