Commit Graph

3213 Commits

Author SHA1 Message Date
Mark Dickinson
9fade768c8 Issue #13863: fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat) 2012-12-24 16:33:18 +00:00
Trent Nelson
25a48610a8 Make PyAST_obj2mod C89 compliant. (Follow-up commit from asdl_c.py.) 2012-12-13 07:22:16 +00:00
Jesus Cea
7ddd9c21da Closes #16588: Silence unused-but-set warnings in Python/thread_pthread.h 2012-12-05 14:41:11 +01:00
Mark Dickinson
b1cc6aa2df Issue #9011: AST creation no longer modifies CST for negated numeric literals. 2012-11-25 17:11:33 +00:00
Ezio Melotti
ec6486d52d #16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka. 2012-11-23 18:46:11 +02:00
Ezio Melotti
db5947f0f3 #16306: Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen. 2012-11-18 13:46:38 +02:00
Hynek Schlawack
b271b3e188 Issue #15001: fix segfault on "del sys.modules['__main__']"
Patch by Victor Stinner.
2012-11-07 09:41:28 +01:00
Ezio Melotti
c18cc0edff #5057: the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds. 2012-11-05 00:03:21 +02:00
Nick Coghlan
b48c028ca7 Issue #6074: Restore the long-broken support for running with read-only source files on Windows 2012-10-19 21:58:18 +10:00
Chris Jerdonek
ad4b000179 Issue #14783: Backport changes from 3.2. 2012-10-07 20:37:54 -07:00
Christian Heimes
dfaf90da9c Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases. 2012-09-12 17:58:10 +02:00
Christian Heimes
65a0141e14 Partly revert ad3824a90261 and add comment about reference ownership 2012-09-12 17:52:46 +02:00
Christian Heimes
d8edcb6505 Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641 2012-09-10 13:16:45 +02:00
Christian Heimes
8c1bce00d2 Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases 2012-09-10 03:08:46 +02:00
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.
2012-09-07 23:49:07 +02:00
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.
2012-09-06 00:59:49 +02:00
Stefan Krah
a8857af37b Issue #15741: Fix potential NULL dereference. Found by Coverity. 2012-08-20 17:31:22 +02:00
Antoine Pitrou
c5bef75c77 Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly.
Patch by Serhiy Storchaka.
2012-08-15 23:16:51 +02:00
Matthias Klose
92636bf243 - Issue #15647: Make isdir static for windows and posix 2012-08-14 17:42:45 +02:00
Raymond Hettinger
dee8af225b Fix whitespace 2012-07-20 17:47:59 -07:00
R David Murray
59488d233b Closes #9254: backport __import__ docstring/doc mentions of importlib.
Patch by Éric Araujo.
2012-07-18 19:44:08 -04:00
Meador Inge
0e3755e58a remove unused variable 2012-07-18 17:48:34 -05:00
Meador Inge
b8a569065e Issue #15368: fixing variable typo. 2012-07-18 16:32:37 -05:00
Meador Inge
6642d1f97d Issue #15368: make bytecode generation deterministic. 2012-07-18 14:09:04 -05:00
Martin v. Löwis
ed11a5d018 Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00