aboutsummaryrefslogtreecommitdiff
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40170: Convert PyDescr_IsData() to static inline function (GH-24535)HEADmasterErlend Egeberg Aasland2021-02-161-0/+3
|
* bpo-43155: Add PyCMethod_New to PC/python3dll.c (GH-24500)Zackery Spytz2021-02-161-0/+1
|
* bpo-42819, readline: Disable bracketed paste (GH-24108)Dustin Rodrigues2021-02-162-0/+9
|
* bpo-43181: Convert PyObject_TypeCheck to static inline function (GH-24533)Erlend Egeberg Aasland2021-02-151-0/+2
|
* bpo-42967: only use '&' as a query string separator (#24297)Adam Goldschmidt2021-02-141-0/+1
| | | | | | | | | | | bpo-42967: [security] Address a web cache-poisoning issue reported in urllib.parse.parse_qsl(). urllib.parse will only us "&" as query string separator by default instead of both ";" and "&" as allowed in earlier versions. An optional argument seperator with default value "&" is added to specify the separator. Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Éric Araujo <merwok@netwok.org>
* bpo-43172: readline now passes its tests when built against libedit (GH-24499)Gregory P. Smith2021-02-121-0/+4
| | | | | | | bpo-43172: readline now passes its tests when built against libedit. Existing irreconcilable API differences remain in readline.get_begidx and readline.get_endidx behavior based on libreadline vs libedit use. A note about that has been documented.
* bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)Inada Naoki2021-02-121-0/+1
|
* bpo-40956: Fix segfault when Connection.backup is called without target ↵Erlend Egeberg Aasland2021-02-111-0/+3
| | | | (GH-24503)
* bpo-42217: compiler: merge same co_code and co_linetable objects (GH-23056)Inada Naoki2021-02-101-0/+1
|
* bpo-43163: Handle unclosed parentheses in codeop (GH-24483)Pablo Galindo2021-02-091-0/+2
|
* bpo-43162: [Enum] deprecate enum member.member access (GH-24486)Ethan Furman2021-02-081-0/+2
| | | | | | | In 3.5 (?) a speed optimization made it possible to access members as attributes of other members, i.e. ``Color.RED.BLUE``. This was always discouraged in the docs, and other recent optimizations has made that one no longer necessary. Because some may be relying on it anyway, it is being deprecated in 3.10, and will be removed in 3.11.
* bpo-13501: allow choosing between readline and libedit (GH-24189)Roland Hieber2021-02-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | In contrast to macOS, libedit is available as its own include file and library on Linux systems to prevent file name clashes. So if both libraries are available on the system, readline is currently chosen by default; and if only libedit is available, it is not found at all. This patch adds a way to link against libedit by adding the following arguments to configure: --with-readline link against libreadline (the default) --with-readline=editline link against libeditline --with-readline=no disable building the readline module --without-readline (same) The runtime detection of libedit vs. readline was already done in commit 7105319ada2e66365902 (2019-12-04, serge-sans-paille: "bpo-38634: Allow non-apple build to cope with libedit (GH-16986)"). Fixes: GH-12076 ("bpo-13501 Build or disable readline with Editline") Fixes: bpo-13501 ("Make libedit support more generic; port readline / libedit to FreeBSD") Co-authored-by: Enji Cooper (ngie-eign) Co-authored-by: Martin Panter (vadmium) Co-authored-by: Robert Marshall (kellinm)
* bpo-40692: Run more test_concurrent_futures tests (GH-20239)Asheesh Laroia2021-02-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the case of multiprocessing.synchronize() being missing, the test_concurrent_futures test suite now skips only the tests that require multiprocessing.synchronize(). Validate that multiprocessing.synchronize exists as part of _check_system_limits(), allowing ProcessPoolExecutor to raise NotImplementedError during __init__, rather than crashing with ImportError during __init__ when creating a lock imported from multiprocessing.synchronize. Use _check_system_limits() to disable tests of ProcessPoolExecutor on systems without multiprocessing.synchronize. Running the test suite without multiprocessing.synchronize reveals that Lib/compileall.py crashes when it uses a ProcessPoolExecutor. Therefore, change Lib/compileall.py to call _check_system_limits() before creating the ProcessPoolExecutor. Note that both Lib/compileall.py and Lib/test/test_compileall.py were attempting to sanity-check ProcessPoolExecutor by expecting ImportError. In multiprocessing.resource_tracker, sem_unlink() is also absent on platforms where POSIX semaphores aren't available. Avoid using sem_unlink() if it, too, does not exist. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-43149: Improve error message for exception group without parentheses ↵Pablo Galindo2021-02-071-0/+2
| | | | (GH-24467)
* bpo-43102: Set namedtuple __new__'s internal builtins to a dict. (GH-24439)Raymond Hettinger2021-02-041-0/+2
|
* bpo-43106: Add os.O_EVTONLY/O_FSYNC/O_SYMLINK/O_NOFOLLOW_ANY (GH-24428)Dong-hee Na2021-02-041-0/+2
|
* bpo-43121: Fix incorrect SyntaxError message for missing comma (GH-24436)Pablo Galindo2021-02-031-0/+2
|
* Python 3.10.0a5Pablo Galindo2021-02-0267-135/+670
|
* bpo-43108: Fix a reference leak in the curses module (GH-24420)Pablo Galindo2021-02-021-0/+1
|
* bpo-41149: Fix a bug in threading that causes fals-y threads callables to ↵BarneyStratford2021-02-021-0/+1
| | | | fail to start. (GH-21201)
* bpo-42997: Improve error message for missing : before suites (GH-24292)Pablo Galindo2021-02-021-0/+1
| | | | | | | | * Add to the peg generator a new directive ('&&') that allows to expect a token and hard fail the parsing if the token is not found. This allows to quickly emmit syntax errors for missing tokens. * Use the new grammar element to hard-fail if the ':' is missing before suites.
* bpo-41748: Handles unquoted attributes with commas (#24072)Karl Dubost2021-02-011-0/+2
| | | | | | | | | | | | | | | | | | * bpo-41748: Adds tests for unquoted attributes with comma * bpo-41748: Handles unquoted attributes with comma * bpo-41748: Addresses review comments * bpo-41748: Addresses review comments * Adds more test cases * Simplifies the regex for handling spaces * bpo-41748: Moves attributes tests under the right class * bpo-41748: Addresses review about duplicate attributes * bpo-41748: Adds NEWS.d entry for this patch
* bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348)Aviral Srivastava2021-02-011-0/+3
| | | | | | | | For back-compatibility, make the new constructor parameter for public classes Function and Class keyword-only with a default of None. Co-authored-by: Aviral Srivastava <aviralsrivastava@Avirals-MacBook-Air.local Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42834: Fix _json internal caches for subinterpreters (GH-24121)Ken Jin2021-02-011-0/+1
| | | | Make internal caches of the _json extension module compatible with subinterpreters.
* bpo-42990: Further refactoring of PyEval_ functions. (GH-24368)Mark Shannon2021-02-011-0/+5
| | | | | | | | | | * Further refactoring of PyEval_EvalCode and friends. Break into make-frame, and eval-frame parts. * Simplify function vector call using new _PyEval_Vector. * Remove unused internal functions: _PyEval_EvalCodeWithName and _PyEval_EvalCode. * Don't use legacy function PyEval_EvalCodeEx.
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a ↵Ronald Oussoren2021-01-311-0/+3
| | | | | string (GH-24341) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
* bpo-43017: Improve error message for unparenthesised tuples in ↵Pablo Galindo2021-01-311-0/+2
| | | | comprehensions (GH24314)
* bpo-42986: Fix parser crash when reporting syntax errors in f-string with ↵Pablo Galindo2021-01-311-0/+2
| | | | newlines (GH-24279)
* bpo-41604: Don't decrement the reference count of the previous user_ptr when ↵Anonymous Maarten2021-01-311-0/+2
| | | | set_panel_usertpr fails (GH-21933)
* bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed ↵Serhiy Storchaka2021-01-311-0/+2
| | | | wchar_t (GH-24350)
* bpo-43077: Update bundled pip to 21.0.1 and setuptools to 52.0.0 (GH-24386)Paul Moore2021-01-301-0/+1
| | | Update bundled pip to 21.0.1 and setuptools to 52.0.0
* bpo-42927: Inline cache for attributes defined with '__slots__' (#24216)Guido van Rossum2021-01-291-0/+2
|
* bpo-38631: Replace compiler fatal errors with exceptions (GH-24369)Victor Stinner2021-01-301-0/+2
| | | | | | | | * Replace Py_FatalError() calls with regular SystemError exceptions. * compiler_exit_scope() calls _PyErr_WriteUnraisableMsg() to log the PySequence_DelItem() failure. * compiler_unit_check() uses _PyMem_IsPtrFreed(). * compiler_make_closure(): remove "(reftype == FREE)" comment since reftype can also be LOCAL or GLOBAL_EXPLICIT.
* bpo-41282: Add deprecation warning and docs for distutils (PEP 632) (GH-24355)Steve Dower2021-01-291-0/+1
|
* bpo-43008: Add 'Patch by Ken Hilton' (GH-24370)Terry Jan Reedy2021-01-291-0/+1
|
* bpo-42979: Use _Py_CheckSlotResult() to check slots result (GH-24356)Victor Stinner2021-01-291-0/+5
| | | | | | | | | | | | | | | When Python is built in debug mode (with C assertions), calling a type slot like sq_length (__len__() in Python) now fails with a fatal error if the slot succeeded with an exception set, or failed with no exception set. The error message contains the slot, the type name, and the current exception (if an exception is set). * Check the result of all slots using _Py_CheckSlotResult(). * No longer pass op_name to ternary_op() in release mode. * Replace operator with dunder Python method name in error messages. For example, replace "*" with "__mul__". * Fix compiler_exit_scope() when an exception is set. * Fix bytearray.extend() when an exception is set: don't call bytearray_setslice() with an exception set.
* bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)Zackery Spytz2021-01-281-0/+2
| | | | | Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* 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-211-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)