| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
now register both filenames in the exception on failure.
This required adding new C API functions allowing OSError exceptions
to reference two filenames instead of one.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The new syntax is highly human readable while still preventing false
positives. The syntax also extends Python syntax to denote "self" and
positional-only parameters, allowing inspect.Signature objects to be
totally accurate for all supported builtins in Python 3.4.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- io.TextIOWrapper (and hence the open() builtin) now use the
internal codec marking system added for issue #19619
- also tweaked the C code to only look up the encoding once,
rather than multiple times
- the existing output type checks remain in place to deal with
unmarked third party codecs.
|
| |
| |
| |
| |
| | |
including correctly generating code for Clinic blocks inside C
preprocessor conditional blocks.
|
| |
| |
| |
| | |
caused a crash on PowerPC 64-bit (ppc64).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
annotate text signatures in docstrings, resulting in fewer false
positives. "self" parameters are also explicitly marked, allowing
inspect.Signature() to authoritatively detect (and skip) said parameters.
Issue #20326: Argument Clinic now generates separate checksums for the
input and output sections of the block, allowing external tools to verify
that the input has not changed (and thus the output is not out-of-date).
|
| |
| |
| |
| |
| |
| | |
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
|
|\ \
| |/
| |
| |
| | |
cases when multibyte characters are in line (before "^"). This still not
works correctly with wide East Asian characters.
|
| |
| |
| |
| |
| | |
cases when multibyte characters are in line (before "^"). This still not
works correctly with wide East Asian characters.
|
| |
| |
| |
| | |
building an item if the build of a previous item failed.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
__init__ functions.
|
| |
| |
| |
| | |
delaying its output or even redirecting it to a separate file.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
This code was an artifact of issuing a DeprecationWarning for the lack
of loader.exec_module(). However, we have deferred such warnings to
later Python versions.
|
| |
| |
| |
| | |
format unit.
|
| | |
|
| | |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
no parameter
|
| |
| |
| |
| | |
the exception to not call open() with an exception set.
|
| |
| |
| |
| |
| |
| |
| | |
Early in the PEP 451 implementation some of the importlib loaders had
their own _get_spec() methods to simplify accommodating them. However,
later implementations removed the need. They simply failed to remove
this code at the same time. :)
|
|\ \
| |/
| |
| |
| | |
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
|
| |
| |
| |
| |
| | |
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In Python 3.3, PyThread_set_key_value() did nothing if the key already exists
(if the current value is a non-NULL pointer).
When _PyGILState_NoteThreadState() is called twice on the same thread with a
different Python thread state, it still keeps the old Python thread state to
keep the old behaviour. Replacing the Python thread state with the new state
introduces new bugs: see issues #10915 and #15751.
|
| |
| |
| |
| | |
test_capi is failing and the fix is not trivial, I prefer to revert
|
| |
| |
| |
| |
| |
| |
| |
| | |
the function did nothing if the key already exists (if the current value is a
non-NULL pointer).
_testcapi.run_in_subinterp() now correctly sets the new Python thread state of
the current thread when a subinterpreter is created.
|
| |
| |
| |
| |
| |
| |
| | |
crash when a generator is created in a C thread that is destroyed while the
generator is still used. The issue was that a generator contains a frame, and
the frame kept a reference to the Python state of the destroyed C thread. The
crash occurs when a trace function is setup.
|
| |
| |
| |
| |
| |
| | |
has no concrete GIL. If PyGILState_Ensure() is called from a new thread for the
first time and PyEval_InitThreads() was not called yet, a GIL needs to be
created.
|
| | |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
autological-constant-out-of-range-compare warnings with clang.
|
| |
| |
| |
| |
| |
| | |
tracemalloc in objects destructor
Replace atexit handler with an harcoded C function _PyTraceMalloc_Fini().
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
module loaders.
Due to the fact that the call signatures for extension modules and
built-in modules does not allow for the specifying of what module to
initialize and that on Windows all extension modules are built-in
modules, work to clean up built-in and extension module initialization
will have to wait until Python 3.5. Because of this the semantics of
exec_module() would be incorrect, so removing the methods for now is
the best option; load_module() is still used as a fallback by
importlib and so this won't affect semantics.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
character strings to float.
|
| |
| |
| |
| |
| |
| |
| |
| | |
written in C.
As a part of this, a few doctests have been added to the builtins module
(on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all
platforms) on float, and test_builtins now runs doctests in builtins.
|