summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Document kwnames in _PyObject_FastCallKeywords() and _PyStack_AsDict()Victor Stinner2016-09-121-0/+5
| | | | Issue #27213.
* Issue #27213: Fix reference leaksVictor Stinner2016-09-121-0/+2
|
* Make an f-string error message more exact and consistent.Eric V. Smith2016-09-111-1/+1
|
* Issue #27213: Fixed different issues with reworked CALL_FUNCTION* opcodes.Serhiy Storchaka2016-09-114-3437/+3409
| | | | | | | | | | | * 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 #28076: Variable annotations should be mangled for private names.Guido van Rossum2016-09-111-1/+7
| | | | By Ivan Levkivskyi.
* Fixed refactoring bug in dd046963bd42 (issue27129).Serhiy Storchaka2016-09-111-1/+1
|
* Issue #27129: Replaced wordcode related magic constants with macros.Serhiy Storchaka2016-09-114-154/+159
|
* Issue #23722: Initialize __class__ from type.__new__()Nick Coghlan2016-09-113-1253/+1257
| | | | | | | | | The __class__ cell used by zero-argument super() is now initialized from type.__new__ rather than __build_class__, so class methods relying on that will now work correctly when called from metaclass methods during class creation. Patch by Martin Teichmann.
* Backed out changeset 3934e070c9dbBenjamin Peterson2016-09-111-2/+1
|
* Fix check_force_ascii()Victor Stinner2016-09-101-8/+9
| | | | | Issue #27938: Normalize aliases of the ASCII encoding, because _Py_normalize_encoding() now correctly normalize encoding names.
* Don't run garbage collection on interpreter exit if it was explicitly disabledŁukasz Langa2016-09-101-3/+3
| | | | by the user.
* Issue #27810: Fix getargs.c compilation on WindowsVictor Stinner2016-09-101-1/+2
|
* fix export of size_t parse stack functionBenjamin Peterson2016-09-101-0/+2
|
* Issue #27810: Rerun Argument Clinic on all modulesVictor Stinner2016-09-101-4/+4
|
* Emit METH_FASTCALL code in Argument ClinicVictor Stinner2016-09-101-27/+157
| | | | | | | | | 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-101-1/+2
| | | | | | | | | | | 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.
* make invalid_comma_and_underscore a real prototypeBenjamin Peterson2016-09-101-1/+1
|
* Issue 27080: PEP 515: add '_' formatting option.Eric V. Smith2016-09-101-21/+51
|
* add dtrace inline stubsBenjamin Peterson2016-09-101-0/+24
|
* just start with an int rather than castingBenjamin Peterson2016-09-101-2/+2
|
* Issue 27948: Allow backslashes in the literal string portion of f-strings, ↵Eric V. Smith2016-09-101-273/+211
| | | | but not in the expressions. Also, require expressions to begin and end with literal curly braces.
* DTrace support: function calls, GC activity, line executionŁukasz Langa2016-09-101-2/+76
| | | | | | | | | | | | | | | | | | | 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 more READ_TIMESTAMPBenjamin Peterson2016-09-091-12/+0
|
* remove READ_TIMESTAMP macroBenjamin Peterson2016-09-091-3/+0
|
* remove ceval timestamp supportBenjamin Peterson2016-09-093-186/+1
|
* Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-092-1/+92
| | | | Thanks to Georg Brandl for the patch.
* Issue #27810: Add _PyCFunction_FastCallKeywords()Victor Stinner2016-09-091-136/+28
| | | | | 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.
* Issue #24320: Drop an old setuptools-induced hack.Eric Snow2016-09-091-53/+52
|
* Add _PyObject_FastCallKeywords()Victor Stinner2016-09-091-53/+36
| | | | | | | | | | 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-095-3426/+3326
| | | | | | | | | | | | | | | | | | | 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-095-46/+277
|
* Issue #27999: Make "global after use" a SyntaxError, and ditto for nonlocal.Guido van Rossum2016-09-091-68/+36
| | | | Patch by Ivan Levkivskyi.
* Issue #28003: Fix a compiler warningYury Selivanov2016-09-091-1/+1
|
* ceval: tighten the code of STORE_ANNOTATIONYury Selivanov2016-09-091-2/+1
|
* Issue #28003: Implement PEP 525 -- Asynchronous Generators.Yury Selivanov2016-09-096-36/+220
|
* Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-099-1003/+1621
| | | | Patch by Ivan Levkivskyi.
* Fix potential NULL pointer dereference in _imp_create_builtinChristian Heimes2016-09-081-0/+4
| | | | | | | PyModule_GetDef() can return NULL. Let's check the return value properly like in the other five cases. CID 1299590
* Issue #24254: Drop cls.__definition_order__.Eric Snow2016-09-081-1/+1
|
* Fix potential NULL pointer dereference in update_symbols()Christian Heimes2016-09-081-1/+1
| | | | | | symtable_analyze() calls analyze_block() with bound=NULL. Theoretically that NULL can be passed down to update_symbols(). update_symbols() may deference NULL and pass it to PySet_Contains()
* MergeRaymond Hettinger2016-09-081-2/+4
|
* Issue #1602: Windows console doesn't input or print Unicode (PEP 528)Steve Dower2016-08-311-0/+18
| | | | Closes #17602: Adds a readline implementation for the Windows console
* Issue #23524: Finish removing _PyVerify_fd from sourcesSteve Dower2016-09-082-125/+5
|
* Issue #28026: Raise ImportError when exec_module() exists but ↵Eric Snow2016-09-081-899/+895
| | | | create_module() is missing.
* Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)Steve Dower2016-09-083-5/+73
|
* Issue #26667: Add path-like object support to importlib.util.Brett Cannon2016-09-081-2164/+2168
|
* Issue #27911: Remove some unnecessary error checks in import.c.Brett Cannon2016-09-081-6/+2
| | | | Thanks to Xiang Zhang for the patch.
* Issue #15767: Use ModuleNotFoundError.Eric Snow2016-09-073-258/+274
|
* Add the co_extra field and accompanying APIs to code objects.Brett Cannon2016-09-072-0/+15
| | | | This completes PEP 523.
* replace PY_SIZE_MAX with SIZE_MAXBenjamin Peterson2016-09-073-7/+7
|
* os.urandom() now blocks on LinuxVictor Stinner2016-09-061-31/+46
| | | | | | | 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.