Christian Heimes
dfaf90da9c
Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases.
14 years ago
Christian Heimes
65a0141e14
Partly revert ad3824a90261 and add comment about reference ownership
14 years ago
Christian Heimes
d8edcb6505
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
14 years ago
Christian Heimes
8c1bce00d2
Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases
14 years ago
Antoine Pitrou
e299cae230
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
This was a regression caused by the hash randomization patch.
14 years ago
Antoine Pitrou
58098a77e6
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 2.7.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 2.7.3 and earlier. However, extension modules
compiled for 2.7.3 and earlier will be loadable by 2.7.4.
14 years ago
Stefan Krah
a8857af37b
Issue #15741 : Fix potential NULL dereference. Found by Coverity.
14 years ago
Antoine Pitrou
c5bef75c77
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
Patch by Serhiy Storchaka.
14 years ago
Matthias Klose
92636bf243
- Issue #15647 : Make isdir static for windows and posix
14 years ago
Raymond Hettinger
dee8af225b
Fix whitespace
14 years ago
R David Murray
59488d233b
Closes #9254 : backport __import__ docstring/doc mentions of importlib.
Patch by Éric Araujo.
14 years ago
Meador Inge
0e3755e58a
remove unused variable
14 years ago
Meador Inge
b8a569065e
Issue #15368 : fixing variable typo.
14 years ago
Meador Inge
6642d1f97d
Issue #15368 : make bytecode generation deterministic.
14 years ago
Martin v. Löwis
ed11a5d018
Issue #8767 : Restore building with --disable-unicode.
Original patch by Stefano Taschini.
14 years ago
Antoine Pitrou
284fa08eb7
Issue #14761 : Fix potential leak on an error case in the import machinery.
14 years ago
Gregory P. Smith
a72aa843b6
Fix compiler warning related to issue #14331 . harmless.
14 years ago
Benjamin Peterson
7c0b44ec17
move outside WITH_THREAD conditional
14 years ago
Benjamin Peterson
6688eb536a
take linkage def outside of WITH_THREAD conditional ( closes #14569 )
14 years ago
Benjamin Peterson
b9348e76e4
fix parse_syntax_error to clean up its resources
14 years ago
Kristján Valur Jónsson
50b6778bda
Issue #10538 . Put a reference to the source object in the Py_buffer when
converting the old buffer for PyArgs_ParseTuple with *s
14 years ago
Benjamin Peterson
219a05094b
this should technicaly be identifier
14 years ago
Benjamin Peterson
e90cdaa185
check for NULL
14 years ago
Benjamin Peterson
eff19a13ed
check by equality for __future__ not identity ( closes #14378 )
14 years ago
Gregory P. Smith
fcdf04becc
Fixes Issue #14331 : Use significantly less stack space when importing modules by
allocating path buffers on the heap instead of the stack.
14 years ago
Matthias Klose
3cef2a931c
- rename configure.in to configure.ac
- change references from configure.in to configure.ac
14 years ago
Jason R. Coombs
0e17dfbdcf
Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.
14 years ago
Barry Warsaw
74f4bd53e0
Bump some more copyright years (as per PEP 101), since this is the first
release of 2.6 for 2012.
14 years ago
Antoine Pitrou
776af4002b
Fix crash at startup with -W options.
14 years ago
Antoine Pitrou
cc3fa88a9c
Fix crash at startup with -W options.
14 years ago
Benjamin Peterson
26da920001
ensure no one tries to hash things before the random seed is found
14 years ago
Barry Warsaw
1e13eb084f
- Issue #13703 : oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
14 years ago
Petri Lehtinen
fe6f9d0edc
Document absoluteness of sys.executable
Closes #13402 .
14 years ago
Antoine Pitrou
6f25d75f25
Remove debug output, fix assert (hopefully) and exercise signedness issues a bit more.
14 years ago
Antoine Pitrou
b744cef654
Fix temporary debug output (so, time_t is 8 bytes on some Windows builds)
14 years ago
Antoine Pitrou
11cc480ed0
Temporary debug for Windows buildbots.
14 years ago
Antoine Pitrou
0e5fd59a27
Make guard more dynamic (apparently the size of a filesystem timestamp may vary under Windows).
14 years ago
Antoine Pitrou
d1c818a9c0
Issue #11235 : Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
14 years ago
Jason R. Coombs
0737b7281e
Fix indentation
14 years ago
Jason R. Coombs
fa93cf8e3e
Extracted Windows directory detection from NullImporter.__init__. This greatly simplifies the code and fixes issue6727.
14 years ago
Jason R. Coombs
925ff7495b
Moved directory detection into an isdir function
14 years ago
Benjamin Peterson
5f8d60647b
add another year to glorious PSF IP
14 years ago
Amaury Forgeot d'Arc
4bf21e28df
Issue #13546 : Fixed an overflow issue that could crash the intepreter when
calling sys.setrecursionlimit((1<<31)-1).
2.7 only.
14 years ago
Benjamin Peterson
a5ae1f0c25
remove py3k warning for callable
14 years ago
Benjamin Peterson
0c0d756098
don't let a tuple msg be interpreted as arguments to AssertionError ( closes #13268 )
14 years ago
Charles-François Natali
1f3ff7bc3f
Issue #13156 : revert changeset f6feed6ec3f9, which was only relevant for native
TLS implementations, and fails with the ad-hoc TLS implementation when a thread
doesn't have an auto thread state (e.g. a thread created outside of Python
calling into a subinterpreter).
14 years ago
Victor Stinner
63c22fac72
Issue #7732 : Fix a crash on importing a module if a directory has the same name
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
15 years ago
Victor Stinner
ed36c06f1d
Fix the import machinery if there is an error on sys.path or sys.meta_path
find_module() now raises a RuntimeError, instead of ImportError, on an error on
sys.path or sys.meta_path because load_package() and import_submodule() returns
None and clear the exception if a ImportError occurred.
15 years ago
Victor Stinner
871a0fbf46
Remove unused variable if Python is build without threads
15 years ago
Antoine Pitrou
4cfae027b3
Issue #1813 : Fix codec lookup and setting/getting locales under Turkish locales.
15 years ago