Shantanu
a5dde0fe4f
gh-95066: ast: Replace assert with ValueError (GH-95072)
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2022-07-26 11:43:09 +02:00
Raymond Hettinger
4395ff1e6a
Statistics inv_cdf sync with corresponding random module normal distributions ( #95265 )
2022-07-26 02:23:33 -05:00
Mark Shannon
27055d766a
GH-92678: Expose managed dict clear and visit functions ( #95246 )
2022-07-25 22:30:53 +01:00
Oleg Iarygin
c5140945c7
gh-92546: Move pprint benchmark into pyperformance (GH-94613)
...
This PR couples with https://github.com/python/pyperformance/pull/222 and supersedes https://github.com/python/cpython/pull/92560 . Inspired by https://github.com/python/cpython/issues/93096#issuecomment-1134576471 .
Automerge-Triggered-By: GH:ericsnowcurrently
2022-07-25 11:30:13 -07:00
Ethan Furman
4e704d7847
gh-95077: [Enum] add code-based deprecation warnings for member.member access (GH-95083)
...
* issue deprecation warning for member.member access
* always store member property in current class
* remove __getattr__
2022-07-25 11:05:10 -07:00
Serhiy Storchaka
ea5ed0ba51
gh-95087: Fix IndexError in parsing invalid date in the email module (GH-95201)
...
Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
2022-07-25 09:17:25 +03:00
Christian Heimes
5956de16cd
gh-95212: make multiprocessing test case parallel-safe (GH-95213)
2022-07-25 06:44:40 +02:00
Jason R. Coombs
3e718cf880
gh-95218: Move tests for importlib.resources into test_importlib.resources. ( #95219 )
...
* gh-95218: Move tests for importlib.resources into test_importlib.resources.
* Also update makefile
* Include test_importlib/resources in code ownership rule.
2022-07-24 20:53:10 -04:00
Thomas Grainger
0c6f898005
gh-95051: ensure that timeouts scheduled with asyncio.Timeout that have already expired are deliverered promptly ( #95109 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-24 13:18:05 -07:00
Raymond Hettinger
eb9c8a8bea
log2() is faster than log() ( #95214 )
2022-07-24 14:21:29 -05:00
Pablo Galindo Salgado
0047447294
gh-95185: Check recursion depth in the AST constructor ( #95186 )
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-24 15:58:52 +01:00
Stéphane Bidoul
3c94d3395e
gh-95199: upgrade bundled setuptools to 63.2.0 (gh-95200)
2022-07-24 12:01:03 +01:00
Stéphane Bidoul
068ffafa54
gh-95194: upgrade bundled pip to 22.2 (gh-95195)
...
upgrade bundled pip to 22.2
2022-07-24 10:55:25 +01:00
Christian Heimes
8184f0fce3
gh-95174: Handle missing waitpid and gethostbyname in WASI (GH-95181)
2022-07-24 08:04:06 +02:00
Inada Naoki
5c7f3bcdaf
gh-93157: Fix fileinput didn't support errors in inplace mode (GH-95128)
2022-07-24 11:42:11 +09:00
Raymond Hettinger
a2fbc51198
Compute v only when needed. ( #95183 )
2022-07-23 18:07:17 -05:00
Christian Heimes
23f6944c37
gh-90385: Add skip_unless_symlink decorator to test_walk_symlink_location (GH-95182)
2022-07-23 23:42:04 +02:00
Christian Heimes
6839324894
gh-90473: Fix more tests on platforms without umask (GH-95164)
2022-07-23 12:26:31 +02:00
Erlend Egeberg Aasland
a3d4d15f53
gh-95132: Correctly relay *args and **kwds from sqlite3.connect to factory ( #95146 )
...
This PR partially reverts gh-24421 (PR) and fixes the remaining concerns
given in gh-93044 (issue):
- keyword arguments are passed as positional arguments to factory()
- if an argument is not passed to sqlite3.connect(), its default value
is passed to factory()
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-23 09:51:28 +02:00
Stanislav Zmiev
c1e929858a
gh-90385: Add pathlib.Path.walk() method (GH-92517)
...
Automerge-Triggered-By: GH:brettcannon
2022-07-22 16:55:46 -07:00
Brandt Bucher
e4d3a96a11
GH-94438: Handle extended arguments and conditional pops in mark_stacks (GH-95110)
2022-07-22 16:28:03 -07:00
Brandt Bucher
900bfc53cb
GH-94036: Fix more attribute location quirks (GH-95028)
2022-07-22 13:13:16 -07:00
Brandt Bucher
e402b26b7f
GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121)
2022-07-22 11:04:20 -07:00
David Benjamin
934b25dcc4
Fix typo in PROTOCOL_TO_TLS_VERSION in test_ssl (GH-95119)
...
This appears to be a typo. It causes try_protocol_combo to try to turn
on SSL 3.0 when testing PROTOCOL_SSLv23 (aka PROTOCOL_TLS), which
doesn't make any sense. Fix it to be PROTOCOL_SSLv3.
Without this, try_protocol_combo is actually setting
context.minimum_version to SSLv3 when called as
try_protocol_combo(ssl.PROTOCOL_TLS, ssl.PROTOCOL_TLS, True)
One would think this causes a no-ssl3 OpenSSL build to fail, but OpenSSL
forgot to make SSL_CTX_set_min_proto_version(SSL3_VERSION) does not
notice no-ssl3, so this typo has gone undetected. But we should still
fix the typo because, presumably, a future version of OpenSSL will
remove SSL 3.0 and do so more thoroughly, at which point this will
break.
2022-07-21 17:38:15 -07:00
Shantanu
b4378948a0
gh-95105: Return Iterator from wsgiref.types.InputStream.__iter__ ( #95106 )
2022-07-21 13:26:04 -07:00
Thomas Grainger
834bd5dd76
gh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_watcher (GH-95009)
...
The test was never run, because it was missing the TestCase class.
The test failed because the wrong attribute was patched.
2022-07-21 14:35:20 +03:00
Barney Gale
fd4a42d890
gh-82116: add comment explaining use of list(scandir_it) in pathlib. (GH-94939)
...
Automerge-Triggered-By: GH:brettcannon
2022-07-20 14:34:13 -07:00
Brandt Bucher
742d4614e1
GH-91409: Don't overwrite valid locations with NOP locations (GH-95067)
2022-07-20 14:27:31 -07:00
Erlend Egeberg Aasland
6dadf6ca01
gh-90016: Deprecate default sqlite3 adapters and converters ( #94276 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-20 21:37:59 +02:00
Erlend Egeberg Aasland
9d09e7b026
gh-94998: Remove redundant condition in test_sqlite3/__main__.py ( #95052 )
2022-07-20 18:07:47 +02:00
Oleg Iarygin
ed4441567e
gh-94844: Add pathlib support to shutil archive management (GH-94846)
...
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2022-07-20 18:55:12 +03:00
Terry Jan Reedy
bd390ef825
gh-90654: Remove unneeded blank line ( #95044 )
2022-07-20 05:38:56 -04:00
Terry Jan Reedy
acb105a7c1
gh-90654: Add item missing from idlelib/NEWS.txt ( #95038 )
2022-07-20 03:18:10 -04:00
Erlend Egeberg Aasland
be09bae608
gh-93370: Don't print deprecated pysqlite version in test_sqlite3 ( #95017 )
2022-07-19 23:04:20 +02:00
Brandt Bucher
f36589510b
GH-91153: Handle mutating __index__ methods in bytearray item assignment (GH-94891)
2022-07-19 09:42:40 -07:00
Florian Bruhin
3f2dd0a7c0
test_concurrent_futures: Fix unneeded/confusing format call ( #93119 )
...
Added in 339fd46cb7 - but as noted in a comment, the test only tests ThreadPoolExecutor.
2022-07-18 19:12:40 -07:00
Shantanu
0daba82221
gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version ( #94950 )
...
* gh-94949: Disallow parsing parenthesised ctx manager with old feature_version
* 📜 🤖 Added by blurb_it.
* Allow it with feature_version=(3, 9) as well
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2022-07-18 22:10:49 +01:00
Ethan Furman
73eab9f35c
Revert "gh-93910: [Enum] restore member.member restriction while keeping performance boost (GH-94913)" ( #94985 )
...
This reverts commit c20186c397 .
2022-07-18 13:22:52 -07:00
Michael Droettboom
4b5360c7d5
Revert "gh-94816: Improve coverage of decode_linetable (GH-94853)" (GH-94982)
...
This reverts commit 20b9d2a658 .
2022-07-18 13:08:31 -07:00
Brandt Bucher
daf68ba92f
GH-94822: Don't specialize when metaclasses are involved (GH-94892)
2022-07-18 10:10:22 -07:00
Serhiy Storchaka
067f0da335
gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931)
2022-07-18 18:07:31 +03:00
Mark Shannon
2f8bff6879
GH-94739: Mark stacks of exception handling blocks for setting frame.f_lineno in the debugger. (GH-94958)
2022-07-18 16:06:42 +01:00
Shantanu
ae0be5a53b
gh-94947: Disallow parsing walrus with feature_version < (3, 8) ( #94948 )
...
* gh-94947: Disallow parsing walrus with feature_version < (3, 8)
* oops, commit the parser
* 📜 🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2022-07-18 10:20:12 +01:00
Ethan Furman
c961d14f85
gh-94601: [Enum] fix inheritance for __str__ and friends (GH-94942)
2022-07-17 18:51:04 -07:00
Thomas Grainger
07aeb7405e
gh-72889: Remove redundant mock.Mock()._is_coroutine = False workarounds ( #94926 )
2022-07-17 10:21:58 -07:00
Steve Dower
044a593cbb
gh-91348: Restore frame argument to sys._getframe audit event (GH-94928)
2022-07-17 16:11:24 +01:00
Ethan Furman
c20186c397
gh-93910: [Enum] restore member.member restriction while keeping performance boost (GH-94913)
2022-07-16 18:13:57 -07:00
Thomas Grainger
6da988a46c
gh-91181: drop support for bytes on sys.path (GH-31934)
...
Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it.
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
2022-07-16 18:07:53 -07:00
Pablo Galindo Salgado
2e9da8e352
gh-94869: Fix the location in some expressions for multi-line f-string ast nodes ( #94895 )
2022-07-16 19:51:53 +01:00
Paul Moore
407ff6556c
gh-94772: Fix off-by-one error in Windows launcher (GH-94779)
2022-07-16 10:02:22 +01:00