summaryrefslogtreecommitdiff
path: root/Python
AgeCommit message (Collapse)AuthorLines
2012-03-22check by equality for __future__ not identity (closes #14378)Benjamin Peterson-8/+2
2012-03-18Fixes Issue #14331: Use significantly less stack space when importing modules byGregory P. Smith-39/+127
allocating path buffers on the heap instead of the stack.
2012-03-13Issue #14184: Increase the default stack size for secondary threads onNed Deily-8/+12
Mac OS X to prevent interpreter crashes when compiled on 10.7.
2012-03-12kill this disabled codeBenjamin Peterson-6/+0
2012-03-12use correct naming conventionBenjamin Peterson-2/+2
2012-03-03Issue #14177: marshal.loads() now raises TypeError when given an unicode string.Antoine Pitrou-4/+4
Patch by Guilherme Gonçalves.
2012-03-02Issue #14172: Fix reference leak when marshalling a buffer-like object ↵Antoine Pitrou-4/+4
(other than a bytes object).
2012-02-22Issue #14084: Fix a file descriptor leak when importing a module with a bad ↵Antoine Pitrou-1/+3
encoding.
2012-02-22In find_module(), do not silence fileno() and dup() errors.Antoine Pitrou-0/+2
2012-02-21Fix test failure in test_cmd_line by initializing the hash secret at the ↵Antoine Pitrou-2/+10
earliest point.
2012-02-21merge 3.2Benjamin Peterson-4/+8
2012-02-21ensure no one tries to hash things before the random seed is foundBenjamin Peterson-4/+8
2012-02-20Fix typo in conditional.Georg Brandl-1/+1
2012-02-20Fix typo in conditional.Georg Brandl-1/+1
2012-02-20Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl-2/+314
basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
2012-02-20Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl-2/+314
bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
2012-02-02Document absoluteness of sys.executablePetri Lehtinen-1/+1
Closes #13402.
2012-01-25Port import fixes from 2.7.Antoine Pitrou-10/+10
2012-01-24Issue #11235: Fix OverflowError when trying to import a source file whose ↵Antoine Pitrou-7/+4
modification time doesn't fit in a 32-bit timestamp.
2012-01-18Issue #13722: Avoid silencing ImportErrors when initializing the codecs ↵Antoine Pitrou-9/+0
registry.
2012-01-18Fix the builtin module initialization code to store the init function for ↵Antoine Pitrou-0/+4
future reinitialization.
2012-01-18Fix a memory leak when initializing the standard I/O streams.Antoine Pitrou-1/+2
2012-01-15Issue #13629: Renumber the tokens in token.h to match the ↵Meador Inge-15/+15
_PyParser_TokenNames indexes.
2012-01-11fold into one if statementBenjamin Peterson-3/+1
2012-01-03fix formattingBenjamin Peterson-1/+1
2011-12-31add another year to glorious PSF IPBenjamin Peterson-1/+1
2011-12-09Remove obsolete py3k comment.Florent Xicluna-1/+0
2011-11-28Issue #7111: Python can now be run without a stdin, stdout or stderr stream.Antoine Pitrou-15/+16
It was already the case with Python 2. However, the corresponding sys module entries are now set to None (instead of an unusable file object).
2011-11-26Issue #13444: When stdout has been closed explicitly, we should not attempt ↵Antoine Pitrou-2/+18
to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue.
2011-11-22Issue #13436: commit regenerated Python-ast.cAmaury Forgeot d'Arc-5/+1
2011-11-22Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with theCharles-François Natali-4/+5
TLS key only if the thread that called fork() had an associated auto thread state (this might not be the case for example for a thread created outside of Python calling into a subinterpreter).
2011-11-06Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicodeAntoine Pitrou-42/+41
error handler in interactive mode (when calling into PyOS_Readline()).
2011-11-04Issue #13343: Fix a SystemError when a lambda expression uses a globalAmaury Forgeot d'Arc-0/+3
variable in the default value of a keyword-only argument: (lambda *, arg=GLOBAL_NAME: None)
2011-11-03Add signatures to the docstring of functions added to imp by PEP 3147Éric Araujo-2/+4
2011-10-30Issue #10363: Deallocate global locks in Py_Finalize().Antoine Pitrou-10/+21
2011-10-28Remove unused variable.Florent Xicluna-2/+1
2011-10-23Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵Nick Coghlan-2/+28
metaclass inheritance. Patch by Daniel Urban.
2011-09-23Issue #7732: Don't open a directory as a file anymore while importing aVictor Stinner-1/+8
module. Ignore the direcotry if its name matchs the module name (e.g. "__init__.py") and raise a ImportError instead.
2011-09-20- Issue #13021: Missing decref on an error path. Thanks to Suman Saha forBarry Warsaw-1/+3
finding the bug and providing a patch.
2011-09-15Fix the import machinery if there is an error on sys.path or sys.meta_pathVictor Stinner-4/+4
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-02Remove unused variable if Python is build without threadsVictor Stinner-0/+2
2011-08-31accept bytes for the AST 'string' typeBenjamin Peterson-1/+1
This is a temporary kludge and all is well in 3.3.
2011-07-26Fix style in code added by edba722f3b02Éric Araujo-3/+3
2011-07-24Issue #1813: Fix codec lookup under Turkish locales.Antoine Pitrou-1/+1
2011-07-22None is ok for identifiers but not stringsBenjamin Peterson-10/+8
2011-07-22hardcode the old svn __version__Benjamin Peterson-2/+2
2011-07-22type check AST strings and identifiersBenjamin Peterson-4/+21
This is related to a21829180423 as well as #12609 and #12610.
2011-07-15catch nasty exception classes with __new__ that doesn't return a exception ↵Benjamin Peterson-0/+7
(closes #11627) Patch from Andreas Stührk.
2011-07-04start out this branch always with filename NULLBenjamin Peterson-1/+1
2011-07-03plug refleakBenjamin Peterson-0/+1