Serhiy Storchaka
00a0fc1144
Issue #27942 : String constants now interned recursively in tuples and frozensets.
9 years ago
Serhiy Storchaka
208bbd29d3
Silence GCC warning.
The code was correct, but GCC is not enough clever.
9 years ago
Victor Stinner
6d8bc46cc0
Catch EPERM error in py_getrandom()
Issue #27955 : Fallback on reading /dev/urandom device when the getrandom()
syscall fails with EPERM, for example when blocked by SECCOMP.
9 years ago
Victor Stinner
af59732102
Cleanup random.c
Issue #27955 : modify py_getrnadom() and dev_urandom()
* Add comments from Python 3.7
* PEP 7 style: add {...}
9 years ago
Steve Dower
1ec262be80
Issue #27932 : Prevent memory leak in win32_ver().
9 years ago
Benjamin Peterson
59e5e0dca2
improve type-safe of and prevent double-frees in get_locale_info ( #28119 )
9 years ago
Raymond Hettinger
262b6793e0
Issue #26020 : Fix evaluation order for set literals
9 years ago
Martin Panter
0be894b2f6
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
9 years ago
Senthil Kumaran
32d374215a
[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".
9 years ago
Raymond Hettinger
f0f1c239e4
Issue 27936: Fix inconsistent round() behavior between float and int
9 years ago
Raymond Hettinger
f0afe77c52
Issue #27909 : Fix INCREF for possible NULL value
9 years ago
Raymond Hettinger
7ea386e56e
Issue 19504: Change "customise" to "customize" American spelling.
9 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.
9 years ago
Victor Stinner
eec9331b20
Fix SystemError in "raise" statement
Issue #27558 : Fix a SystemError in the implementation of "raise" statement.
In a brand new thread, raise a RuntimeError since there is no active
exception to reraise.
Patch written by Xiang Zhang.
9 years ago
Martin Panter
69332c1a64
Fix spelling and grammar in documentation and code comments
10 years ago
Martin Panter
95f53c13ce
Issue #16191 : Fix up references to renamed variables
10 years ago
Serhiy Storchaka
80ab069f1b
Issue #27419 : Added temporary workaround for subinterpreters.
10 years ago
Serhiy Storchaka
b3b65e618c
Issue #27419 : Standard __import__() no longer look up "__import__" in globals
or builtins for importing submodules or "from import". Fixed handling an
error of non-string package name.
10 years ago
Brett Cannon
7ca63cb7cc
Fix regressions introduced by fixes for issue #27083 .
10 years ago
Benjamin Peterson
e09ed5419b
make too many nested blocks be a SyntaxError instead of a SystemError ( closes #27514 )
Patch by Ammar Askar.
10 years ago
Serhiy Storchaka
1a2b24f02d
Issue #27332 : Fixed the type of the first argument of module-level functions
generated by Argument Clinic. Patch by Petr Viktorin.
10 years ago
Victor Stinner
ec721f3305
py_getrandom(): use long type for the syscall() result
Issue #27278 . It should fix a conversion warning.
In practice, the Linux kernel doesn't return more than 32 MB per call to the
getrandom() syscall.
10 years ago
Serhiy Storchaka
694de3bff7
Issue #27301 : Fixed incorrect return codes for errors in compile.c.
10 years ago
Victor Stinner
c72828ba33
cleanup random.c
Casting Py_ssize_t to Py_ssize_t is useless.
10 years ago
Victor Stinner
b98a36e8f3
Fix os.urandom() using getrandom() on Linux
Issue #27278 : Fix os.urandom() implementation using getrandom() on Linux.
Truncate size to INT_MAX and loop until we collected enough random bytes,
instead of casting a directly Py_ssize_t to int.
10 years ago
Serhiy Storchaka
3c317e76a2
Issue #27286 : Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling
function with generalized unpacking (PEP 448) and conflicting keyword names
could cause undefined behavior.
10 years ago
Martin Panter
39b1025356
Fix typo and move comment to appropriate condition
10 years ago
Yury Selivanov
a6f6edbda8
Issue #27243 : Fix __aiter__ protocol
10 years ago
Victor Stinner
dddf4849ec
os.urandom() doesn't block on Linux anymore
Issue #26839 : On Linux, os.urandom() now calls getrandom() with GRND_NONBLOCK
to fall back on reading /dev/urandom if the urandom entropy pool is not
initialized yet. Patch written by Colm Buckley.
10 years ago
Martin Panter
3ee6270262
Fix typos in code comment and documentation
10 years ago
Serhiy Storchaka
c7385f31d3
Issue #27138 : Regenerate Python/importlib_external.h.
10 years ago
Martin Panter
46f50726a0
Issue #27076 : Doc, comment and tests spelling fixes
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
10 years ago
Serhiy Storchaka
74f2fe6489
Fixed the use of _Py_IS_ALIGNED (issue #27097 ).
10 years ago
Serhiy Storchaka
f60bf5f7d6
Issue #27097 : Python interpreter is now about 7% faster due to optimized
instruction decoding. Based on patch by Demur Rumed.
10 years ago
Serhiy Storchaka
b0f80b0312
Issue #26647 : Python interpreter now uses 16-bit wordcode instead of bytecode.
Patch by Demur Rumed.
10 years ago
Serhiy Storchaka
13e602ea0f
Issue #26168 : Fixed possible refleaks in failing Py_BuildValue() with the "N"
format unit.
10 years ago
Victor Stinner
744c34e2ea
Cleanup import.c
* Replace PyUnicode_RPartition() with PyUnicode_FindChar() and
PyUnicode_Substring() to avoid the creation of a temporary tuple.
* Use PyUnicode_FromFormat() to build a string and avoid the single_dot ('.')
singleton
Thanks Serhiy Storchaka for your review.
10 years ago
Victor Stinner
3116cc44af
Fix os.set_inheritable() on Android
Issue #27057 : Fix os.set_inheritable() on Android, ioctl() is blocked by
SELinux and fails with EACCESS. The function now falls back to fcntl().
Patch written by Michał Bednarski.
10 years ago
Berker Peksag
094c9c921c
Issue #23275 : Allow () = iterable assignment syntax
Documentation updates by Martin Panter.
10 years ago
Benjamin Peterson
ed64d6b4a5
regen importlib bytecode
10 years ago
Benjamin Peterson
ad887cf7d1
fix possible refleak in MAKE_FUNCTION ( closes #26991 )
Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
ce41287e99
Issue #18531 : Single var-keyword argument of dict subtype was passed
unscathed to the C-defined function. Now it is converted to exact dict.
10 years ago
Martin Panter
4c35964b76
Corrections for a/an in code comments and documentation
10 years ago
Serhiy Storchaka
24182a3aaa
Restored parameter name "self" since gdb needs exact specific parameter names.
10 years ago
Serhiy Storchaka
c2f7d87897
Issue #26932 : Fixed support of RTLD_* constants defined as enum values,
not via macros (in particular on Android). Patch by Chi Hsuan Yen.
10 years ago
Serhiy Storchaka
7a9579c0ce
Got rid of redundand "self" parameter declarations.
Argument Clinic is now able to infer all needed information.
10 years ago
Serhiy Storchaka
df071730bb
Regenerate Argument Clinic code for issue #26874 .
10 years ago
Berker Peksag
ec766d3c15
Issue #23960 : Cleanup args and kwargs on error in PyErr_SetImportError
Patch by Ofer Schwarz.
10 years ago
Zachary Ware
7f227d9087
Issue #26874 : Simplify the divmod docstring
10 years ago
Zachary Ware
4d4160af6a
Issue #26874 : Fix divmod docstring
10 years ago