Raymond Hettinger
08eef3ff49
Re-linewrap comments
10 years ago
Martin Panter
69332c1a64
Fix spelling and grammar in documentation and code comments
10 years ago
Serhiy Storchaka
133138a284
Issue #22557 : Now importing already imported modules is up to 2.5 times faster.
10 years ago
Martin Panter
d2f87472fe
Issue #17596 : MINGW: add wincrypt.h in Python/random.c
Based on patch by Roumen Petrov.
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
b2f8a801c2
Check in update for importlib_external.h
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
Brett Cannon
2247e5c48c
Update frozen importlib code
10 years ago
Brett Cannon
fdcdd9ed80
Issue #26896 : Disambiguate uses of "importer" with "finder".
Thanks to Oren Milman for the patch.
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
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