summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.10.0rc1v3.10.0rc1Pablo Galindo2021-08-0225-50/+0
|
* bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)Miss Islington (bot)2021-08-021-0/+2
| | | | | | | Non-protocol subclasses of protocol ignore now the __init__ method inherited from protocol base classes. (cherry picked from commit 043cd60abed09edddc7185bcf7d039771acc734d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44667: Treat correctly lines ending with comments and no newlines in the ↵Miss Islington (bot)2021-08-021-0/+4
| | | | | | | Python tokenizer (GH-27499) (GH-27500) (cherry picked from commit b6bde9fc42aecad5be0457198d17cfe7b481ad79) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-44793: Fix checking the number of arguments when subscribe a generic ↵Miss Islington (bot)2021-08-021-0/+2
| | | | | | | | | | | type with ParamSpec parameter. (GH-27515) For example Callable[P, T][[int], str, float] will now raise an error. Use also term "arguments" instead of "parameters" in error message for too few/many arguments. (cherry picked from commit f92b9133ef67e77605cbd315b6b6c81036ce110e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44784: Apply changes from importlib_metadata 4.6.3 (GH-27508) (#27510)Miss Islington (bot)2021-07-311-0/+2
| | | | | | | | | | Addressing issues with tests under error on warnings. Automerge-Triggered-By: GH:jaraco (cherry picked from commit 1cf8424a62db38a041d421a46618e025bbb87f89) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-44648: Fix error type in inspect.getsource() in interactive session ↵Miss Islington (bot)2021-07-301-0/+3
| | | | | | | (GH-27171) (GH-27495) (cherry picked from commit 48a62559dfaf775e4f1cc56b19379c799e8e2587) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939) ↵Miss Islington (bot)2021-07-301-0/+2
| | | | | | | (GH-27494) (cherry picked from commit ceea579ccc51791f3e115155d6f27905bc7544a9) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-42892: fix email multipart attribute error (GH-26903) (GH-27492)Miss Islington (bot)2021-07-301-0/+1
| | | | | (cherry picked from commit e3f877c32d7cccb734f45310f26beeec793364ce) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-44666: Use default encoding as fallback for compile_file (GH-27236) ↵Miss Islington (bot)2021-07-301-0/+2
| | | | | | | | | | (GH-27488) When sys.stdout.encoding is None compile_file will fall back to sys.getdefaultencoding to encode/decode error messages. Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de> Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr> (cherry picked from commit 80f07076294bc09a55ed76d9bbf307404eef25e6)
* bpo-44752: Make rlcompleter not call `@property` methods (GH-27401) (GH-27444)Miss Islington (bot)2021-07-291-0/+2
| | | | | | | | | | | * rlcompleter was calling these methods to identify whether to add parenthesis to the completion, based on if the attribute is callable. * for property objects, completion with parenthesis are never desirable. * property methods with print statements behaved very strangely, which was especially unfriendly to language newcomers. <tab> could suddenly produce output unexpectedly. (cherry picked from commit 50de8f74f8e92b20e76438c22b6a8f91afd6df75) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-27827: identify a greater range of reserved filename on Windows. ↵Miss Islington (bot)2021-07-281-0/+2
| | | | | | | | | | (GH-26698) (GH-27421) `pathlib.PureWindowsPath.is_reserved()` now identifies as reserved filenames with trailing spaces or colons. Co-authored-by: Barney Gale <barney.gale@foundry.com> Co-authored-by: Eryk Sun <eryksun@gmail.com> (cherry picked from commit 56c1f6d7edad454f382d3ecb8cdcff24ac898a50)
* [3.10] bpo-44461: Check early that a pdb target is valid for execution. ↵Jason R. Coombs2021-07-281-0/+1
| | | | | (GH-27227) (GH-27399) Automerge-Triggered-By: GH:jaraco
* bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ ↵Miss Islington (bot)2021-07-241-0/+1
| | | | | | | (GH-27316) (GH-27324) (cherry picked from commit 5370f0a82aaa4ba617070d5c71d2b18236096ac0) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* bpo-42854: Correctly use size_t for _ssl._SSLSocket.read and ↵Miss Islington (bot)2021-07-231-0/+3
| | | | | | | | | _ssl._SSLSocket.write (GH-27271) (GH-27308) (cherry picked from commit 83d1430ee5b8008631e7f2a75447e740eed065c1) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-29298: Fix crash with required subparsers without dest (GH-3680) (GH-27303)Miss Islington (bot)2021-07-231-0/+2
| | | | | (cherry picked from commit 17575f73ce2cb9f3a4eb4cc416c690f9a4e7205c) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) ↵Miss Islington (bot)2021-07-211-0/+1
| | | | (GH-27282)
* bpo-44566: resolve differences between asynccontextmanager and ↵Miss Islington (bot)2021-07-201-0/+1
| | | | | | | contextmanager (GH-27024) (#27266) (cherry picked from commit 7f1c330da31c54e028dceaf3610877914c2a4497) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* bpo-44353: Refactor typing.NewType into callable class (GH-27250) (#27258)Miss Islington (bot)2021-07-201-0/+2
| | | | | (cherry picked from commit 965dd76e9060e27e2253ba8c8d21a142b178720d) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44524: Add missed __name__ and __qualname__ to typing module objects ↵Miss Islington (bot)2021-07-191-0/+2
| | | | | | | | (GH-27237) (#27246) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit bce1418541a64a793960182772f985f64afbfa1a) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-27513: email.utils.getaddresses() now handles Header objects (GH-13797) ↵Miss Islington (bot)2021-07-191-0/+3
| | | | | | | | | | | (GH-27242) getaddresses() should be able to handle a Header object if passed one. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 89f4c34797de2f0e5045da2b97c1c8cbbb42fbb2) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-41249: Fix postponed annotations for TypedDict (GH-27017) (#27204)Miss Islington (bot)2021-07-171-0/+2
| | | | | | | | | | This fixes TypedDict to work with get_type_hints and postponed evaluation of annotations across modules. This is done by adding the module name to ForwardRef at the time the object is created and using that to resolve the globals during the evaluation. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 889036f7ef7290ef15b6c3373023f6a35387af0c) Co-authored-by: Germán Méndez Bravo <german.mb@gmail.com>
* bpo-40897:Give priority to using the current class constructor in ↵Miss Islington (bot)2021-07-161-0/+2
| | | | | | | | `inspect.signature` (GH-27177) (#27189) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 6aab5f9bf303a8e4cd8377fabcdcb499e0541f9a) Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
* bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107)Miss Islington (bot)2021-07-131-0/+2
| | | | | | if it is called with a sequence or set, but not list or tuple. (cherry picked from commit f572cbf1faab33d9afbbe3e95738ed6fbe6e48e6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-38741: Definition of multiple ']' in header configparser (GH-17129) (#27110)Miss Islington (bot)2021-07-131-0/+1
| | | | | | | Co-authored-by: Jason Killen <jason.killen@windsorcircle.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 2924bb1a566977efd45f335d6a94cd84d8047edf) Co-authored-by: jsnklln <jsnklln@gmail.com>
* [Enum] add news entry for enum module reversion (GH-27099)Ethan Furman2021-07-121-0/+1
|
* bpo-43219: shutil.copyfile, raise a less confusing exception instead of ↵Miss Islington (bot)2021-07-091-0/+4
| | | | | | | | IsADirectoryError (GH-27049) Fixes the misleading IsADirectoryError to be FileNotFoundError. (cherry picked from commit 248173cc0483a9ad9261353302f1234cf9eb2ebe) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* Python 3.10.0b4v3.10.0b4Pablo Galindo2021-07-1018-33/+0
|
* [3.10] bpo-44446: support lineno being None in traceback.FrameSummary ↵Pablo Galindo2021-07-081-0/+1
| | | | | | | | | | | | | (GH-26781) (GH-27072) As of 088a15c49d99ecb4c3bef93f8f40dd513c6cae3b, lineno is None instead of -1 if there is no line number. Signed-off-by: Filipe Laíns <lains@riseup.net>. (cherry picked from commit 91a8f8c16ca9a7e2466a8241d9b41769ef97d094) Co-authored-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Filipe Laíns <lains@riseup.net>
* bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012)Miss Islington (bot)2021-07-051-0/+2
| | | | | (cherry picked from commit 09302405d22e86884d6058226790c0cdf5b72f14) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* [3.10] bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656) ↵Irit Katriel2021-07-031-0/+1
| | | | | | | (GH-27006) (cherry picked from commit d968a638fcbf9030c999cfacd4c9bf0656e779c4) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.10] bpo-30256: [doc] Fix formatting error in news (GH-26994) (GH-26998)Irit Katriel2021-07-021-1/+1
|
* bpo-34798: [doc] clearer presentation of pprint.PrettyPrinter constru… ↵Miss Islington (bot)2021-07-021-0/+1
| | | | | | | (GH-26967) (GH-26990) (cherry picked from commit 943e77d42d3f84b581f32c05f1fc8c05366b8ed3) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (#26987)Miss Islington (bot)2021-07-011-0/+1
| | | | | | | Co-authored-by: Jordan Speicher <jordan@jspeicher.com> (cherry picked from commit 85b920498b42c69185540ecc2f5c4907fd38d877) Co-authored-by: finefoot <33361833+finefoot@users.noreply.github.com>
* bpo-44464: Remove special exclusion for flake8 in the deprecation warnings. ↵Miss Islington (bot)2021-06-271-0/+2
| | | | | | | | | | (GH-26807) (GH-26929) Sync with importlib_metadata 4.6. (cherry picked from commit efe7d08d178a7c09bcca994f2068b019c8633d83) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-44404: tkinter `after` support callable classes (GH-26812)Miss Islington (bot)2021-06-271-0/+1
| | | | | (cherry picked from commit e9c8f784fa13ea3a51df3b72a498a3896ec9e768) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* [3.10] bpo-44468: Never skip base classes in `typing.get_type_hints()`, even ↵Miss Islington (bot)2021-06-261-0/+2
| | | | | | | | | | with invalid `.__module__`. (GH-26862) (GH-26920) (cherry picked from commit 7569c0fe91dfcf562dee8c29798ecda74d738aa8) Co-authored-by: will-ca <willchencontact@gmail.com> Automerge-Triggered-By: GH:gvanrossum
* [3.10] Update vendored pip to 21.1.3 (GH-26912) (gh-26917)Stéphane Bidoul2021-06-261-0/+1
|
* bpo-43977: Properly update the tp_flags of existing subclasses when their ↵Miss Islington (bot)2021-06-251-0/+3
| | | | | | | parents are registered (GH-26864) (cherry picked from commit ca2009d72a52a98bf43aafa9ad270a4fcfabfc89) Co-authored-by: Brandt Bucher <brandt@python.org>
* bpo-44482: Fix very unlikely resource leak in glob in non-CPython ↵Miss Islington (bot)2021-06-231-0/+2
| | | | | | | | implementations (GH-26843) (GH-26872) (cherry picked from commit 5c7940257e1f611e7284fd504887bd29a63d0a94) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol ↵Miss Islington (bot)2021-06-221-0/+3
| | | | | | | | | | correctly (GH-26764) (GH-26845) No longer use len() to get the length of the input data. For some buffer protocol objects, the length obtained by using len() is wrong. (cherry picked from commit bc6c12c72a9536acc96e7b9355fd69d1083a43c1) Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
* bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated. ↵Miss Islington (bot)2021-06-221-0/+1
| | | | | | | | (GH-26808) (GH-26844) * bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated. (cherry picked from commit 92c2e91580521ba5c85aa3205a0211df5b48689b) Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
* bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)Miss Islington (bot)2021-06-211-0/+2
| | | | | (cherry picked from commit 30f7a77f359a0fc6e37988b0f317a77a15d66b7b) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-44434: Don't call PyThread_exit_thread() explicitly (GH-26758) (GH-26824)Miss Islington (bot)2021-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | _thread.start_new_thread() no longer calls PyThread_exit_thread() explicitly at the thread exit, the call was redundant. On Linux with the glibc, pthread_cancel() loads dynamically the libgcc_s.so.1 library. dlopen() can fail if there is no more available file descriptor to open the file. In this case, the process aborts with the error message: "libgcc_s.so.1 must be installed for pthread_cancel to work" pthread_cancel() unwinds back to the thread's wrapping function that calls the thread entry point. The unwind function is dynamically loaded from the libgcc_s library since it is tightly coupled to the C compiler (GCC). The unwinder depends on DWARF, the compiler generates DWARF, so the unwinder belongs to the compiler. Thanks Florian Weimer and Carlos O'Donell for their help on investigating this issue. (cherry picked from commit 45a78f906d2d5fe5381d78466b11763fc56d57ba) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-44466: Faulthandler now detects the GC (GH-26823) (GH-26826)Victor Stinner2021-06-211-0/+2
| | | | | | The faulthandler module now detects if a fatal error occurs during a garbage collector collection (only if all_threads is true). (cherry picked from commit d19163912bfc790283724f05328bd31e4e65003d)
* bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)Miss Islington (bot)2021-06-201-0/+3
| | | | | | Co-authored-by: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit a317778fd58b1c6b250feffbdb4ecf15e293ef48) Co-authored-by: Georg Sauthoff <mail@georg.so>
* bpo-43024: improve signature (in help, etc) for functions taking sent… ↵Miss Islington (bot)2021-06-171-0/+1
| | | | | | | | (GH-24331) (GH-26773) …inel defaults (cherry picked from commit f73377d57c5272390de63cccc3c292c44689310a) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* Python 3.10.0b3v3.10.0b3Pablo Galindo2021-06-1713-29/+0
|
* bpo-44422: Fix threading.enumerate() reentrant call (GH-26727)Miss Islington (bot)2021-06-151-0/+3
| | | | | | | The threading.enumerate() function now uses a reentrant lock to prevent a hang on reentrant call. (cherry picked from commit 243fd01047ddce1a7eb0f99a49732d123e942c63) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42972: _thread.RLock implements the GH protocol (GH-26734)Miss Islington (bot)2021-06-151-0/+2
| | | | | | | The _thread.RLock type now fully implement the GC protocol: add a traverse function and the Py_TPFLAGS_HAVE_GC flag. (cherry picked from commit 1cd3d859a49b047dd08abb6f44f0539564d3525a) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-44351: Restore back parse_makefile in distutils.sysconfig (GH-26637) ↵Miss Islington (bot)2021-06-151-0/+2
| | | | | | | | | (GH-26673) The function uses distutils.text_file.TextFile and therefore behaves differently than _parse_makefile in sysconfig. (cherry picked from commit fc98266ff627ba0f56f8ae241245b66bc983baa3) Co-authored-by: Lumír 'Frenzy' Balhar <lbalhar@redhat.com>