summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* Add _PyDict_CheckConsistency()Victor Stinner2016-09-141-1/+1
| | | | | | | | Issue #28127: Add a function to check that a dictionary remains consistent after any change. By default, tables are not checked, only basic attributes. Define DEBUG_PYDICT (ex: gcc -D DEBUG_PYDICT) to also check dictionary "content".
* Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵Christian Heimes2016-09-132-32/+15
| | | | optimize memcpy().
* Start 3.6.0b2Ned Deily2016-09-121-1/+1
|
* Version bump for 3.6.0b1v3.6.0b1Ned Deily2016-09-121-3/+3
|
* Issue #27810: Exclude METH_FASTCALL from the stable APIVictor Stinner2016-09-121-1/+1
|
* Document kwnames in _PyObject_FastCallKeywords() and _PyStack_AsDict()Victor Stinner2016-09-121-30/+40
| | | | Issue #27213.
* Revert change f860b7a775c5Victor Stinner2016-09-121-3/+1
| | | | | Revert change "Issue #27213: Reintroduce checks in _PyStack_AsDict()", pushed by mistake.
* ssue #27213: Reintroduce checks in _PyStack_AsDict()Victor Stinner2016-09-121-1/+3
|
* Issue #27213: Fixed different issues with reworked CALL_FUNCTION* opcodes.Serhiy Storchaka2016-09-111-3/+1
| | | | | | | | | | | * BUILD_TUPLE_UNPACK and BUILD_MAP_UNPACK_WITH_CALL no longer generated with single tuple or dict. * Restored more informative error messages for incorrect var-positional and var-keyword arguments. * Removed code duplications in _PyEval_EvalCodeWithName(). * Removed redundant runtime checks and parameters in _PyStack_AsDict(). * Added a workaround and enabled previously disabled test in test_traceback. * Removed dead code from the dis module.
* Issue #27129: Replaced wordcode related magic constants with macros.Serhiy Storchaka2016-09-111-0/+10
|
* Issue #26900: Excluded underscored names and other private API from limited API.Serhiy Storchaka2016-09-1119-13/+71
|
* add the usual extern C silliness to pydtrace.hBenjamin Peterson2016-09-111-0/+6
|
* Don't run garbage collection on interpreter exit if it was explicitly disabledŁukasz Langa2016-09-101-1/+2
| | | | by the user.
* Emit METH_FASTCALL code in Argument ClinicVictor Stinner2016-09-101-0/+3
| | | | | | | | | Issue #27810: * Modify vgetargskeywordsfast() to work on a C array of PyObject* rather than working on a tuple directly. * Add _PyArg_ParseStack() * Argument Clinic now emits code using the new METH_FASTCALL calling convention
* Add METH_FASTCALL calling conventionVictor Stinner2016-09-102-0/+20
| | | | | | | | | | | Issue #27810: Add a new calling convention for C functions: PyObject* func(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); Where args is a C array of positional arguments followed by values of keyword arguments. nargs is the number of positional arguments, kwnames are keys of keyword arguments. kwnames can be NULL.
* dummy dtrace probes are a good place to use inline functionsBenjamin Peterson2016-09-101-19/+19
|
* fix dummy macroBenjamin Peterson2016-09-101-1/+1
|
* DTrace support: function calls, GC activity, line executionŁukasz Langa2016-09-102-0/+66
| | | | | | | | | | | | | | | | | | | Tested on macOS 10.11 dtrace, Ubuntu 16.04 SystemTap, and libbcc. Largely based by an initial patch by Jesús Cea Avión, with some influence from Dave Malcolm's SystemTap patch and Nikhil Benesch's unification patch. Things deliberately left out for simplicity: - ustack helpers, I have no way of testing them at this point since they are Solaris-specific - PyFrameObject * in function__entry/function__return, this is SystemTap-specific - SPARC support - dynamic tracing - sys module dtrace facility introspection All of those might be added later.
* remove ceval timestamp supportBenjamin Peterson2016-09-091-3/+0
|
* Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-091-0/+4
| | | | Thanks to Georg Brandl for the patch.
* Issue #27810: Add _PyCFunction_FastCallKeywords()Victor Stinner2016-09-092-1/+13
| | | | | Use _PyCFunction_FastCallKeywords() in ceval.c: it allows to remove a lot of code from ceval.c which was only used to call C functions.
* Add _PyObject_FastCallKeywords()Victor Stinner2016-09-092-2/+26
| | | | | | | | | | Issue #27830: Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments. Other changes: * Cleanup call_function() and fast_function() (ex: rename nk to nkwargs) * Remove now useless do_call(), replaced with _PyObject_FastCallKeywords()
* Rework CALL_FUNCTION* opcodesVictor Stinner2016-09-091-2/+1
| | | | | | | | | | | | | | | | | | | Issue #27213: Rework CALL_FUNCTION* opcodes to produce shorter and more efficient bytecode: * CALL_FUNCTION now only accepts position arguments * CALL_FUNCTION_KW accepts position arguments and keyword arguments, but keys of keyword arguments are packed into a constant tuple. * CALL_FUNCTION_EX is the most generic, it expects a tuple and a dict for positional and keyword arguments. CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW opcodes have been removed. 2 tests of test_traceback are currently broken: skip test, the issue #28050 was created to track the issue. Patch by Demur Rumed, design by Serhiy Storchaka, reviewed by Serhiy Storchaka and Victor Stinner.
* Issue #28008: Implement PEP 530 -- asynchronous comprehensions.Yury Selivanov2016-09-091-2/+3
|
* Issue #28003: Implement PEP 525 -- Asynchronous Generators.Yury Selivanov2016-09-096-0/+41
|
* Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-094-73/+88
| | | | Patch by Ivan Levkivskyi.
* Issue #24254: Drop cls.__definition_order__.Eric Snow2016-09-082-6/+0
|
* Issue #1602: Windows console doesn't input or print Unicode (PEP 528)Steve Dower2016-08-311-0/+4
| | | | Closes #17602: Adds a readline implementation for the Windows console
* Add a new private version to the builtin dict typeVictor Stinner2016-09-081-0/+4
| | | | | | | Issue #26058: Add a new private version to the builtin dict type, incremented at each dictionary creation and at each dictionary change. Implementation of the PEP 509.
* Add documentation to the dict implementationVictor Stinner2016-09-081-0/+9
| | | | Issue #27350.
* simplify Py_UCSN definitions with stdint typesBenjamin Peterson2016-09-081-15/+3
|
* Issue #23524: Finish removing _PyVerify_fd from sourcesSteve Dower2016-09-081-12/+0
|
* Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)Steve Dower2016-09-082-6/+3
|
* Add Py_MEMBER_SIZE macroVictor Stinner2016-09-081-0/+3
| | | | | Issue #27350: use Py_MEMBER_SIZE() macro to get the size of PyDictKeyEntry.dk_indices, rather than hardcoding 8.
* Implement compact dictVictor Stinner2016-09-081-1/+0
| | | | | | | | | | | | Issue #27350: `dict` implementation is changed like PyPy. It is more compact and preserves insertion order. _PyDict_Dummy() function has been removed. Disable test_gdb: python-gdb.py is not updated yet to the new structure of compact dictionaries (issue #28023). Patch written by INADA Naoki.
* more PY_LONG_LONG to long longBenjamin Peterson2016-09-081-30/+0
|
* Issue #15767: Use ModuleNotFoundError.Eric Snow2016-09-071-0/+3
|
* Issue #15767: Add ModuleNotFoundError.Eric Snow2016-09-071-0/+1
|
* Make PyCodeObject.co_extra even more private to force users through the ↵Brett Cannon2016-09-071-10/+4
| | | | proper API.
* Add the co_extra field and accompanying APIs to code objects.Brett Cannon2016-09-073-1/+30
| | | | This completes PEP 523.
* make _Py_static_string_init use a designated initializerBenjamin Peterson2016-09-071-1/+1
|
* replace PY_SIZE_MAX with SIZE_MAXBenjamin Peterson2016-09-071-9/+1
|
* Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec ↵Steve Dower2016-09-071-1/+1
| | | | lookup
* os.urandom() now blocks on LinuxVictor Stinner2016-09-061-1/+2
| | | | | | | Issue #27776: The os.urandom() function does now block on Linux 3.17 and newer until the system urandom entropy pool is initialized to increase the security. This change is part of the PEP 524.
* replace Py_(u)intptr_t with the c99 standard typesBenjamin Peterson2016-09-063-9/+9
|
* require uintptr_t to existBenjamin Peterson2016-09-061-21/+0
|
* replace Python aliases for standard integer types with the standard integer ↵Benjamin Peterson2016-09-063-19/+11
| | | | types (#17884)
* only include inttypes.h (#17884)Benjamin Peterson2016-09-061-3/+0
|
* Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.Serhiy Storchaka2016-09-062-0/+9
|
* require standard int types to be defined (#17884)Benjamin Peterson2016-09-062-55/+1
|