Benjamin Peterson
7c0b44ec17
move outside WITH_THREAD conditional
2012-04-13 18:06:36 -04:00
Benjamin Peterson
6688eb536a
take linkage def outside of WITH_THREAD conditional ( closes #14569 )
2012-04-13 11:58:27 -04:00
Benjamin Peterson
b9348e76e4
fix parse_syntax_error to clean up its resources
2012-04-03 00:30:38 -04:00
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
2012-03-22 16:35:37 +00:00
Benjamin Peterson
219a05094b
this should technicaly be identifier
2012-03-22 10:39:16 -04:00
Benjamin Peterson
e90cdaa185
check for NULL
2012-03-22 08:56:15 -04:00
Benjamin Peterson
eff19a13ed
check by equality for __future__ not identity ( closes #14378 )
2012-03-22 08:19:04 -04:00
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.
2012-03-18 16:07:10 -07:00
Matthias Klose
3cef2a931c
- rename configure.in to configure.ac
...
- change references from configure.in to configure.ac
2012-03-14 23:39:33 +01:00
Jason R. Coombs
0e17dfbdcf
Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.
2012-03-08 09:56:00 -05:00
Jason R. Coombs
0737b7281e
Fix indentation
2012-01-13 17:59:05 -05:00
Jason R. Coombs
fa93cf8e3e
Extracted Windows directory detection from NullImporter.__init__. This greatly simplifies the code and fixes issue6727.
2012-01-13 17:37:18 -05:00
Jason R. Coombs
925ff7495b
Moved directory detection into an isdir function
2012-01-13 17:12:25 -05:00
Antoine Pitrou
cc3fa88a9c
Fix crash at startup with -W options.
2012-02-21 20:42:48 +01:00
Benjamin Peterson
9d7601fcea
merge 2.6
2012-02-21 11:24:21 -05:00
Benjamin Peterson
26da920001
ensure no one tries to hash things before the random seed is found
2012-02-21 11:08:50 -05:00
Benjamin Peterson
aee9dfba4a
merge 2.6 with hash randomization fix
2012-02-20 21:44:56 -05:00
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.
2012-02-20 20:42:21 -05:00
Petri Lehtinen
fe6f9d0edc
Document absoluteness of sys.executable
...
Closes #13402 .
2012-02-02 21:26:05 +02:00
Antoine Pitrou
6f25d75f25
Remove debug output, fix assert (hopefully) and exercise signedness issues a bit more.
2012-01-25 15:38:32 +01:00
Antoine Pitrou
b744cef654
Fix temporary debug output (so, time_t is 8 bytes on some Windows builds)
2012-01-25 14:57:56 +01:00
Antoine Pitrou
11cc480ed0
Temporary debug for Windows buildbots.
2012-01-25 14:39:21 +01:00
Antoine Pitrou
0e5fd59a27
Make guard more dynamic (apparently the size of a filesystem timestamp may vary under Windows).
2012-01-25 03:31:39 +01:00
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.
2012-01-24 17:44:06 +01:00
Benjamin Peterson
5f8d60647b
add another year to glorious PSF IP
2011-12-31 22:42:26 -06:00
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.
2011-12-07 21:46:48 +01:00
Benjamin Peterson
a5ae1f0c25
remove py3k warning for callable
2011-11-06 08:20:12 -05:00
Benjamin Peterson
0c0d756098
don't let a tuple msg be interpreted as arguments to AssertionError ( closes #13268 )
2011-10-27 08:21:59 -04:00
Charles-François Natali
46180751e9
Merge.
2011-10-12 21:10:02 +02:00
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).
2011-10-12 21:07:54 +02:00
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).
2011-09-23 19:37:03 +02:00
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.
2011-09-15 19:45:53 +02:00
Victor Stinner
871a0fbf46
Remove unused variable if Python is build without threads
2011-09-02 00:21:36 +02:00
Antoine Pitrou
4cfae027b3
Issue #1813 : Fix codec lookup and setting/getting locales under Turkish locales.
2011-07-24 02:51:01 +02:00
Benjamin Peterson
5eed3062f5
allow None identifiers
2011-07-22 17:20:58 -05:00
Benjamin Peterson
77820242dd
verify the types of AST strings and identifiers ( closes #12609 and #12610 )
2011-07-22 10:39:50 -05:00
Raymond Hettinger
39540a0226
Improve docstring for divmod()
2011-07-19 11:59:20 -07:00
Benjamin Peterson
c3349cd22e
port 8d05f697acd4 ( #11627 )
2011-07-15 14:15:40 -05:00
Victor Stinner
ba8b3a2ca7
Close #12501 : Adjust callable() warning: callable() is only not supported in
...
Python 3.1. callable() is again supported in Python 3.2.
2011-07-08 02:07:45 +02:00
Benjamin Peterson
4833c98f85
start out this branch always with filename NULL
2011-07-04 22:27:16 -05:00
Benjamin Peterson
9b6c60530b
plug refleak
2011-07-03 22:18:34 -05:00
Victor Stinner
65c153547b
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 03:05:37 +02:00
Raymond Hettinger
19b851d11b
sys.checkinterval() now refreshes the current countdown ticker.
2011-06-01 18:21:42 -07:00
Ned Deily
482f908410
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:11:54 -07:00
Barry Warsaw
cf0d8ab818
Replay changeset 70238:03e488b5c009 from fubar branch. Original commit
...
message:
Reconcile with the 2.6svn branch. The 2.6.7 release will be made from
Subversion, but there were differences, so this brings them in sync. These
changes should *not* propagate to any newer versions.
2011-05-23 15:22:56 -04:00
Georg Brandl
11041f0af9
Port #6498 fix: fix several misspellings of "SystemExit" as "SystemError".
2011-05-15 08:50:32 +02:00
Victor Stinner
0a92d1849e
Issue #8651 : PyArg_Parse*() functions raise an OverflowError if the file
...
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length
bigger than 2^31-1 bytes).
2011-05-03 15:09:24 +02:00
Victor Stinner
645b9f67ae
Issue #8651 : Fix "z#" format of PyArg_Parse*() function: the size was not
...
written if PY_SSIZE_T_CLEAN is defined.
2011-05-03 15:06:11 +02:00
Antoine Pitrou
4394e0db24
Issue #10517 : After fork(), reinitialize the TLS used by the PyGILState_*
...
APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch
by Charles-François Natali.
2011-04-27 19:20:48 +02:00
Ezio Melotti
c283a85e12
Issue #5057 : fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. u"\U00012345"[0]).
2011-04-15 16:14:04 +03:00