| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| | |
(GH-11757)
|
| |
| |
| | |
https://bugs.python.org/issue36007
|
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt.
This patch fixes this by pre-compiling the code before passing it to `Pdb.run`.
https://bugs.python.org/issue35931
|
| |
| |
| |
| | |
Add credit for the cert parser vulnerability. Mention also Cisco
TALOS-2018-0758 identifier.
|
| |
| |
| | |
This change adds the necessary items to the build projects to avoid erroring out right at the start. It does not add _support_ for targeting Windows on ARM32, but is a necessary prerequisite for adding it.
|
| |
| |
| |
| | |
(GH-11849)
|
| |
| |
| |
| | |
message. (GH-11804)
|
| |
| |
| |
| |
| |
| |
| |
| | |
Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.
The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
|
| | |
|
| |
| |
| |
| |
| |
| | |
port (GH-11823)
Make test_imap4_host_default_value independent on whether the
local IMAP server is running.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Changes in this commit:
1. Use a _strong_ reference between the Pool and associated iterators
2. Rework PR #8450 to eliminate a cycle in the Pool.
There is no test in this commit because any test that automatically tests this behaviour needs to eliminate the pool before joining the pool to check that the pool object is garbaged collected/does not hang. But doing this will potentially leak threads and processes (see https://bugs.python.org/issue35413).
|
| |
| |
| |
| |
| |
| | |
Original patch by Mike Short
https://bugs.python.org/issue22062
|
| |
| |
| | |
Add a code example block.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Protect dict iterations by wrapping them with _IterationGuard in the
following methods:
- WeakValueDictionary.copy()
- WeakValueDictionary.__deepcopy__()
- WeakKeyDictionary.copy()
- WeakKeyDictionary.__deepcopy__()
|
| |
| |
| |
| | |
Add a cell constructor, expose the cell type in the types module.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
- update doc examples
- force AF_INET6 if hybrid_ipv46=True
- add new functions to __all__
- add more tests
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
address based on the bind parameter. (#11767)
In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter.
As a result, now IPv6 is used as the default (including IPv4 on dual-stack systems). Enhanced tests.
|
|
|
|
| |
multiprocessing: provide unittests for manager classes and shareable types
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* bpo-35321: Set the spec origin to frozen in frozen modules
This fix correctly sets the spec origin to
"frozen" for the _frozen_importlib module. Note that the
origin was already correctly set in _frozen_importlib_external.
* 📜🤖 Added by blurb_it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Make timedelta return subclass types
Previously timedelta would always return the `date` and `datetime`
types, regardless of what it is added to. This makes it return
an object of the type it was added to.
* Add tests for timedelta arithmetic on subclasses
* Make pure python timedelta return subclass types
* Add test for fromtimestamp with tz argument
* Add tests for subclass behavior in now
* Add news entry.
Fixes:
bpo-32417
bpo-35364
* More descriptive variable names in tests
Addresses Victor's comments
|
|\
| |
| |
| | |
Python 3.8.0a1
|
| | |
|
| |
| |
| |
| | |
After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use.
Make the same changes for macOS to avoid extra platform checks.
|
|/
|
|
| |
existence on drives that are not ready (GH-11746)
|
| |
|
|
|
|
| |
Unicode version of Windows APIs are used in places, but not for GetVersionEx in Python/sysmodule.c
The wcstok_s is called on Windows in Modules/main.c and PC/launcher.c, but not in Python/pathconfig.c
|
| |
|
|
|
| |
Make sure that failure paths call CloseHandle outside of the function that failed
|
|
|
| |
https://bugs.python.org/issue32560
|
| |
|
|
|
|
|
| |
lock (GH-7789)
LoadLibrary, GetProcAddress, FreeLibrary and GetModuleHandle acquire the system loader lock. Calling these while holding the GIL will cause a deadlock on the rare occasion that another thread is detaching and needs to destroy its thread state at the same time.
|
|
|
|
|
|
| |
character (GH-4517)
Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark McMahon (markm).
|
|
|
| |
Use correct interpretation of return value from APIs.
|
|
|
| |
Added shared_memory submodule to multiprocessing in time for first alpha with cross-platform tests soon to follow.
|
|
|
|
|
|
|
|
| |
(GH-11724)
* Add parenthesis optional in named expressions for while statement
* Add NEWS entry
|
|
|
|
| |
(GH-11608)
|
| |
|
|
|
|
|
|
| |
* Change from OrderedDict to a regular dict
* Add blurb
|
| |
|
| |
|
|
|
|
|
|
|
| |
Close pipes/fds in subprocess by using ExitStack.
"In case of premature failure on X.Close() or os.close(X) the remaining pipes/fds will remain "open". Perhaps it makes sense to use contextlib.ExitStack."
- Rationale: https://github.com/python/cpython/pull/11575#discussion_r250288394
|
|
|
|
|
|
| |
This fixes the ctypes.test.test_structures.StructureTestCase test.
https://bugs.python.org/issue35847
|