Jason R. Coombs
0737b7281e
Fix indentation
15 years ago
Jason R. Coombs
fa93cf8e3e
Extracted Windows directory detection from NullImporter.__init__. This greatly simplifies the code and fixes issue6727.
15 years ago
Jason R. Coombs
925ff7495b
Moved directory detection into an isdir function
15 years ago
Benjamin Peterson
5f8d60647b
add another year to glorious PSF IP
15 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.
15 years ago
Benjamin Peterson
a5ae1f0c25
remove py3k warning for callable
15 years ago
Benjamin Peterson
0c0d756098
don't let a tuple msg be interpreted as arguments to AssertionError ( closes #13268 )
15 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).
15 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
Benjamin Peterson
5eed3062f5
allow None identifiers
15 years ago
Benjamin Peterson
77820242dd
verify the types of AST strings and identifiers ( closes #12609 and #12610 )
15 years ago
Raymond Hettinger
39540a0226
Improve docstring for divmod()
15 years ago
Benjamin Peterson
c3349cd22e
port 8d05f697acd4 ( #11627 )
15 years ago
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.
15 years ago
Benjamin Peterson
4833c98f85
start out this branch always with filename NULL
15 years ago
Benjamin Peterson
9b6c60530b
plug refleak
15 years ago
Victor Stinner
65c153547b
Issue #12467 : warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.
15 years ago
Raymond Hettinger
19b851d11b
sys.checkinterval() now refreshes the current countdown ticker.
15 years ago
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)
15 years ago
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.
15 years ago
Georg Brandl
11041f0af9
Port #6498 fix: fix several misspellings of "SystemExit" as "SystemError".
15 years ago
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).
15 years ago
Victor Stinner
645b9f67ae
Issue #8651 : Fix "z#" format of PyArg_Parse*() function: the size was not
written if PY_SSIZE_T_CLEAN is defined.
15 years ago
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.
15 years ago
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]).
15 years ago
Ned Deily
04cb72f968
Issue9670: Back out changeset b0d2b696da19; test fails on other platforms
and on OS X with pydebug.
15 years ago
Ned Deily
e427f0f432
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)
15 years ago
Benjamin Peterson
7859d4098c
remove this dead subversion code
15 years ago
Martin v. Löwis
ce5d0e22fc
Set subversion version identification to empty strings if this is not a subversion
checkout (but a mercurial one). Closes #11579 . Closes #11421 .
Patch by Senthil Kumaran.
15 years ago
Ezio Melotti
c2077b0d9b
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
15 years ago
Ezio Melotti
24b07bcba3
#11515 : fix several typos. Patch by Piotr Kasprzyk.
15 years ago
Georg Brandl
3a5508e2c0
Port build identification from default branch.
15 years ago
Georg Brandl
1ca2e7965c
Commit the hg build identification patch from the pymigr repo.
15 years ago
Georg Brandl
94800df632
Merged revisions 88430,88438,88440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88430 | georg.brandl | 2011-02-15 20:48:59 +0100 (Di, 15 Feb 2011) | 1 line
#730467 : Another small AIX fix.
........
r88438 | georg.brandl | 2011-02-19 09:44:47 +0100 (Sa, 19 Feb 2011) | 1 line
#10709 : add back an updated AIX-NOTES (as README.AIX).
........
r88440 | georg.brandl | 2011-02-19 09:58:23 +0100 (Sa, 19 Feb 2011) | 1 line
#11184 : Fix large file support on AIX.
........
16 years ago
Georg Brandl
3f0df3bc51
Merged revisions 88430 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r88430 | georg.brandl | 2011-02-15 20:48:59 +0100 (Di, 15 Feb 2011) | 1 line
#730467 : Another small AIX fix.
........
16 years ago
Victor Stinner
02bfdb3f79
Merged revisions 88530 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88530 | victor.stinner | 2011-02-23 13:07:37 +0100 (mer., 23 févr. 2011) | 4 lines
Issue #11272 : Fix input() and sys.stdin for Windows newline
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').
........
16 years ago
Georg Brandl
59e87bd251
#730467 : Another small AIX fix.
16 years ago
Antoine Pitrou
6a002c02da
Fix the GIL with subinterpreters. Hopefully this will allow mod_wsgi to work with 3.2.
(we need some tests for this)
16 years ago
David Malcolm
4c29e1cd01
Merged revisions 87796 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87796 | david.malcolm | 2011-01-06 12:01:36 -0500 (Thu, 06 Jan 2011) | 6 lines
Issue #10655 : Fix the build on PowerPC on Linux with GCC when building with
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC
support now looks for "__powerpc__" as well as "__ppc__": the latter seems to
only be present on OS X; the former is the correct one for Linux with GCC.
........
16 years ago
David Malcolm
8ad4cd90e9
Merged revisions 87796 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87796 | david.malcolm | 2011-01-06 12:01:36 -0500 (Thu, 06 Jan 2011) | 6 lines
Issue #10655 : Fix the build on PowerPC on Linux with GCC when building with
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC
support now looks for "__powerpc__" as well as "__ppc__": the latter seems to
only be present on OS X; the former is the correct one for Linux with GCC.
........
16 years ago
David Malcolm
f1397ad399
Issue #10655 : Fix the build on PowerPC on Linux with GCC when building with
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC
support now looks for "__powerpc__" as well as "__ppc__": the latter seems to
only be present on OS X; the former is the correct one for Linux with GCC.
16 years ago
Raymond Hettinger
90e8f8cd9b
Fix count of flag fields. Being one short caused the 'quiet' option not to print.
16 years ago
Victor Stinner
0fcab4a3ed
Issue #9566 : use Py_ssize_t instead of int
16 years ago
Victor Stinner
6ab8e8298e
Issue #8992 : convertsimple() doesn't need to fill msgbuf if an error occurred
Return msgbug on error is enough.
16 years ago
Victor Stinner
a093d0d6a9
Issue #8992 : Simplify addcleanup() API
Don't need to handle unknown destructor anymore.
16 years ago
Victor Stinner
b3c9e073fc
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).
16 years ago
Benjamin Peterson
beef5dcf77
Merged revisions 87607 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87607 | benjamin.peterson | 2011-01-01 08:28:31 -0600 (Sat, 01 Jan 2011) | 1 line
update copyright to 2011
........
16 years ago