| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
|
|
|
| |
Implement PEP 553, built-in breakpoint() with support from sys.breakpointhook(), along with documentation and tests. Closes bpo-31353
|
| |
|
|
|
|
|
|
| |
Fix test_exception_errpipe_bad_data() and
test_exception_errpipe_normal() of test_subprocess: mock os.waitpid()
to avoid calling the real os.waitpid(0, 0) which is an unexpected
side effect of the test.
|
| |
|
|
|
|
| |
unbuffered. (#1667)
|
| |
|
|
|
|
|
| |
when pass a string larger than 2 GiB.
Decrease memory requirements for Tcl's bigmem tests.
|
|
|
|
|
|
| |
Update the compile tests for optimization levels to also check that
__debug__ blocks are included or excluded based on the optimization
level.
Patch by Diana Clarke.
|
|
|
|
|
| |
underscores (#3827)
to integer with binary base.
|
| |
|
|
|
|
| |
On macOS, a process can exit with -SIGKILL if it is killed "early"
with SIGTERM.
|
|
|
|
| |
bpo-31516: current_thread() should not return a dummy thread at shutdown
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-31158: Fix nondeterministic read in test_pty
* Reuse existing readline implementation from io.
Thx to @pitrou
* Updated comment
Ideally, this commit is fixuped into the previous commit. Since there is
already a comment on github, I won't rebase.
|
|
|
|
| |
unicodedata.normalize(). (#3767)
|
| |
|
|
|
|
|
| |
* Allow whitespace inside of ElementPath predicates.
* Add ElementPath predicate support for text comparison of the current node, like "[.='text']".
|
| |
|
|
|
|
|
| |
netrc file format doesn't support quotes and escapes.
See https://linux.die.net/man/5/netrc
|
|
|
|
|
|
|
| |
(#3830)
This was possible before. GH-1560 introduced a regression after 3.6.2 got
released where only sequences were accepted now. This commit addresses this
problem.
|
|
|
|
|
|
|
| |
bad zlib.decompress() (GH-3784)
While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception.
Thanks to Oren Milman for the patch.
|
|
|
|
| |
Add optional argument `compressed` to `zipapp.create_archive`, and add
option `--compress` to the command line interface of `zipapp`.
|
| |
|
|
|
|
| |
bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid.
|
|
|
|
| |
bad __abs__() method. (#3596)
|
|
|
|
|
|
|
|
|
|
| |
Class execution requires that __prepare__() methods return
a proper execution namespace. Check for that immediately
after calling __prepare__(), rather than passing it through
to the code execution machinery and potentially triggering
SystemError (in debug builds) or a cryptic TypeError
(in release builds).
Patch by Oren Milman.
|
|
|
|
| |
iterators. (#1557)
|
|
|
| |
Non-regression tests for the Expat 2.2.3 UTF-8 decoder bug.
|
|
|
|
| |
__name__ global. (#3717)
|
|
|
|
| |
warnings.warn_explicit. (#3219)
|
|
|
| |
now becames exhausted after advancing the groupby iterator.
|
|
|
|
| |
received a bad encoder() argument. (#3643)
|
|
|
|
|
|
|
|
|
|
| |
* Give pdb.set_trace() an optional `header` argument
* What's new.
* Give pdb.set_trace() an optional `header` argument
* What's new.
|
|
|
|
|
| |
(#3631)
Affected classes are bytearray, array, deque, defaultdict, count and repeat.
|
|
|
|
| |
Previously ensurepip would always report success, even if the
pip installation failed.
|
|
|
|
|
|
| |
This fixes a regression from Python 2. To get optional subparsers,
use the new parameter ``add_subparsers(required=False)``.
Patch by Anthony Sottile.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-31479: Always reset the signal alarm in tests
Use "try: ... finally: signal.signal(0)" pattern to make sure that
tests don't "leak" a pending fatal signal alarm.
* Move two more alarm() calls into the try block
Fix also typo: replace signal.signal(0) with signal.alarm(0)
* Move another signal.alarm() into the try block
|
| |
|
|
|
|
| |
bad as_integer_ratio() method. (#3227)
|
|
|
|
| |
is not a string. (#3257)
|
|
|
|
| |
attribute. (#3620)
|
|
|
|
|
|
| |
* Trivial cleanups following bpo-31370
* Also cleanup the "importlib._bootstrap_external" module
|
|
|
|
| |
(#3648)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash
xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a
crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously
by the garbage collector, because the parser was part of a reference cycle.
Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
| |
bpo-31482: Missing bytes support for random.seed() version 1 #3614
|
|
|
| |
Signed-off-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
| |
Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and
PROTOCOL_TLS_SERVER.
Signed-off-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
|
|
| |
SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and
SSLSocket as return types. In the light of future deprecation of
ssl.wrap_socket() module function and direct instantiation of SSLSocket,
it is desirable to make the return type of SSLSocket.wrap_bio() and
SSLSocket.wrap_socket() customizable.
Signed-off-by: Christian Heimes <christian@python.org>
|
|
|
|
| |
Give 30 seconds to join_process(), instead of 5 or 10 seconds, to
wait until the process completes.
|