summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27932: Prevent memory leak in win32_ver().Steve Dower2016-09-181-4/+42
|
* Issue #26182: Raise DeprecationWarning for improper use of async/await keywordsYury Selivanov2016-09-151-0/+20
|
* merge 3.5 (#28119)Benjamin Peterson2016-09-141-22/+14
|\
| * improve type-safe of and prevent double-frees in get_locale_info (#28119)Benjamin Peterson2016-09-141-17/+9
| |
| * Issue #26020: Fix evaluation order for set literalsRaymond Hettinger2016-09-081-2/+4
| |
| * Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-072-2/+2
| |
| * [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".Senthil Kumaran2016-09-071-3/+4
| |
* | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵Christian Heimes2016-09-132-3/+3
| | | | | | | | optimize memcpy().
* | 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
| |