Charles-Francois Natali
74ca886788
Issue #17917 : Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()
when applicable.
13 years ago
Antoine Pitrou
fef34e3186
Issue #17937 : Try harder to collect cyclic garbage at shutdown.
13 years ago
Richard Oudkerk
25296ce5de
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
13 years ago
Victor Stinner
84bb1cf994
Fix compilater warnings on Windows 64-bit
13 years ago
Victor Stinner
9ce59bbe43
Fix a compilater warning on Windows 64-bit
13 years ago
Victor Stinner
d3dfd0e433
Fix a compilater warning on Windows 64-bit
idx variable is used for a tuple indexn so use Py_ssize_t (not int).
13 years ago
Victor Stinner
0b1bc56bb6
fix compilation on Windows
13 years ago
Benjamin Peterson
e8e14591eb
rather than passing locals to the class body, just execute the class body in the proper environment
13 years ago
Benjamin Peterson
1e93b06007
complain about "global __class__" in a class body ( closes #17983 )
13 years ago
Benjamin Peterson
312595ce3a
hide the __class__ closure from the class body ( #12370 )
13 years ago
Benjamin Peterson
e1b4cbc422
when arguments are cells clear the locals slot (backport of #17927 )
13 years ago
Benjamin Peterson
159ae41da6
when an argument is a cell, set the local copy to NULL (see #17927 )
13 years ago
Guido van Rossum
6832c81d5d
#17927 : Keep frame from referencing cell-ified arguments.
13 years ago
Charles-Francois Natali
f28dfdd07b
Issue #17912 : Use a doubly linked-list for thread states.
13 years ago
Antoine Pitrou
070cb3c9be
Issue #1545463 : At shutdown, defer finalization of codec modules so that stderr remains usable.
(should fix Windows buildbot failures on test_gc)
13 years ago
Victor Stinner
22c103b3cc
Fix a compiler warning: use unsigned int type instead of enum PyUnicode_Kind to
compare two Unicode kinds
13 years ago
Victor Stinner
313f10c722
Fix a compiler warning: in and out are unused in _Py_char2wchar() if
HAVE_MBRTOWC is not defined
13 years ago
Antoine Pitrou
5f454a07a0
Issue #1545463 : Global variables caught in reference cycles are now garbage-collected at shutdown.
13 years ago
Antoine Pitrou
8408cea0cd
Issue #17094 : Clear stale thread states after fork().
Note that this is a potentially disruptive change since it may
release some system resources which would otherwise remain
perpetually alive (e.g. database connections kept in thread-local
storage).
13 years ago
Antoine Pitrou
fd417cc54b
Fix crash caused by 8c1385205a35
(thanks Arfrever for reporting).
13 years ago
Brett Cannon
13853a67cf
#17115 : I hate you MS for not supporting C99.
13 years ago
Antoine Pitrou
957a23b088
Issue #17408 : Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
13 years ago
Brett Cannon
4c14b5de1c
#17115,17116: Have modules initialize the __package__ and __loader__
attributes to None.
The long-term goal is for people to be able to rely on these
attributes existing and checking for None to see if they have been
set. Since import itself sets these attributes when a loader does not
the only instances when the attributes are None are from someone
overloading __import__() and not using a loader or someone creating a
module from scratch.
This patch also unifies module initialization. Before you could have
different attributes with default values depending on how the module
object was created. Now the only way to not get the same default set
of attributes is to circumvent initialization by calling
ModuleType.__new__() directly.
13 years ago
Alexandre Vassalotti
865eaa1b53
Closes #17892 : Fix the name of _PyObject_CallMethodObjIdArgs
13 years ago
Benjamin Peterson
3b0431dc60
check local class namespace before reaching for cells ( closes #17853 )
13 years ago
Benjamin Peterson
fe1b22af0a
ignore errors when trying to fetch sys.stdin.encoding ( closes #17863 )
13 years ago
Benjamin Peterson
7d110042c5
raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ ( closes #17867 )
13 years ago
Antoine Pitrou
208ac5cf65
Issue #17832 : fix a compilation warning about a function prototype.
Also, make the private function static.
13 years ago
R David Murray
3583761bcd
#17413 : make sure settrace funcs get passed exception instances for 'value'.
Patch by Ingrid Cheung and Brendan McLoughlin.
13 years ago
Ezio Melotti
1b6424fc4b
Fix indentation.
13 years ago
Brett Cannon
edfd6ae79c
Issue #17244 : Don't mask exceptions raised during the creation of
bytecode files in py_compile.
Thanks to Arfrever Frehtes Taifersar Arahesis for the bug report.
13 years ago
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