Benjamin Peterson
a4e4e35783
check by equality for __future__ not identity ( closes #14378 )
14 years ago
Gregory P. Smith
c809f98143
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
0f4c16e29c
- rename configure.in to configure.ac
- change references from configure.in to configure.ac
14 years ago
Ned Deily
7ca97d5208
Issue #14184 : Increase the default stack size for secondary threads on
Mac OS X to prevent interpreter crashes when compiled on 10.7.
14 years ago
Benjamin Peterson
3f3584695e
kill this disabled code
14 years ago
Benjamin Peterson
bc4665ebcb
use correct naming convention
14 years ago
Antoine Pitrou
4a90ef0363
Issue #14177 : marshal.loads() now raises TypeError when given an unicode string.
Patch by Guilherme Gonçalves.
14 years ago
Antoine Pitrou
679e9d36f7
Issue #14172 : Fix reference leak when marshalling a buffer-like object (other than a bytes object).
14 years ago
Antoine Pitrou
4f22a8d739
Issue #14084 : Fix a file descriptor leak when importing a module with a bad encoding.
14 years ago
Antoine Pitrou
7214612443
In find_module(), do not silence fileno() and dup() errors.
14 years ago
Antoine Pitrou
86838b02f0
Fix test failure in test_cmd_line by initializing the hash secret at the earliest point.
14 years ago
Benjamin Peterson
69e9727657
ensure no one tries to hash things before the random seed is found
14 years ago
Georg Brandl
91e5c08fe8
Fix typo in conditional.
14 years ago
Georg Brandl
12897d7d39
Fix typo in conditional.
14 years ago
Georg Brandl
2daf6ae249
Issue #13703 : add a way to randomize the hash values of 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.
14 years ago
Petri Lehtinen
9713321f46
Document absoluteness of sys.executable
Closes #13402 .
14 years ago
Antoine Pitrou
33d15f7c85
Port import fixes from 2.7.
14 years ago
Antoine Pitrou
2be60afb7e
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
Antoine Pitrou
1b468af7be
Issue #13722 : Avoid silencing ImportErrors when initializing the codecs registry.
14 years ago
Antoine Pitrou
6c40eb7f42
Fix the builtin module initialization code to store the init function for future reinitialization.
14 years ago
Antoine Pitrou
2fabface50
Fix a memory leak when initializing the standard I/O streams.
14 years ago
Meador Inge
3388060127
Issue #13629 : Renumber the tokens in token.h to match the _PyParser_TokenNames indexes.
14 years ago
Benjamin Peterson
0010256de4
fold into one if statement
14 years ago
Benjamin Peterson
a12d5c62f7
fix formatting
14 years ago
Benjamin Peterson
f606e682a4
add another year to glorious PSF IP
14 years ago
Florent Xicluna
5126df602c
Remove obsolete py3k comment.
14 years ago
Antoine Pitrou
11942a58a1
Issue #7111 : Python can now be run without a stdin, stdout or stderr stream.
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).
14 years ago
Antoine Pitrou
d7c8fbf89e
Issue #13444 : When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.
This also adds a test for issue #5319 , whose resolution introduced the issue.
14 years ago
Amaury Forgeot d'Arc
5e8f810411
Issue #13436 : commit regenerated Python-ast.c
14 years ago
Charles-François Natali
a233df885b
Issue #13156 : _PyGILState_Reinit(): Re-associate the auto thread state with the
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).
14 years ago
Antoine Pitrou
0d776b1ce8
Issue #13342 : input() used to ignore sys.stdin's and sys.stdout's unicode
error handler in interactive mode (when calling into PyOS_Readline()).
14 years ago
Amaury Forgeot d'Arc
97c1bef6a4
Issue #13343 : Fix a SystemError when a lambda expression uses a global
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)
14 years ago
Éric Araujo
5df1108de2
Add signatures to the docstring of functions added to imp by PEP 3147
14 years ago
Antoine Pitrou
8db076cf8a
Issue #10363 : Deallocate global locks in Py_Finalize().
14 years ago
Florent Xicluna
4d46c2a722
Remove unused variable.
14 years ago
Nick Coghlan
de31b191e5
Issue 1294232: Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban.
14 years ago
Victor Stinner
53ffdc53bf
Issue #7732 : Don't open a directory as a file anymore while importing a
module. Ignore the direcotry if its name matchs the module name (e.g.
"__init__.py") and raise a ImportError instead.
14 years ago
Barry Warsaw
916048d780
- Issue #13021 : Missing decref on an error path. Thanks to Suman Saha for
finding the bug and providing a patch.
14 years ago
Victor Stinner
1619132e5d
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.
14 years ago
Victor Stinner
0af0306396
Remove unused variable if Python is build without threads
15 years ago
Benjamin Peterson
0224d4e699
accept bytes for the AST 'string' type
This is a temporary kludge and all is well in 3.3.
15 years ago
Benjamin Peterson
4058211e8d
accept bytes for the AST 'string' type
This is a temporary kludge and all is well in 3.3.
15 years ago
Éric Araujo
6c0ba447bd
Fix style in code added by edba722f3b02
15 years ago
Antoine Pitrou
cf9d3c08c8
Issue #1813 : Fix codec lookup under Turkish locales.
15 years ago
Benjamin Peterson
180e63507d
None is ok for identifiers but not strings
15 years ago
Benjamin Peterson
efad2449fc
hardcode the old svn __version__
15 years ago
Benjamin Peterson
2193d2b72b
type check AST strings and identifiers
This is related to a21829180423 as well as #12609 and #12610 .
15 years ago
Benjamin Peterson
5afa03a72e
catch nasty exception classes with __new__ that doesn't return a exception ( closes #11627 )
Patch from Andreas Stührk.
15 years ago
Benjamin Peterson
bb4a747b69
start out this branch always with filename NULL
15 years ago
Benjamin Peterson
a55007a620
plug refleak
15 years ago