Benjamin Peterson
efad2449fc
hardcode the old svn __version__
15 years ago
Benjamin Peterson
76f7f4d979
excise the remains of STOP_CODE, which hasn't done anything useful for years
15 years ago
Brett Cannon
52a7d98273
Make warnings accept a callable for showwarnings instead of
restricting itself to just functions and methods (which allows
built-in functions to be used, etc.).
Closes issue #10271 . Thanks to lekma for the bug report.
15 years ago
Benjamin Peterson
0bd152cd67
remove ast.__version__ ( closes #12273 )
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
Victor Stinner
ecf4fdad50
Py_BuildValue("C") supports non-BMP characters on narrow build
Py_BuildValue("C") doesn't have to check the code point,
PyUnicode_FromOrdinal() checks its input and now supports non-BMP characters
(range U+10000-U+10FFFF).
15 years ago
Antoine Pitrou
370092071b
Issue #11863 : Remove support for legacy systems deprecated in Python 3.2
(following PEP 11). These systems are systems using Mach C Threads,
SunOS lightweight processes, GNU pth threads and IRIX threads.
15 years ago
Antoine Pitrou
022ae22cc6
Issue #11863 : remove unused file Python/thread_wince.h
15 years ago
Benjamin Peterson
bb4a747b69
start out this branch always with filename NULL
15 years ago
Victor Stinner
87e78ce1c6
Issue #12469 : partial revert of 024827a9db64, freebsd6 thread initialization
* Don't create a thread at startup anymore to initialize the pthread library:
it changes the behaviour of many functions related to signal handling like
sigwait()
* Reenable test_sigtimedwait_poll() on FreeBSD 6
15 years ago
Victor Stinner
99b9538636
Issue #9642 : Uniformize the tests on the availability of the mbcs codec
Add a new HAVE_MBCS define.
15 years ago
Victor Stinner
d64e8a75e5
Issue #9642 : Fix filesystem encoding initialization: use the ANSI code page on
Windows if the mbcs codec is not available, and fail with a fatal error if we
cannot get the locale encoding (if nl_langinfo(CODESET) is not available)
instead of using UTF-8.
15 years ago
Benjamin Peterson
a55007a620
plug refleak
15 years ago
Victor Stinner
b1b25f0ffd
Issue #12467 : warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.
15 years ago
Victor Stinner
8b0508ed4e
Issue #12467 : warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.
15 years ago
Benjamin Peterson
9bfd0dee9b
no one passes NULL here (or should anyway)
15 years ago
Benjamin Peterson
878802435d
convert generator exc state functions into static functions
15 years ago
Benjamin Peterson
ac91341333
never retain a generator's caller's exception state on the generator after a yield/return
This requires some trickery to properly save the exception state if the
generator creates its own exception state.
15 years ago
Benjamin Peterson
83195c3f0c
restore a generator's caller's exception state both on yield and (last) return
This prevents generator exception state from leaking into the caller.
Closes #12475 .
15 years ago
Vinay Sajip
aac0f75b3b
Correct uninitialized data problem in marshal code.
15 years ago
Vinay Sajip
623e8b86af
Removed some unused local variables.
15 years ago
Vinay Sajip
3232284391
Removed breaking typo accidentally introduced during merge with 3.2.
15 years ago
Vinay Sajip
5bdae3bb7c
Closes #12291 : Fixed bug which was found when doing multiple loads from one stream.
15 years ago
Benjamin Peterson
9d872e19aa
fix possibily uninitialized memory usage ( closes #12474 )
15 years ago
Benjamin Peterson
609da58ae5
store the current scope on the stack right away
15 years ago
Benjamin Peterson
c2575d55cd
remove VISIT_*_IN_BLOCK macros
These are pointless because on error, all blocks will be finalized by
symtable_dealloc.
15 years ago
Benjamin Peterson
9003760991
map cells to arg slots at code creation time ( closes #12399 )
This removes nested loops in PyEval_EvalCodeEx.
15 years ago
Victor Stinner
e71db4450c
Issue #12392 : fix thread initialization on FreeBSD 6
On FreeBSD6, pthread_kill() doesn't work on the main thread before the creation
of the first thread. Create therefore a dummy thread (no-op) a startup to
initialize the pthread library.
Add also a test for this use case, test written by Charles-François Natali.
15 years ago
Benjamin Peterson
e109c70860
give the names of missing positional or keyword-only arguments ( closes #12356 )
15 years ago
Benjamin Peterson
b7149cad04
fix indentation
15 years ago
Benjamin Peterson
f63d615f8b
fix indentation
15 years ago
Victor Stinner
d417d01ec8
call_find_module() handles dup() failure: raise an OSError exception
15 years ago
Victor Stinner
925ef39949
find_module_path_list() fails if _Py_fopen() failed and raised an exception
(UnicodeEncodeError).
15 years ago
Benjamin Peterson
e7c15fa184
bump magic for super closure change
15 years ago
Benjamin Peterson
f5ff22329b
use a invalid name for the __class__ closure for super() ( closes #12370 )
This prevents the assignment of __class__ in the class body from breaking
super. (Although a determined person could do locals()["@__class__"] = 4)
15 years ago
Brian Curtin
589f89e2ad
Removed a Windows 9x trick used before LoadLibraryExW.
Windows 9x has long been unsupported and the result of GetFullPathName
was not even being used in the first place.
15 years ago
Benjamin Peterson
b204a42383
greatly improve argument parsing error messages ( closes #12265 )
15 years ago
Benjamin Peterson
48deae12d5
some horrible preprocessing tricks to automatically update the tag
15 years ago
Benjamin Peterson
04a90b4611
bump ast version
15 years ago
Benjamin Peterson
43af12b0b4
unify TryExcept and TryFinally ( closes #12199 )
15 years ago
Ned Deily
9a7c524dc6
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
0a5dad9ef1
fix spacing
15 years ago
Benjamin Peterson
74897ba46f
fix indentation
15 years ago
Benjamin Peterson
7f670e5dad
bump ast version
15 years ago
Benjamin Peterson
bf1bbc1452
reflect with statements with multiple items in the AST ( closes #12106 )
15 years ago
Victor Stinner
4f2dab5c33
Revert my commit 7ba176c2f558: "Avoid useless "++" at the end of functions
Warnings found by the Clang Static Analyzer."
Most people prefer ++ at the end of functions.
15 years ago
Benjamin Peterson
43b068648e
try to use the same str object for all code filenames when compiling or unmarshalling ( #12190 )
This should reduce memory usage.
15 years ago
Benjamin Peterson
d408503b2c
remove unused string WILFE attribute
15 years ago
Victor Stinner
13b21bd749
print_exception(): handle correctly PyObject_GetAttrString() failure
Bug found by the Clang Static Analyzer.
15 years ago
Victor Stinner
97e561ef24
Avoid useless "++" at the end of functions
Warnings found by the Clang Static Analyzer.
15 years ago