Brett Cannon
c190389834
Issue #17220 : two fixes for changeset 2528e4aea338.
First, because the mtime can exceed 4 bytes, make sure to mask it down to 4
bytes before getting its little-endian representation for writing out to a .pyc
file.
Two, cap an rsplit() call to 1 split, else can lead to too many values being
returned for unpacking.
13 years ago
Serhiy Storchaka
39e47f94ec
Issue #17220 : Little cleanup of _bootstrap.py.
13 years ago
Ezio Melotti
795c10b3b6
Rebuild importlib.h after the changes introduced in 0f65bf6063ca.
13 years ago
Antoine Pitrou
7056cb2867
Issue #17170 : speed up PyArg_ParseTuple[AndKeywords] a bit.
13 years ago
Ezio Melotti
b19ed57d8d
#17178 : update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan.
13 years ago
Serhiy Storchaka
7e0191170e
Issue #5308 : Raise ValueError when marshalling too large object (a sequence
with size >= 2**31), instead of producing illegal marshal data.
13 years ago
Serhiy Storchaka
5e61f14c6d
Issue #12983 : Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
13 years ago
Benjamin Peterson
419d9a83d5
evaluate lambda keyword-only defaults after positional defaults ( #16967 again)
13 years ago
Benjamin Peterson
1ef876cd28
evaluate positional defaults before keyword-only defaults ( closes #16967 )
13 years ago
Antoine Pitrou
4de7457009
Issue #17173 : Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag).
13 years ago
Brett Cannon
da9cf0eef8
Issue #17098 : Be more stringent of setting __loader__ on early imported
modules. Also made test more rigorous.
13 years ago
Brett Cannon
0ecd30b4af
Issue #17098 : Make sure every module has __loader__ defined.
Thanks to Thomas Heller for the bug report.
13 years ago
Brett Cannon
f3220d6af7
Tweak an exception message
13 years ago
Brett Cannon
14581d5dc4
Port py_compile over to importlib
13 years ago
Brett Cannon
686e880f20
Touch up exception messaging
13 years ago
Martin v. Löwis
b26a9b10ea
Replace WaitForSingleObject with WaitForSingleObjectEx,
for better WinRT compatibility.
13 years ago
Martin v. Löwis
3f50bf652b
Drop support for Windows 2000; allow any XP API (but not Vista+).
Drop SDK version configuration for Tk compilation, to not bind it to W2k
anymore. Binding it to XP would conflict with Tk's own binding of tkMenu to W2k.
13 years ago
Benjamin Peterson
51f4616f6e
revert #16672 for incorrect semantics
13 years ago
Benjamin Peterson
c71741f413
remove unnecessary clearing of list
13 years ago
Philip Jenvey
215c49a509
thinko
13 years ago
Brett Cannon
569ff4fbbc
Issue #15031 : Refactor some code in importlib pertaining to validating
and compiling bytecode.
Thanks to Ronan Lamy for pointing the redundancy and taking an initial
stab at the refactor (as did Nick Coghlan).
13 years ago
Brett Cannon
a9976b3e32
Issue #16730 : Don't raise an exception in
importlib.machinery.FileFinder when the directory has become
unreadable or a file. This brings semantics in line with Python 3.2
import.
Reported and diagnosed by David Pritchard.
13 years ago
Victor Stinner
20b654acb5
Issue #16455 : On FreeBSD and Solaris, if the locale is C, the
ASCII/surrogateescape codec is now used, instead of the locale encoding, to
decode the command line arguments. This change fixes inconsistencies with
os.fsencode() and os.fsdecode() because these operating systems announces an
ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
13 years ago
Benjamin Peterson
198399d92c
bring Python into 2013
13 years ago
Andrew Svetlov
f7a17b48d7
Replace IOError with OSError ( #16715 )
13 years ago
Andrew Svetlov
3ba3a3ee56
Issue #15422 : get rid of PyCFunction_New macro
13 years ago
Benjamin Peterson
6f0c94df50
improve tracing performance when f_trace is NULL ( closes #16672 )
Patch by Xavier de Gaye.
13 years ago
Mark Dickinson
9fade768c8
Issue #13863 : fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat)
13 years ago
Benjamin Peterson
fc8f5c5e0f
update importlib.h
13 years ago
Andrew Svetlov
2606a6f197
Issue #16719 : Get rid of WindowsError. Use OSError instead
Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
202b60640b
Add sanity assertions in some import lock code (issue #15599 ).
13 years ago
Andrew Svetlov
ad28c7f9da
Issue #16706 : get rid of os.error
13 years ago
Benjamin Peterson
9272279afd
use error label instead of breaking eval loop ( closes #16693 )
13 years ago
Benjamin Peterson
5cb8a31dc4
cleanup and fix refleaks
13 years ago
Andrew Svetlov
6b2cbeba58
Issue #16421 : allow to load multiple modules from the same shared object.
Patch by Václav Šmilauer.
13 years ago
Philip Jenvey
f76f0eea5c
compile doesn't accept code objects
13 years ago
Trent Nelson
25a48610a8
Make PyAST_obj2mod C89 compliant. (Follow-up commit from asdl_c.py.)
13 years ago
Antoine Pitrou
f9d0b1256f
Issue #13390 : New function :func:`sys.getallocatedblocks()` returns the number of memory blocks currently allocated.
Also, the ``-R`` option to regrtest uses this function to guard against memory allocation leaks.
13 years ago
Benjamin Peterson
70b224d8d4
assert than we never try to deal with True, False, or None as a name
13 years ago
Benjamin Peterson
442f20996d
create NameConstant AST class for None, True, and False literals ( closes #16619 )
13 years ago
Jesus Cea
7ddd9c21da
Closes #16588 : Silence unused-but-set warnings in Python/thread_pthread.h
13 years ago
Eric Snow
a6cfb28bd2
Issue #15627 : This is simply an update to the name of a new method recently added
to importlib.abc.SourceLoader.
13 years ago
Victor Stinner
d45c7f8d74
Issue #16455 : On FreeBSD and Solaris, if the locale is C, the
ASCII/surrogateescape codec is now used, instead of the locale encoding, to
decode the command line arguments. This change fixes inconsistencies with
os.fsencode() and os.fsdecode() because these operating systems announces an
ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
13 years ago
Victor Stinner
41a234a679
Issue #16416 : Fix compilation error
13 years ago
Victor Stinner
27b1ca29cc
Issue #16416 : On Mac OS X, operating system data are now always
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
(which may be ASCII if no locale environment variable is set), to avoid
inconsistencies with os.fsencode() and os.fsdecode() functions which are
already using UTF-8/surrogateescape.
13 years ago
Christian Heimes
56379c0d8f
Issue #16588 : Silence unused-but-set warnings in Python/thread_pthread.h
13 years ago
Mark Dickinson
b1cc6aa2df
Issue #9011 : AST creation no longer modifies CST for negated numeric literals.
13 years ago
Mark Dickinson
ded35aeb9d
Issue #16546 : make ast.YieldFrom argument mandatory.
13 years ago
Ezio Melotti
a0dd22e5e8
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
13 years ago
Ezio Melotti
ec6486d52d
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
13 years ago