Łukasz Langa
eb1cbbff1c
Post 3.9.0a1
7 years ago
Łukasz Langa
1c5a71a7dd
Merge tag 'v3.9.0a1'
7 years ago
Brandt Bucher
33b671e724
bpo-38823: Fix refleak in marshal init error path (GH-17260)
7 years ago
Victor Stinner
2e96906da7
bpo-36710: Pass tstate parameter to GC collect() (GH-17267)
Pass tstate parameter (PyThreadState) to GC collect() function and
other GC subfunctions.
7 years ago
John Belmonte
279d8df5e5
bpo-38753: AsyncMock added in version 3.8 (GH-17102)
7 years ago
Victor Stinner
444b39bb64
bpo-38631: Avoid Py_FatalError() in handle_legacy_finalizers() (GH-17266)
* Rename _PyGC_Initialize() to _PyGC_InitializeRuntime()
* Add _PyGC_Init(): initialize _PyRuntime.gc.garbage list
* Call _PyGC_Init() before _PyTypes_Init()
7 years ago
Pablo Galindo
e0cd8aa70a
bpo-37957: Allow regrtest to receive a file with test (and subtests) to ignore (GH-16989)
When building Python in some uncommon platforms there are some known tests that will fail. Right now, the test suite has the ability to ignore entire tests using the -x option and to receive a filter file using the --matchfile filter. The problem with the --matchfile option is that it receives a file with patterns to accept and when you want to ignore a couple of tests and subtests, is too cumbersome to lists ALL tests that are not the ones that you want to accept and he problem with -x is that is not easy to ignore just a subtests that fail and the whole test needs to be ignored.
For these reasons, add a new option to allow to ignore a list of test and subtests for these situations.
7 years ago
Victor Stinner
ef5aa9af7c
bpo-38858: Reorganize pycore_init_types() (GH-17265)
* Call _PyLong_Init() and _PyExc_Init() earlier
* new_interpreter() reuses pycore_init_types()
7 years ago
Brandt Bucher
ac2235432c
bpo-38823: Fix refleaks in faulthandler init error path on Windows (GH-17250)
7 years ago
Pablo Galindo
293dd23477
Remove binding of captured exceptions when not used to reduce the chances of creating cycles (GH-17246)
Capturing exceptions into names can lead to reference cycles though the __traceback__ attribute of the exceptions in some obscure cases that have been reported previously and fixed individually. As these variables are not used anyway, we can remove the binding to reduce the chances of creating reference cycles.
See for example GH-13135
7 years ago
Jake Tesler
c6b20be85c
bpo-38707: Fix for multiprocessing.Process MainThread.native_id (GH-17088)
This PR implements a fix for `multiprocessing.Process` objects; the error occurs when Processes are created using either `fork` or `forkserver` as the `start_method`.
In these instances, the `MainThread` of the newly created `Process` object retains all attributes from its parent's `MainThread` object, including the `native_id` attribute. The resulting behavior is such that the new process' `MainThread` captures an incorrect/outdated `native_id` (the parent's instead of its own).
This change forces the Process object to update its `native_id` attribute during the bootstrap process.
cc @vstinner
https://bugs.python.org/issue38707
Automerge-Triggered-By: @pitrou
7 years ago
Adam Johnson
892221bfa0
bpo-38839: Fix some unused functions in tests (GH-17189)
7 years ago
Brandt Bucher
54b32c9871
bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236)
7 years ago
Vincent Michel
8e0de2a480
bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755)
Ignore `GeneratorExit` exceptions when throwing an exception into the `aclose` coroutine of an asynchronous generator.
https://bugs.python.org/issue35409
7 years ago
Jules Lasne (jlasne)
f25875af42
Added missing coma after end of list in subprocess.rst (GH-17217)
Automerge-Triggered-By: @csabella
7 years ago
Jules Lasne (jlasne)
b1f160a236
Add missing comma and period in unittest docs (GH-17211)
Automerge-Triggered-By: @csabella
7 years ago
Łukasz Langa
fd757083df
Python 3.9.0a1
7 years ago
Batuhan Taşkaya
24555ce2f9
bpo-21767: explicitly mention abc support in functools.singledispatch docs ( #17171 )
7 years ago
Dong-hee Na
9960230f76
bpo-22367: Update test_fcntl.py for spawn process mode ( #17154 )
7 years ago
Brandt Bucher
79e18ec75d
Clean up module initialization. (GH-17215)
7 years ago
Tomás Farías
fe75b62575
bpo-38807: Add os.PathLike to exception message raised by _check_arg_types ( #17160 )
7 years ago
Pablo Galindo
02b8051a5e
Add @pablogsal to code owners file for the garbage collector (GH-17248)
Add myself to the codeowners file as I would like to
be automatically added as a reviewer for PRs that touch
that component and its documentation.
7 years ago
Pablo Galindo
b028f589dd
Minor fixes to the formatting of the notes of Modules/gcmodule.c (GH-17247)
7 years ago
Steve Dower
dcf1f83de8
bpo-38622: Ensure ctypes.PyObj_FromPtr audit event passes tuples as a single argument (GH-17243)
7 years ago
Steve Dower
00923c6399
bpo-38622: Add missing audit events for ctypes module (GH-17158)
7 years ago
Tal Einat
476e76f7cf
Revert "remove a strange non-ASCII character in _iomodule.c" (GH-17240)
This reverts commit bcc1cc5c , which removed an intentionally placed
"form feed" character.
7 years ago
jsnklln
e243bae999
bpo-38722: Runpy use io.open_code() (GH-17234)
https://bugs.python.org/issue38722
Automerge-Triggered-By: @taleinat
7 years ago
Tal Einat
bcc1cc5cc3
remove a strange non-ASCII character in _iomodule.c (GH-17239)
7 years ago
Tal Einat
ee703cbb41
bpo-38809: Windows build scripts use python.exe from virtual envs (GH-17164)
https://bugs.python.org/issue38809
7 years ago
Victor Stinner
bc7d3aa6d7
bpo-38631: Avoid Py_FatalError() in _multibytecodec init (GH-17233)
If an exception is raised and PyInit__multibytecodec() returns NULL,
Python reports properly the exception to the user. There is no need
to crash Python with Py_FatalError().
7 years ago
Victor Stinner
04394df74b
bpo-38631: Avoid Py_FatalError() in float.__getformat__() (GH-17232)
Replace Py_FatalError() with a regular RuntimeError exception in
float.__getformat__().
7 years ago
Роман Донченко
f49f6baa6b
Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)
`~` is now treated as an unreserved character (i.e. it doesn't get quoted), not a reserved one.
7 years ago
Brandt Bucher
289cf0fbf7
bpo-38823: Clean up refleaks in _tkinter initialization. (GH-17206)
https://bugs.python.org/issue38823
7 years ago
Vinay Sajip
5383956583
bpo-38830: Correct slot signature in Qt example. (GH-17220)
7 years ago
Victor Stinner
59c80889ff
Revert "bpo-38811: Check for presence of os.link method in pathlib. (GH-17170)" ( #17219 )
This reverts commit 111772fc27 .
7 years ago
Raymond Hettinger
04c79d6088
bpo-38678: Improve argparse example in tutorial (GH-17207)
7 years ago
alclarks
4544e78ec4
bpo-25866: Minor cleanups to "sequence" in docs (GH-17177)
7 years ago
Zackery Spytz
2bc343417a
bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766)
Return None instead of 1.
7 years ago
Toke Høiland-Jørgensen
111772fc27
bpo-38811: Check for presence of os.link method in pathlib. (GH-17170)
Fix also the Path.symplink() method implementation for the case when
symlinks are not supported.
7 years ago
Andrey Doroschenko
645005e947
bpo-38724: Implement subprocess.Popen.__repr__ (GH-17151)
7 years ago
Brandt Bucher
143a97f641
bpo-38823: Clean up refleaks in _contextvars initialization. (GH-17198)
https://bugs.python.org/issue38823
7 years ago
Brandt Bucher
c3f6bdc332
bpo-38823: Clean up refleaks in _asyncio initialization. (GH-17195)
https://bugs.python.org/issue38823
7 years ago
Jason (Perry) Taylor
d0acdfcf34
Fix typo in Lib/socketserver.py (GH-17024)
changed 'This is bad class design, but save some typing'
into 'This is bad class design, but saves some typing'.
7 years ago
Serhiy Storchaka
a0652328a2
bpo-28286: Deprecate opening GzipFile for writing implicitly. (GH-16417)
Always specify the mode argument for writing.
7 years ago
Serhiy Storchaka
bd44a7ead9
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
Make it a constant and referring to a constant string.
7 years ago
Serhiy Storchaka
5fd5cb8d85
bpo-38639: Optimize floor(), ceil() and trunc() for floats. (GH-16991)
7 years ago
Victor Stinner
51edf8aaa2
bpo-38644: Cleanup ceval.h (GH-17185)
Move CPython API (Py_LIMITED_API macro not defined) from ceval.h
to cpython/ceval.h
7 years ago
Steve Dower
7c6130c8c3
bpo-38453: Ensure correct short path is obtained for test (GH-17184)
7 years ago
Victor Stinner
b5e170f127
bpo-38644: Add _PyEval_EvalCode() (GH-17183)
_PyFunction_Vectorcall() now pass tstate to function calls.
7 years ago
Jules Lasne (jlasne)
0fe0b88d6e
Updated missing periods in cmdline.rst (GH-17173)
7 years ago