Benjamin Peterson
75f94a7dff
remove more READ_TIMESTAMP
10 years ago
Benjamin Peterson
1cfe1d1f53
remove READ_TIMESTAMP macro
10 years ago
Benjamin Peterson
4fd64b9a6a
remove ceval timestamp support
10 years ago
Brett Cannon
a721abac29
Issue #26331 : Implement the parsing part of PEP 515.
Thanks to Georg Brandl for the patch.
10 years ago
Victor Stinner
ae8b69c410
Issue #27810 : Add _PyCFunction_FastCallKeywords()
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.
10 years ago
Eric Snow
50fd89806f
Issue #24320 : Drop an old setuptools-induced hack.
10 years ago
Victor Stinner
d873572095
Add _PyObject_FastCallKeywords()
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()
10 years ago
Victor Stinner
f9b760f48a
Rework CALL_FUNCTION* opcodes
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.
10 years ago
Yury Selivanov
52c4e7cc84
Issue #28008 : Implement PEP 530 -- asynchronous comprehensions.
10 years ago
Guido van Rossum
6cff8744a0
Issue #27999 : Make "global after use" a SyntaxError, and ditto for nonlocal.
Patch by Ivan Levkivskyi.
10 years ago
Yury Selivanov
87672d777a
Issue #28003 : Fix a compiler warning
10 years ago
Yury Selivanov
50c584f50b
ceval: tighten the code of STORE_ANNOTATION
10 years ago
Yury Selivanov
eb6364557f
Issue #28003 : Implement PEP 525 -- Asynchronous Generators.
10 years ago
Yury Selivanov
f8cb8a16a3
Issue #27985 : Implement PEP 526 -- Syntax for Variable Annotations.
Patch by Ivan Levkivskyi.
10 years ago
Christian Heimes
a78b627e2b
Fix potential NULL pointer dereference in _imp_create_builtin
PyModule_GetDef() can return NULL. Let's check the return value properly
like in the other five cases.
CID 1299590
10 years ago
Eric Snow
4f29e75289
Issue #24254 : Drop cls.__definition_order__.
10 years ago
Christian Heimes
45af0c83da
Fix potential NULL pointer dereference in update_symbols()
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()
10 years ago
Raymond Hettinger
4c483ad52b
Merge
10 years ago
Raymond Hettinger
262b6793e0
Issue #26020 : Fix evaluation order for set literals
10 years ago
Martin Panter
0be894b2f6
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
10 years ago
Senthil Kumaran
32d374215a
[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".
10 years ago
Raymond Hettinger
f0f1c239e4
Issue 27936: Fix inconsistent round() behavior between float and int
10 years ago
Raymond Hettinger
f0afe77c52
Issue #27909 : Fix INCREF for possible NULL value
10 years ago
Steve Dower
3929499914
Issue #1602 : Windows console doesn't input or print Unicode (PEP 528)
Closes #17602 : Adds a readline implementation for the Windows console
10 years ago
Steve Dower
940f33a50f
Issue #23524 : Finish removing _PyVerify_fd from sources
10 years ago
Eric Snow
f3fd06a2e4
Issue #28026 : Raise ImportError when exec_module() exists but create_module() is missing.
10 years ago
Steve Dower
cc16be85c0
Issue #27781 : Change file system encoding on Windows to UTF-8 (PEP 529)
10 years ago
Brett Cannon
035a100382
Issue #26667 : Add path-like object support to importlib.util.
10 years ago
Brett Cannon
52794db825
Issue #27911 : Remove some unnecessary error checks in import.c.
Thanks to Xiang Zhang for the patch.
10 years ago
Eric Snow
46f97b85a8
Issue #15767 : Use ModuleNotFoundError.
10 years ago
Brett Cannon
5c4de2863b
Add the co_extra field and accompanying APIs to code objects.
This completes PEP 523.
10 years ago
Benjamin Peterson
2f8bfef158
replace PY_SIZE_MAX with SIZE_MAX
10 years ago
Victor Stinner
e66987e626
os.urandom() now blocks on Linux
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.
10 years ago
Brett Cannon
eaecc692df
Issue #27974 : Remove importlib._bootstrap._ManageReload.
Class was dead code. Thanks to Xiang Zhang for the patch.
10 years ago
Benjamin Peterson
ca47063998
replace Py_(u)intptr_t with the c99 standard types
10 years ago
Benjamin Peterson
9b3d77052f
replace Python aliases for standard integer types with the standard integer types ( #17884 )
10 years ago
Benjamin Peterson
5d75f441ef
dtoa.c: remove code for platforms with 64-bit integers ( #17884 )
10 years ago
Serhiy Storchaka
ea525a2d1a
Issue #27078 : Added BUILD_STRING opcode. Optimized f-strings evaluation.
10 years ago
Benjamin Peterson
4fe55106d1
require standard int types to be defined ( #17884 )
10 years ago
Benjamin Peterson
af580dff4a
replace PY_LONG_LONG with long long
10 years ago
Victor Stinner
3466bde1cc
Avoid calling functions with an empty string as format string
Directly pass NULL rather than an empty string.
10 years ago
Victor Stinner
ad8c83ad6b
Avoid inefficient way to call functions without argument
Don't pass "()" format to PyObject_CallXXX() to call a function without
argument: pass NULL as the format string instead. It avoids to have to parse a
string to produce 0 argument.
10 years ago
Benjamin Peterson
ed4aa83ff7
require a long long data type ( closes #27961 )
10 years ago
Brett Cannon
3cebf93872
Implement the frame evaluation API aspect of PEP 523.
10 years ago
Larry Hastings
10108a7b9a
Issue #27355 : Removed support for Windows CE. It was never finished,
and Windows CE is no longer a relevant platform for Python.
10 years ago
Eric Snow
92a6c170e6
Issue #24254 : Preserve class attribute definition order.
10 years ago
Eric V. Smith
6a4efce7a5
Closes issue 27921: Disallow backslashes anywhere in f-strings. This is a temporary restriction. In 3.6 beta 2, the plan is to again allow backslashes in the string parts of f-strings, but disallow them in the expression parts.
10 years ago
Raymond Hettinger
15f44ab043
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
10 years ago
Serhiy Storchaka
1f9326196e
Issue #27818 : Speed up parsing width and precision in format() strings for
numbers. Patch by Stefan Behnel.
10 years ago
Raymond Hettinger
7ea386e56e
Issue 19504: Change "customise" to "customize" American spelling.
10 years ago