summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43031: Set a timeout when running tests in PGO build (GH-24339)Victor Stinner2021-01-271-0/+2
| | | | Pass --timeout=$(TESTTIMEOUT) option to the default profile task "./python -m test --pgo" command.
* bpo-43008: Make IDLE respect sys.excepthook (GH-24302)Ken2021-01-261-0/+1
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-38250: [Enum] single-bit flags are canonical (GH-24215)Ethan Furman2021-01-252-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flag members are now divided by one-bit verses multi-bit, with multi-bit being treated as aliases. Iterating over a flag only returns the contained single-bit flags. Iterating, repr(), and str() show members in definition order. When constructing combined-member flags, any extra integer values are either discarded (CONFORM), turned into ints (EJECT) or treated as errors (STRICT). Flag classes can specify which of those three behaviors is desired: >>> class Test(Flag, boundary=CONFORM): ... ONE = 1 ... TWO = 2 ... >>> Test(5) <Test.ONE: 1> Besides the three above behaviors, there is also KEEP, which should not be used unless necessary -- for example, _convert_ specifies KEEP as there are flag sets in the stdlib that are incomplete and/or inconsistent (e.g. ssl.Options). KEEP will, as the name suggests, keep all bits; however, iterating over a flag with extra bits will only return the canonical flags contained, not the extra bits. Iteration is now in member definition order. If member definition order matches increasing value order, then a more efficient method of flag decomposition is used; otherwise, sort() is called on the results of that method to get definition order. ``re`` module: repr() has been modified to support as closely as possible its previous output; the big difference is that inverted flags cannot be output as before because the inversion operation now always returns the comparable positive result; i.e. re.A|re.I|re.M|re.S is ~(re.L|re.U|re.S|re.T|re.DEBUG) in both of the above terms, the ``value`` is 282. re's tests have been updated to reflect the modifications to repr().
* bpo-42955: Rename module_names to sys.stdlib_module_names (GH-24332)Victor Stinner2021-01-251-1/+1
| | | | * Rename _Py_module_names to _Py_stdlib_module_names. * Rename Python/module_names.h to Python/stdlib_module_names.h.
* bpo-42383: pdb: do not fail to restart the target if the current directory ↵Andrey Bienkowski2021-01-251-0/+2
| | | | | changed (#23412) This commit only adds tests and a news entry. The actual bug was fixed in the earlier commit.
* bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)Serhiy Storchaka2021-01-251-5/+5
|
* bpo-42955: Add sys.modules_names (GH-24238)Victor Stinner2021-01-251-0/+2
| | | | Add sys.module_names, containing the list of the standard library module names.
* bpo-27772: Make preceding width with 0 valid in string format. (GH-11270)Serhiy Storchaka2021-01-251-0/+2
| | | | Previously it was an error with confusing error message.
* bpo-43014: Improve performance of tokenize.tokenize by 20-30%Anthony Sottile2021-01-241-0/+1
|
* bpo-40304: Correct type(name, bases, dict) doc (GH-19553)Борис Верховский2021-01-221-0/+2
| | | | | Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-42384: pdb: correctly populate sys.path[0] (GH-23338)Andrey Bienkowski2021-01-221-0/+1
| | | Automerge-Triggered-By: GH:gvanrossum
* bpo-31904: setup.py: fix cross-compilation on VxWorks (GH-24191)pxinwr2021-01-221-0/+1
| | | Add library search path by wr-cc in add_cross_compiling_paths().
* bpo-33289: Return RGB triplet of ints instead of floats from ↵Cheryl Sabella2021-01-211-0/+2
| | | | tkinter.colorchooser (GH-6578)
* bpo-40176: Improve error messages for unclosed string literals (GH-19346)Batuhan Taskaya2021-01-201-0/+2
| | | Automerge-Triggered-By: GH:isidentical
* bpo-42856: Add --with-wheel-pkg-dir=PATH configure option (GH-24210)Victor Stinner2021-01-201-0/+9
| | | | | | | | | | | | | Add --with-wheel-pkg-dir=PATH option to the ./configure script. If specified, the ensurepip module looks for setuptools and pip wheel packages in this directory: if both are present, these wheel packages are used instead of ensurepip bundled wheel packages. Some Linux distribution packaging policies recommend against bundling dependencies. For example, Fedora installs wheel packages in the /usr/share/python-wheels/ directory and don't install the ensurepip._bundled package. ensurepip: Remove unused runpy import.
* bpo-42323: Fix math.nextafter() for NaN on AIX (GH-24265)Victor Stinner2021-01-201-0/+1
|
* bpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172)cptpcrd2021-01-201-0/+1
|
* bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)Zhiming Wang2021-01-201-0/+2
|
* bpo-42864: Improve error messages regarding unclosed parentheses (GH-24161)Pablo Galindo2021-01-191-0/+2
|
* closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes ↵Benjamin Peterson2021-01-181-0/+2
| | | | param reprs. (24239)
* bpo-36143: make regen-all now also runs regen-keyword (GH-24245)Victor Stinner2021-01-181-0/+1
|
* bpo-42923: Dump extension modules on fatal error (GH-24207)Victor Stinner2021-01-181-0/+2
| | | | | | | The Py_FatalError() function and the faulthandler module now dump the list of extension modules on a fatal error. Add _Py_DumpExtensionModules() and _PyModule_IsExtension() internal functions.
* bpo-42944 Fix Random.sample when counts is not None (GH-24235)jonanifranco2021-01-181-0/+1
|
* bpo-42931: randbytes missing from random.__all__ (GH-24219)Setrak Balian2021-01-151-0/+1
|
* bpo-42934: use TracebackException(compact=True) in unittest.TestResult ↵Irit Katriel2021-01-151-0/+3
| | | | (GH-24221)
* bpo-42877: add the 'compact' param to TracebackException's __init__ (#24179)Irit Katriel2021-01-151-0/+4
| | | Use it to reduce the time and memory taken up by several of traceback's module-level functions.
* bpo-42827: Fix crash on SyntaxError in multiline expressions (GH-24140)Lysandros Nikolaou2021-01-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | When trying to extract the error line for the error message there are two distinct cases: 1. The input comes from a file, which means that we can extract the error line by using `PyErr_ProgramTextObject` and which we already do. 2. The input does not come from a file, at which point we need to get the source code from the tokenizer: * If the tokenizer's current line number is the same with the line of the error, we get the line from `tok->buf` and we're ready. * Else, we can extract the error line from the source code in the following two ways: * If the input comes from a string we have all the input in `tok->str` and we can extract the error line from it. * If the input comes from stdin, i.e. the interactive prompt, we do not have access to the previous line. That's why a new field `tok->stdin_content` is added which holds the whole input for the current (multiline) statement or expression. We can then extract the error line from `tok->stdin_content` like we do in the string case above. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-39273: Expose BUTTON5_* constants in the curses module if available ↵Zackery Spytz2021-01-141-0/+2
| | | | (GH-17996)
* bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208)Tobias Holl2021-01-131-0/+1
| | | | Before, using the * operator to repeat a bytearray would copy data from the start of the internal buffer (ob_bytes) and not from the start of the actual data (ob_start).
* bpo-42901: [Enum] move member creation to `__set_name__` (GH-24196)Ethan Furman2021-01-131-0/+3
| | | | | | | | | | | `type.__new__` calls `__set_name__` and `__init_subclass__`, which means that any work metaclasses do after calling `super().__new__()` will not be available to those two methods. In particular, `Enum` classes that want to make use of `__init_subclass__` will not see any members. Almost all customization is therefore moved to before the `type.__new__()` call, including changing all members to a proto member descriptor with a `__set_name__` that will do the final conversion of a member to be an instance of the `Enum` class.
* bpo-37324: Remove ABC aliases from collections (GH-23754)Hugo van Kemenade2021-01-121-0/+2
| | | | Remove deprecated aliases to Abstract Base Classes from the collections module.
* bpo-42848: remove recursion from TracebackException (GH-24158)Irit Katriel2021-01-121-0/+1
|
* bpo-42874: Remove grep -qE options for Solaris 10 compatibility (GH-24200)Paul Ganssle2021-01-121-0/+3
| | | | | | | | According to [bpo-42874](), some versions of grep do not support the `-q` and `-E` options. Although both options are used elsewhere in the configure script, this particular bit of validation can be achieved without them, so there's no real harm in using a grep call with no flags. Would be good to get some people taking advantage of the `--with-tzpath` arguments in the wild to try this out.. Local testing seems to indicate that this does the same thing, but I don't know that we have any buildbots using this option. Maybe @pablogsal? [bpo-42874]():
* bpo-41994: Fix refcount issues in Python/import.c (GH-22632)Serhiy Storchaka2021-01-121-0/+1
| | | https://bugs.python.org/issue41994
* bpo-42882: _PyRuntimeState_Init() leaves unicode next_index unchanged (GH-24193)Victor Stinner2021-01-121-0/+3
| | | | | | | | Fix the _PyUnicode_FromId() function (_Py_IDENTIFIER(var) API) when Py_Initialize() / Py_Finalize() is called multiple times: preserve _PyRuntime.unicode_ids.next_index value. Use _PyRuntimeState_INIT macro instead memset(0) to reset _PyRuntimeState members to zero.
* bpo-42870: Document change in argparse help output. (GH-24190)Tomáš Hrnčiar2021-01-121-0/+1
|
* bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)Terry Jan Reedy2021-01-101-0/+1
| | | | | If __repr__ uses instance attributes, as normal, and one steps through the __init__ method, debugger may try to get repr before the instance attributes exist. reprlib.repr handles the error.
* bpo-42802: Remove distutils bdist_wininst command (GH-24043)Victor Stinner2021-01-081-0/+3
| | | | | | | | | | The distutils bdist_wininst command deprecated in Python 3.8 has been removed. The distutils bidst_wheel command is now recommended to distribute binary packages on Windows. * Remove Lib/distutils/command/bdist_wininst.py * Remove PC/bdist_wininst/ project * Remove Lib/distutils/command/wininst-*.exe programs * Remove all references to bdist_wininst
* bpo-42866: Fix refleak in CJK getcodec() (GH-24165)Victor Stinner2021-01-081-0/+2
| | | Fix a reference leak in the getcodec() function of CJK codecs.
* bpo-42846: Convert CJK codec extensions to multiphase init (GH-24157)Victor Stinner2021-01-071-0/+3
| | | | | | | | | | | Convert the 6 CJK codec extension modules (_codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw) to the multiphase initialization API (PEP 489). Remove getmultibytecodec() local cache: always import _multibytecodec. It should be uncommon to get a codec. For example, this function is only called once per CJK codec module. Fix a reference leak in register_maps() error path.
* bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154)Ethan Furman2021-01-071-0/+1
| | | Solution to support calls to `__init_subclass__` with members defined is too brittle and breaks with certain mixins.
* bpo-40823: Use loadTestsFromTestCase() iso. makeSuite() in sqlite3 tests ↵Erlend Egeberg Aasland2021-01-071-0/+2
| | | | (GH-20538)
* bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent ↵Yair Frid2021-01-061-0/+2
| | | | | (GH-24100) Automerge-Triggered-By: GH:brettcannon
* bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008)Erlend Egeberg Aasland2021-01-061-0/+3
|
* bpo-40810: Require SQLite 3.7.15 (GH-24106)Erlend Egeberg Aasland2021-01-061-0/+1
|
* bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675)Erlend Egeberg Aasland2021-01-051-0/+1
|
* bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125)Steve Dower2021-01-051-0/+1
|
* bpo-42823: Fix frame lineno when frame.f_trace is set (GH-24099)Mark Shannon2021-01-051-0/+1
| | | | | | | | | * Add test for frame.f_lineno with/without tracing. * Make sure that frame.f_lineno is correct regardless of whether frame.f_trace is set. * Update importlib * Add NEWS
* bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)Cheryl Sabella2021-01-051-0/+2
| | | | | Make menu items work with formatter, add docstrings, add 100% tests. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix broken NEWS markup (GH-24110)Brandt Bucher2021-01-051-1/+1
|