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
Serhiy Storchaka
7e160ce356
Issue #23034 : The output of a special Python build with defined COUNT_ALLOCS,
SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by default. It can
be re-enabled using the "-X showalloccount" option. It now outputs to stderr
instead of stdout.
10 years ago
Serhiy Storchaka
fbd1523525
Issue #27352 : Correct the validation of the ImportFrom AST node and simplify
the implementation of the IMPORT_NAME opcode.
10 years ago
Serhiy Storchaka
da9c513414
Issue #27255 : Added more predictions in ceval.c.
10 years ago
Serhiy Storchaka
cfdfbb4d3c
Issue #27342 : Replaced some Py_XDECREFs with Py_DECREFs.
Patch by Xiang Zhang.
10 years ago
Victor Stinner
d7292b5e9f
Issue #27336 : Fix compilation on Windows
Replace "#if WITH_THREAD" with "#ifdef WITH_THREAD".
10 years ago
Berker Peksag
531396c764
Issue #27336 : Fix compilation failures --without-threads
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
doko@ubuntu.com
5553231b91
- Issue #23968 : Rename the platform directory from plat-$(MACHDEP) to
plat-$(PLATFORM_TRIPLET).
Rename the config directory (LIBPL) from config-$(LDVERSION) to
config-$(LDVERSION)-$(PLATFORM_TRIPLET).
Install the platform specifc _sysconfigdata module into the platform
directory and rename it to include the ABIFLAGS.
10 years ago
Serhiy Storchaka
64204de04c
Issue #27095 : Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.
Patch by Demur Rumed.
10 years ago
Serhiy Storchaka
5697c4b641
Comment fixes extracted from patch by Demur Rumed.
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
Serhiy Storchaka
6a7506a77f
Issue #27140 : Added BUILD_CONST_KEY_MAP opcode.
10 years ago
Serhiy Storchaka
f41b82fb19
Issue #26282 : PyArg_ParseTupleAndKeywords() and Argument Clinic now support
positional-only and keyword parameters in the same function.
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
Serhiy Storchaka
5dee6551e2
Issue #26305 : Argument Clinic now uses braces in C code as required by PEP 7.
10 years ago
Victor Stinner
cfb1961f61
py_getrandom(): use char* instead of void* for the destination
Fix a "gcc -pedantic" warning on "buffer += n" because buffer type is void*.
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
Stefan Krah
144da4ec85
Issue #22747 : Workaround for systems without langinfo.h.
10 years ago
Stefan Krah
1845d144bc
Issue #17905 : Do not guard locale include with HAVE_LANGINFO_H.
10 years ago
Serhiy Storchaka
79d6e8de9e
Issue #26802 : Optimized calling a function with *args only positional arguments.
Patch by Joe Jevnik.
10 years ago
Victor Stinner
a858bbde03
Avoid fcntl() if possible in set_inheritable()
Issue #26770 : set_inheritable() avoids calling fcntl() twice if the FD_CLOEXEC
is already set/cleared. This change only impacts platforms using the fcntl()
implementation of set_inheritable() (not Linux nor Windows).
10 years ago
Serhiy Storchaka
6a7b3a77b4
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
10 years ago
Martin Panter
6245cb3c01
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
This affects documentation, code comments, and a debugging messages.
10 years ago
Serhiy Storchaka
23c5cbbdde
fs_unicode_converter is no longer used.
10 years ago