Benjamin Peterson
214a7d2674
properly lookup the __round__ special method ( closes #17722 )
13 years ago
Antoine Pitrou
e9bbe8b87b
Issue #15480 : Remove the deprecated and unused TYPE_INT64 code from marshal.
Initial patch by Daniel Riti.
13 years ago
Brett Cannon
100883f0cb
Issue #17093,17566,17567: Methods from classes in importlib.abc now raise/return
the default exception/value when called instead of raising/returning
NotimplementedError/NotImplemented (except where appropriate).
This should allow for the ABCs to act as the bottom/end of the MRO with expected
default results.
As part of this work, also make importlib.abc.Loader.module_repr()
optional instead of an abstractmethod.
13 years ago
Serhiy Storchaka
278d03bd66
Revert a premature patch for issue #14010 (changeset aaaf36026511).
13 years ago
Antoine Pitrou
55bff89190
Issue #17645 : convert an assert() into a proper exception in _Py_Mangle().
13 years ago
Serhiy Storchaka
e8f706eda7
Issue #14010 : Fix a crash when iterating or deleting deeply nested filters
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
13 years ago
Richard Oudkerk
614c578dec
Issue #17619 : Make input() check for Ctrl-C correctly on Windows.
13 years ago
Victor Stinner
eb4b5ac8af
Close #16757 : Avoid calling the expensive _PyUnicode_FindMaxChar() function
when possible
13 years ago
Brett Cannon
f8ffec0617
Issue #17357 : Add missing verbosity messages when running under
-v/-vv that were lost in the transition to importlib.
13 years ago
Benjamin Peterson
d0924b3d38
update importlib.h
13 years ago
Ezio Melotti
1f8898a591
#17323 : The "[X refs, Y blocks]" printed by debug builds has been disabled by default. It can be re-enabled with the `-X showrefcount` option.
13 years ago
Gregory P. Smith
b803c6c4b8
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
correctly check for errors on two CreateFileMapping calls.
13 years ago
Georg Brandl
a7d2f0061f
Copyright update to 2013.
13 years ago
Kristján Valur Jónsson
684cd0e643
Issue #17522 : Add the PyGILState_Check() API.
13 years ago
Benjamin Peterson
440282ba8a
copy 2.7 magic numbers for historical interest
13 years ago
Kristján Valur Jónsson
6168362509
Issue #16475 : Correctly handle the EOF when reading marshal streams.
13 years ago
Kristján Valur Jónsson
e178187bf6
Issue #16475 : Simplify the interface to r_ref_allocate and improve comments.
13 years ago
Benjamin Peterson
eddb0a7884
fix compiler warning
13 years ago
Benjamin Peterson
605a774a98
Backed out changeset 521232b05b97
13 years ago
Benjamin Peterson
c6dc12484b
fix compiler warning
13 years ago
Kristján Valur Jónsson
dc32d18d11
Issue #15038 : Fixing the condition broadcast and docs.
13 years ago
Kristján Valur Jónsson
32ecccaf63
Issue #15038 : Fixing the condition broadcast and docs.
13 years ago
Kristján Valur Jónsson
d7009c6913
Issue #16475 : Support object instancing, recursion and interned strings
in marshal
13 years ago
Benjamin Peterson
3a61943b7b
bump Python-ast.c
13 years ago
Benjamin Peterson
b72406b8fa
refactor to fix refleaks
13 years ago
Benjamin Peterson
6fba3dbce0
sprinkle const
13 years ago
Benjamin Peterson
aad1d87339
move declaration to top of block
13 years ago
Benjamin Peterson
cda75be02a
unify some ast.argument's attrs; change Attribute column offset ( closes #16795 )
Patch from Sven Brauch.
13 years ago
Benjamin Peterson
aa14dc3b4e
C89 compliance
13 years ago
Benjamin Peterson
2d6acd2ac2
reject non-docs strings between future imports ( closes #17434 )
13 years ago
Benjamin Peterson
7701e6ef93
make some freezing related stuff const
13 years ago
Brett Cannon
4802becb16
Issue #17117 : Have both import itself and importlib.util.set_loader()
set __loader__ on a module when set to None.
Thanks to Gökcen Eraslan for the fix.
13 years ago
Ezio Melotti
04a29554c1
#17032 : The "global" in the "NameError: global name 'x' is not defined" error message has been removed. Patch by Ram Rachum.
13 years ago
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
Ezio Melotti
94bf697b01
#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
34fe1b7a3d
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