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
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
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
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
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
Victor Stinner
e90bdb19f2
Issue #27830 : Revert, remove _PyFunction_FastCallKeywords()
10 years ago
Victor Stinner
577e1f8cb4
Add _PyObject_FastCallKeywords()
Issue #27830 : Similar to _PyObject_FastCallDict(), but keyword arguments are
also passed in the same C array than positional arguments, rather than being
passed as a Python dict.
10 years ago
Victor Stinner
74319ae219
Use Py_ssize_t type for number of arguments
Issue #27848 : use Py_ssize_t rather than C int for the number of function
positional and keyword arguments.
10 years ago
Victor Stinner
cdb5cee980
Issue #27809 : map_next() uses fast call
Use a small stack allocated in the C stack for up to 5 iterator functions,
otherwise allocates a stack on the heap memory.
10 years ago
Victor Stinner
f0cba67d0b
Backed out changeset 70f88b097f60 (map_next)
10 years ago
Victor Stinner
a9ba1ab21b
Issue #27809 : map_next() uses fast call
Use a small stack allocated in the C stack for up to 5 iterator functions,
otherwise allocates a stack on the heap memory.
10 years ago
Victor Stinner
d1c2a8e2b5
Issue #27809 : builtin___build_class__() uses fast call
10 years ago
Victor Stinner
6e2333dfdf
PyEval_CallObjectWithKeywords() doesn't inc/decref
Issue #27809 : PyEval_CallObjectWithKeywords() doesn't increment temporary the
reference counter of the args tuple (positional arguments). The caller already
holds a strong reference to it.
10 years ago
Victor Stinner
f45a56150b
Issue #27809 : PyErr_SetImportError() uses fast call
10 years ago
Victor Stinner
3a84097291
Add _PyErr_CreateException()
Issue #27809 : Helper function optimized to create an exception: use fastcall
whenever possible.
10 years ago
Victor Stinner
463b86a881
Issue #27809 : Use _PyObject_FastCallDict()
Modify:
* init_subclass()
* builtin___build_class__()
Fix also a bug in init_subclass(): check for super() failure.
10 years ago
Victor Stinner
155ea65e5c
PyEval_CallObjectWithKeywords() uses fast call with kwargs
Issue #27809 . _PyObject_FastCallDict() now supports keyword arguments, and so
the args==NULL fast-path can also be used when kwargs is not NULL.
10 years ago
Victor Stinner
2990fa11bc
Issue #27809 : Use _PyObject_FastCallDict()
Modify:
* builtin_sorted()
* classmethoddescr_call()
* methoddescr_call()
* wrapperdescr_call()
10 years ago
Victor Stinner
6fea7f7ffc
Issue #27809 : Cleanup _PyEval_EvalCodeWithName()
* Rename nm to name
* PEP 7: add { ... } to if/else blocks
10 years ago
Victor Stinner
b900939186
_PyFunction_FastCallDict() supports keyword args
Issue #27809 :
* Rename _PyFunction_FastCall() to _PyFunction_FastCallDict()
* Rename _PyCFunction_FastCall() to _PyCFunction_FastCallDict()
* _PyFunction_FastCallDict() now supports keyword arguments
10 years ago
Victor Stinner
559bb6a713
Rename _PyObject_FastCall() to _PyObject_FastCallDict()
Issue #27809 :
* Rename _PyObject_FastCall() function to _PyObject_FastCallDict()
* Add _PyObject_FastCall(), _PyObject_CallNoArg() and _PyObject_CallArg1()
macros calling _PyObject_FastCallDict()
10 years ago
Berker Peksag
4b7b565c58
Issue #27587 : Move null pointer check earlier in _PyState_AddModule()
This was found by PVS-Studio:
V595 The 'def' pointer was utilized before it was verified
against nullptr. Check lines: 286, 292. pystate.c 286
Initial patch by Christian Heimes.
10 years ago
Victor Stinner
2eedc119c2
Optimize call to Python function without argument
Issue #27128 . When a Python function is called with no arguments, but all
parameters have a default value: use default values as arguments for the fast
path.
10 years ago
Victor Stinner
a88b2f4e5e
Fix reference leak in tb_printinternal()
Issue #26823 .
10 years ago
Victor Stinner
c3ccaae6f3
sys_pyfile_write_unicode() now uses fast call
Issue #27128 .
10 years ago
Victor Stinner
78da82bf3e
call_trampoline() now uses fast call
Issue #27128 .
10 years ago
Victor Stinner
71cb64acc2
PyErr_PrintEx() now uses fast call
Issue #27128 .
10 years ago
Victor Stinner
df142fdc4b
import_name() now uses fast call
Issue #27128 : import_name() now calls _PyObject_FastCall() to avoid the
creation of a temporary tuple.
10 years ago