summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-34750: [Enum] add `_EnumDict.update()` support (GH-23725)Ethan Furman2020-12-103-1/+40
| | | | | | | | | | | | | | | | This allows easier Enum construction in unusual cases, such as including dynamic member definitions into a class definition: # created dynamically foo_defines = {'FOO_CAT': 'aloof', 'BAR_DOG': 'friendly', 'FOO_HORSE': 'big'} class Foo(Enum): vars().update({ k: v for k, v in foo_defines.items() if k.startswith('FOO_') }) def upper(self): # example method return self.value.upper()
* bpo-42385: [Enum] add `_generate_next_value_` to StrEnum (GH-23735)Ethan Furman2020-12-104-2/+17
| | | The default for auto() is to return an integer, which doesn't work for `StrEnum`. The new `_generate_next_value_` for `StrEnum` returns the member name, lower cased.
* bpo-41877: Improve docs for assert misspellings check in mock (GH-23729)vabr-g2020-12-104-6/+9
| | | | | | | | | This is a follow-up to https://github.com/python/cpython/commit/4662fa9bfe4a849fe87bfb321d8ef0956c89a772. That original commit expanded guards against misspelling assertions on mocks. This follow-up updates the documentation and improves the error message by pointing out the potential cause and solution. Automerge-Triggered-By: GH:gpshead
* bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730)Victor Stinner2020-12-103-0/+6
| | | | | | | Export the Py_FrozenMain() function: fix a Python 3.9.0 regression. Python 3.9 uses -fvisibility=hidden and the function was not exported explicitly and so not exported. Add also Py_FrozenMain to the stable ABI on Windows.
* bpo-42517: [Enum] do not convert private names into members (GH-23722)Ethan Furman2020-12-104-1/+54
| | | private names, such as `_Color__hue` and `_Color__hue_` are now normal attributes, and do not become members nor raise exceptions
* bpo-42567: [Enum] call __init_subclass__ after members are added (GH-23714)Ethan Furman2020-12-103-2/+104
| | | | | When creating an Enum, type.__new__ calls __init_subclass__, but at that point the members have not been added. This patch suppresses the initial call, then manually calls the ancestor __init_subclass__ before returning the new Enum class.
* [doc] Link to issue regarding logging.disable level param default value ↵Andre Delfino2020-12-091-2/+2
| | | | (GH-23726)
* [doc] Document logging.basicConfig default format (GH-23710)Andre Delfino2020-12-091-1/+3
| | | Automerge-Triggered-By: GH:vsajip
* bpo-31904: Define THREAD_STACK_SIZE for VxWorks (GH-23718)pxinwr2020-12-092-0/+5
|
* bpo-32381: Add _PyRun_AnyFileObject() (GH-23723)Victor Stinner2020-12-095-53/+106
| | | | | | | | | | pymain_run_file() no longer encodes the filename: pass the filename as an object to the new _PyRun_AnyFileObject() function. Add new private functions: * _PyRun_AnyFileObject() * _PyRun_InteractiveLoopObject() * _Py_FdIsInteractive()
* bpo-32381: Remove unused _Py_fopen() function (GH-23711)Victor Stinner2020-12-093-31/+3
| | | | Remove the private _Py_fopen() function which is no longer needed. Use _Py_wfopen() or _Py_fopen_obj() instead.
* bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)Victor Stinner2020-12-083-31/+23
| | | | pymain_run_startup() now pass the filename as a Python object to _PyRun_SimpleFileObject().
* bpo-41439: Skip test_ssl and test_uuid tests if fork() is not supported ↵pxinwr2020-12-083-2/+3
| | | | (GH-21684)
* bpo-41443: Add more attribute checking in test_posix (GH-21688)pxinwr2020-12-082-3/+8
|
* bpo-35134: Add Include/cpython/pythonrun.h file (GH-23701)Victor Stinner2020-12-085-117/+129
| | | | | Py_CompileString() is now always declared as a function by Include/pythonrun.h. It is overriden with a macro in Include/cpython/pythonrun.h.
* bpo-32381: Rewrite PyErr_ProgramText() (GH-23700)Victor Stinner2020-12-081-5/+10
| | | PyErr_ProgramText() now calls PyErr_ProgramTextObject().
* [Enum] reformat and add doc strings (GH-23705)Ethan Furman2020-12-082-54/+135
|
* bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497)Ethan Furman2020-12-083-1/+16
|
* bpo-42111: Make the xxlimited module an example of best extension module ↵Petr Viktorin2020-12-0811-158/+748
| | | | | | | practices (GH-23226) - Copy existing xxlimited to xxlimited53 (named for the limited API version it uses) - Build both modules, both in debug and release - Test both modules
* bpo-41910: move news entry (GH-23695)Terry Jan Reedy2020-12-081-9/+9
|
* bpo-42599: Remove useless PyModule_GetWarningsModule() (GH-23691)Hai Shi2020-12-083-11/+5
| | | | Removed PyModule_GetWarningsModule() which is useless due to the _warnings module was converted to a builtin module in 2.6.
* bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642)Victor Stinner2020-12-082-92/+135
| | | | | | | | | | Fix encoding name when running a ".pyc" file on Windows: PyRun_SimpleFileExFlags() now uses the correct encoding to decode the filename. * Add pyrun_file() subfunction. * Add pyrun_simple_file() subfunction. * PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than _Py_fopen().
* Post 3.10.0a3Pablo Galindo2020-12-081-1/+1
|
* Merge tag 'v3.10.0a3'Pablo Galindo2020-12-08148-372/+1573
|\ | | | | | | Python 3.10.0a3
| * Python 3.10.0a3v3.10.0a3Pablo Galindo2020-12-07148-372/+1573
| |
* | bpo-41462: Add os.set_blocking() support for VxWorks RTOS (GH-21713)pxinwr2020-12-072-1/+4
| |
* | bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)Matěj Cepl2020-12-071-1/+6
|/ | | | | | The solution in gh#python/cpython#13236 is too strict because it effectively requires the use of Sphinx >= 2.0. It is not too difficult to make the same solution more robust so it works with all normal versions of Sphinx.
* bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match ↵Matti Picus2020-12-073-2/+10
| | | | distutils (GH-22088)
* bpo-30459: Cast the result of PyCell_SET to void (GH-23654)Victor Stinner2020-12-073-3/+14
|
* bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487)Ethan Furman2020-12-073-3/+35
|
* Update macos installer ReadMe for 3.10.0a3 (GH-23671)Ned Deily2020-12-071-2/+10
|
* bpo-42508: Keep IDLE running on macOS (GH-23577)Terry Jan Reedy2020-12-073-19/+14
| | | | | Remove obsolete workaround that prevented running files with shortcuts when using new universal2 installers built on macOS 11. Ignore buggy 2nd run_module_event call.
* bpo-38843: Document behavior of default when the attribute is already set ↵Raymond Hettinger2020-12-071-1/+9
| | | | (GH-23653)
* bpo-42582: Remove asyncio._all_tasks_compat(). (GH-23664)Serhiy Storchaka2020-12-062-28/+0
| | | It was used to implement now removed asyncio.Task.all_tasks().
* bpo-42576: Clarify only debug builds are affected in news (GH-23663)kj2020-12-061-1/+2
|
* bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call ↵idanw2062020-12-063-1/+12
| | | | | | its __bool__ function (GH23613) Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function
* bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias ↵kj2020-12-053-1/+9
| | | | | | | | | (GH-23656) Use `_PyArg_NoKeywords` instead of `_PyArg_NoKwnames` when checking the `kwds` tuple when creating `GenericAlias`. This fixes an interpreter crash when passing in keyword arguments to `GenericAlias`'s constructor. Needs backport to 3.9. Automerge-Triggered-By: GH:gvanrossum
* GH-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (#23638)Senthil Kumaran2020-12-053-8/+41
|
* bpo-30459: Cast the result of PyList_SET_ITEM() to void (GH-19975)Zackery Spytz2020-12-053-2/+4
| | | Do the same for PyTuple_SET_ITEM().
* bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649)Ned Deily2020-12-051-1/+2
| | | | | | If no explicit macOS SDK was specified, setup.py should check for Tcl and TK frameworks in /Library/Frameworks; the previous commit inadvertently broke that test.
* bpo-42536: GC track recycled tuples (GH-23623)Brandt Bucher2020-12-0512-0/+192
| | | | | | | | | | | | | | | | Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector: - collections.OrderedDict.items - dict.items - enumerate - functools.reduce - itertools.combinations - itertools.combinations_with_replacement - itertools.permutations - itertools.product - itertools.zip_longest - zip Previously, they could have become untracked by a prior garbage collection.
* bpo-26131: Deprecate usage of load_module() (GH-23469)Brett Cannon2020-12-0425-3033/+3244
| | | Raise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning.
* bpo-42545: Improve the error message in the stable API script (GH-23648)Pablo Galindo2020-12-041-21/+41
|
* bpo-42545: Check that all symbols in the limited ABI are exported (GH-23616)Pablo Galindo2020-12-045-0/+1027
|
* bpo-17735: inspect.findsource now raises OSError when co_lineno is out of ↵Irit Katriel2020-12-043-1/+21
| | | | | range (GH-23633) This can happen when a file was edited after it was imported.
* bpo-31904: fix test_doctest.py failures for VxWorks (GH-23419)pxinwr2020-12-042-1/+3
| | | | Fix test_doctest.py failures for VxWorks by avoiding exact error message checks. (better for everyone all around)
* bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)Irit Katriel2020-12-044-4/+49
|
* bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)Victor Stinner2020-12-042-5/+3
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1866884 is fixed in gdb 10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64).
* bpo-42246: Don't forget the entry block when ensuring that all exits have a ↵Mark Shannon2020-12-044-4/+28
| | | | | line number (GH-23636) Don't forget the entry block when ensuring that all exits have a line number.
* bpo-42562: Fix issue when dis failed to parse function that has no line ↵Yurii Karabas2020-12-043-1/+20
| | | | | | numbers (GH-23632) Fix issue when dis failed to parse function that has only annotations