Ken Jin
7aac3f6236
bpo-44353: Document that typing.NewType is now a class ( #27319 )
2021-07-24 10:53:49 +02:00
Serhiy Storchaka
e89ef0ad2a
bpo-44353: Expand NewType tests for complex __qualname__. ( #27311 )
...
Make NewType pickleable by name.
2021-07-24 09:40:08 +02:00
Sebastian Rittau
4512848ab9
Fix a deprecation warning in typing tests ( #27312 )
...
The test was accessing typing.{io,re}.__all__, which triggered the
warning. This check isn't necessary anymore, since the objects from
typing.{io,re}.__all__ are in typing.__all__ as well, since Python 3.10.
2021-07-23 11:53:29 -07:00
Pablo Galindo Salgado
83d1430ee5
bpo-42854: Correctly use size_t for _ssl._SSLSocket.read and _ssl._SSLSocket.write (GH-27271)
2021-07-23 16:05:53 +01:00
Yurii Karabas
8f42106b5c
bpo-44353: Fix memory leak introduced by GH-27262 (GH-27305)
2021-07-23 16:28:05 +02:00
Dong-hee Na
906fe47083
bpo-44611: Use BCryptGenRandom instead of CryptGenRandom on Windows (GH-27168)
2021-07-23 23:04:30 +09:00
Petr Viktorin
a4760cc32d
bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260)
...
* Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG
The field is always present in the type struct, as explained
in the added comment.
* Remove Py_TPFLAGS_HAVE_AM_SEND
The flag is not needed, and since it was added in 3.10 it can be removed now.
2021-07-23 06:21:11 -07:00
seb-hub
7d28a6eb90
Improve consistency of colorsys.rgb_to_hsv (GH-27277)
...
Cache repeated difference to make code easier to read and consistent with colorsys.rgb_to_hls.
2021-07-23 09:59:30 -03:00
Anthony Sottile
17575f73ce
bpo-29298: Fix crash with required subparsers without dest (GH-3680)
...
Automerge-Triggered-By: GH:encukou
2021-07-23 05:49:04 -07:00
Yurii Karabas
fe13f0b0f6
bpo-44676: Add ability to serialize types.Union (GH-27244)
2021-07-23 11:47:00 +02:00
Jack DeVries
7d25254cf0
bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297)
...
This fixes a small typo. The code fragment should not be quoted. Thank you
@merwok for the feedback.
2021-07-22 16:06:18 -07:00
Serhiy Storchaka
2e3744d50b
bpo-44653: Support typing types in parameter substitution in the union type. (GH-27247)
2021-07-22 23:57:06 +02:00
Yurii Karabas
96c4cbd96c
bpo-44353: Implement typing.NewType __call__ method in C ( #27262 )
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Denis Laxalde <denis@laxalde.org>
2021-07-22 23:06:54 +02:00
Łukasz Langa
f1afef5e0d
bpo-44708: Only re-run test methods that match names of previously failing test methods (GH-27287)
...
* Move to a static argparse.Namespace subclass
* Roughly annotate runtest.py
* Refactor libregrtest to use lossless test result objects
* Only re-run test methods that match names of previously failing test methods
* Adopt tests to cover test method name matching
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-22 20:25:58 +02:00
Jack DeVries
50ffbe3daf
bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., shell=True) (GH-26755)
2021-07-22 19:23:29 +01:00
Steven Hsu
c05a790693
bpo-44651: delete entry of "coercion" in Doc/glossary.rst (GH-27226)
...
bpo 44651: delete entry of "coercion".
2021-07-22 13:18:07 +01:00
Jacob Walls
c0f2fcf9bb
Speed up test_urlsplit_normalization (GH-26688)
2021-07-22 10:45:53 +03:00
Elliot Waite
92a5c0871b
Fix typo in collections.rst ( #27270 )
2021-07-22 09:31:22 +02:00
Dennis Sweeney
c878f5d817
bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281)
2021-07-21 18:49:03 -05:00
Thomas Grainger
ab7fcc8fbd
bpo-44686 replace unittest.mock._importer with pkgutil.resolve_name (GH-18544)
...
Automerge-Triggered-By: GH:cjw296
2021-07-21 04:47:44 -07:00
andrei kulakov
64f54b7ccd
bpo-30511: Add note on thread safety to shutil.make_archive() ( #26933 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-21 10:33:11 +02:00
Mohamad Mansour
3b56b3b97d
bpo-44539: Support recognizing JPEG files without JFIF or Exif markers (GH-26964)
...
Co-authored-by: moemansour03@gmail.com <m.mansour@tecfrac.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-20 20:56:57 +02:00
Jakub Kulík
6564656495
bpo-43219: skip Solaris in the test as well (GH-27257)
2021-07-20 11:16:23 -07:00
Thomas Grainger
7f1c330da3
bpo-44566: resolve differences between asynccontextmanager and contextmanager ( #27024 )
2021-07-20 20:15:07 +02:00
Leonardo Freua
85fa3b6b7c
bpo-44631: Make the repr() of the _Environ class more readable. ( #27128 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-20 19:15:45 +02:00
Ned Deily
42205ee512
Update macOS build-installer script comments for 3.10 and remove unused pre-10.5 vestiges. (GH-27253)
2021-07-20 19:09:30 +02:00
Batuhan Taskaya
fbc349ff79
bpo-43950: Distinguish errors happening on character offset decoding (GH-27217)
2021-07-20 16:42:12 +01:00
Yurii Karabas
4868b94c60
bpo-44353: Add test to cover __or__ of two NewType ( #27259 )
2021-07-20 16:48:05 +02:00
Yurii Karabas
965dd76e90
bpo-44353: Refactor typing.NewType into callable class (GH-27250)
2021-07-20 15:20:38 +02:00
Erlend Egeberg Aasland
4c0deb25ac
bpo-42064: Finalise establishing sqlite3 global state (GH-27155)
...
With this, all sqlite3 static globals have been moved to the global state.
There are a couple of global static strings left, but there should be no need for adding them to the state.
https://bugs.python.org/issue42064
2021-07-20 12:59:18 +02:00
Idan Moral
366fcbac18
bpo-44678: Separate error message for discontinuous padding in binascii.a2b_base64 strict mode (GH-27249)
...
* Renamed assertLeadingPadding function to match logic
* Added a separate error message for discontinuous padding
* Updated the tests for discontinuous padding
2021-07-19 15:42:19 -07:00
Sondre Lillebø Gundersen
e25e43e355
correct spelling (GH-27076)
2021-07-19 17:46:42 -03:00
Yurii Karabas
bce1418541
bpo-44524: Add missed __name__ and __qualname__ to typing module objects ( #27237 )
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-07-19 19:22:12 +02:00
Zackery Spytz
89f4c34797
bpo-27513: email.utils.getaddresses() now handles Header objects ( #13797 )
...
getaddresses() should be able to handle a Header object if passed
one.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-19 18:07:54 +02:00
α∂мιηιχтяαтσя
1e651c6ada
Clean up comma usage in Doc/library/functions.rst ( #27083 )
2021-07-19 18:02:23 +02:00
Julien Palard
fbf10080bb
bpo-42238: Fix small rst issue in NEWS.d/. ( #27238 )
2021-07-19 16:34:48 +02:00
Dennis Sweeney
d01dceb88b
bpo-41972: Tweak fastsearch.h string search algorithms (GH-27091)
2021-07-19 12:58:32 +02:00
Dong-hee Na
b2cf2513f9
bpo-44340: Add support for building with clang full/thin lto (GH-27231)
2021-07-19 19:52:56 +09:00
Dong-hee Na
635bfe8162
bpo-44661: Update property_descr_set to use vectorcall if possible. (GH-27206)
2021-07-19 19:13:27 +09:00
Mark Shannon
d09c134178
bpo-44645: Check for interrupts on any potentially backwards edge (GH-27216)
2021-07-19 11:10:21 +01:00
Irit Katriel
aab1899c9d
bpo-41546: make pprint (like print) not write to stdout when it is None (GH-26810)
2021-07-19 10:19:02 +01:00
Jason R. Coombs
2c20558844
bpo-44554: refactor pdb targets (and internal tweaks) (GH-26992)
...
- Refactor module/script handling to share an interface (check method).
- Import functools and adjust tests for the new line number for find_function.
- Use cached_property for details.
- Add blurb.
Automerge-Triggered-By: GH:jaraco
2021-07-18 18:00:35 -07:00
Idan Moral
35b98e38b6
bpo-43086: Add handling for out-of-spec data in a2b_base64 (GH-24402)
...
binascii.a2b_base64 gains a strict_mode= parameter. When enabled it will raise an
error on input that deviates from the base64 spec in any way. The default remains
False for backward compatibility.
Code reviews and minor tweaks by: Gregory P. Smith <greg@krypto.org> [Google]
2021-07-18 17:45:19 -07:00
Steven Hsu
b494685b25
bpo-44561: Update hyperlinks in Doc/distributing/index.rst ( #27032 )
...
* Update hyperlinks in Doc/distributing/index.rst
Update three expired hyperlinks.
Closes bpo-44561.
2021-07-19 10:10:48 +10:00
Batuhan Taskaya
a045991f60
bpo-42355: symtable.get_namespace() now checks whether there are multiple or any namespaces found (GH-23278)
2021-07-18 15:56:09 +03:00
Serhiy Storchaka
8f50f44592
bpo-44654: Do not export the union type related symbols (GH-27223)
2021-07-18 15:55:20 +03:00
Serhiy Storchaka
3ea5332a43
bpo-44633: Fix parameter substitution of the union type with wrong types. (GH-27218)
...
A TypeError is now raised instead of returning NotImplemented.
2021-07-18 12:10:19 +03:00
Serhiy Storchaka
0fd27375ca
bpo-44654: Refactor and clean up the union type implementation (GH-27196)
2021-07-17 22:44:10 +03:00
Ken Jin
f88e138a1a
bpo-20291: Fix MSVC warnings in getargs.c (GH-27211)
...
* Fix MSVC warnings in getargs.c
* apply suggestions
Co-Authored-By: Batuhan Taskaya <batuhan@python.org>
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
2021-07-17 14:09:18 +03:00
Hasan
689b05c628
bpo-42095: plistlib: Add tests that compare with plutil(1) ( #27173 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-17 12:11:04 +02:00