Steve Dower
34e1917912
gh-106242: Minor fixup to avoid compiler warnings (GH-107983)
2023-08-15 17:02:32 +00:00
Irit Katriel
971a4c2751
gh-103082: remove assumption that INSTRUMENTED_LINE is the last instrumented opcode ( #107978 )
2023-08-15 16:40:05 +01:00
Finn Womack
0932272431
gh-106242: Fix path truncation in os.path.normpath (GH-106816)
2023-08-15 16:33:00 +01:00
Erlend E. Aasland
607f18c894
gh-107972: Argument Clinic: Ensure a C basename is provided after 'as' ( #107973 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-15 14:41:40 +00:00
Erlend E. Aasland
e90036c9bd
gh-107880: Argument Clinic: Fix regression in gh-107885 ( #107974 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-08-15 14:00:52 +00:00
Dong-hee Na
6515ec3d3d
gh-107963: Fix set_forkserver_preload to check the type of given list ( #107965 )
...
gh-107963: Fix set_forkserver_preload to check the type of given list
2023-08-15 15:58:12 +02:00
Lysandros Nikolaou
d66bc9e8a7
gh-107967: Fix infinite recursion on invalid escape sequence warning ( #107968 )
2023-08-15 11:26:42 +00:00
Erlend E. Aasland
13c36dc9ae
gh-93057: Deprecate positional use of optional sqlite3.connect() params ( #107948 )
2023-08-15 08:09:56 +00:00
Romuald Brunet
a482e5bf00
gh-76913: Add "merge extras" feature to LoggerAdapter (GH-107292)
2023-08-15 08:23:54 +01:00
Dong-hee Na
580f357c66
Revert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC … (gh-107951)
...
Revert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC (gh-107857)"
This reverts commit 2e27da1895
.
2023-08-14 23:25:57 +00:00
Alex Waygood
8d3cb1bc4b
Convert the GitHub issue templates into GitHub issue forms ( #107920 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2023-08-14 22:37:27 +00:00
Guido van Rossum
a2a4b9f1ec
Attempt to speed up deepfreeze.py ( #107887 )
...
* Instead of calling get_identifiers_and_strings(), extract identifiers and strings from pycore_global_strings.h.
* Avoid ast.literal_eval(), it's very slow.
2023-08-14 14:41:27 -07:00
Irit Katriel
39745347f6
gh-105481: reduce repetition in opcode metadata generation code ( #107942 )
2023-08-14 18:36:29 +00:00
Erlend E. Aasland
6fbaba552a
gh-107938: Synchonise the signature of of sqlite3.connect and sqlite3.Connection.__init__ ( #107939 )
2023-08-14 16:37:44 +02:00
Irit Katriel
608927b014
gh-103082: use IS_VALID_OPCODE instead of _PyOpcode_OpName to check if an opcode is defined ( #107882 )
2023-08-14 10:51:50 +01:00
Joon Hwan 김준환
c3887b57a7
gh-107910: Remove not needing newline in error message (GH-107928)
2023-08-14 12:26:18 +03:00
Vinay Sajip
cc2cf85d03
gh-107877: Update logging levels reference table with usage criteria. ( #107894 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-08-13 14:19:41 +01:00
Raymond Hettinger
2b6dc2accc
Add another example to the statistics docs (GH-107904)
2023-08-13 08:01:23 -05:00
Erlend E. Aasland
9b75ada6e4
gh-107880: Teach Argument Clinic to clone __init__ and __new__ methods ( #107885 )
2023-08-13 12:13:11 +02:00
Nikita Sobolev
7ddc1eaff1
Improve `_typing.__doc__` ( #107908 )
2023-08-13 10:24:59 +01:00
Erlend E. Aasland
ee40b3e20d
gh-107883: Argument Clinic: Handle full module/class path in Function.fulldisplayname ( #107884 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-08-12 23:46:00 +00:00
Dong-hee Na
bf707749e8
gh-106797: Remove warning logs from Python/generated_cases.c.h and executor_cases.c.h (gh-107889)
...
gh-106797: Remove warning logs from Python/generated_cases.c.h
2023-08-13 04:36:46 +09:00
wookie184
2e1f688fe0
gh-107891: Fix typo in 3.12 whatsnew ( #107892 )
2023-08-12 12:05:22 +00:00
nahyeon
2e27da1895
gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC (gh-107857)
2023-08-12 09:57:35 +09:00
Nikita Sobolev
d93b4ac2ff
gh-101162: Forbid using issubclass() with GenericAlias as the 1st arg (GH-103369)
2023-08-11 22:12:11 +03:00
Mark Shannon
666b68e8f2
GH-106485: Create object's dict-values instead of creating __dict__, when we can. (GH-107843)
2023-08-11 20:05:56 +01:00
Carl Meyer
66e4edd734
gh-91051: fix segfault when using all 8 type watchers ( #107853 )
2023-08-11 12:42:26 -06:00
Serhiy Storchaka
04cc01453d
gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832)
...
* Strings with length from 2**31-1 to 2**32-2 always caused MemoryError,
it doesn't matter how much memory is available.
* Strings with length exactly 2**32-1 caused OSError.
* Strings longer than 2**32-1 characters were truncated due to integer overflow bug.
* Strings containing the null character were truncated at the first null character.
Now strings longer than 2**31-1 characters caused OverflowError and the null character is allowed.
2023-08-11 21:13:46 +03:00
Serhiy Storchaka
a39f0a3506
gh-107782: Pydoc: fall back to __text_signature__ if inspect.signature() fails (GH-107786)
...
It allows to show signatures which are not representable in Python,
e.g. for getattr and dict.pop.
2023-08-11 20:51:36 +03:00
Andrew Geng
5f7d4ecf30
gh-106558: break ref cycles through exceptions in multiprocessing manager ( #106559 )
2023-08-11 17:44:18 +00:00
Irit Katriel
caa41a4f1d
gh-105481: split opcode_ids.h out of opcode.h so that it can be generated separately ( #107866 )
2023-08-11 17:42:01 +01:00
Raymond Hettinger
52e0797f8e
Extend _sqrtprod() to cover the full range of inputs. Add tests. (GH-107855)
2023-08-11 11:19:19 -05:00
Erlend E. Aasland
637f7ff2c6
Docs: Document PyBUF_MAX_NDIM ( #107865 )
2023-08-11 18:03:53 +02:00
Serhiy Storchaka
3901c991e1
gh-84805: Autogenerate signature for METH_NOARGS and METH_O extension functions (GH-107794)
2023-08-11 18:08:38 +03:00
shailshouryya
23a6db98f2
gh-107421: Clarify `OrderedDict` Examples and Recipes ( #107613 )
2023-08-10 23:43:13 -05:00
Martin DeMello
50bbc56009
Fix the long64 reader in umarshal.py (GH-107828)
2023-08-10 23:43:14 +03:00
Marc Mueller
16dcce2176
gh-107810: Improve DeprecationWarning for metaclasses with custom tp_new (GH-107834)
...
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2023-08-10 15:55:47 +00:00
Eric V. Smith
e4275f4df3
gh-107838: In dataclasses, improve error message when a non-default field follows a default field. (gh-107842)
...
Add the name of the previous default argument field in an error message.
2023-08-10 10:39:13 -04:00
Mark Shannon
37d8b904f8
GH-107674: Avoid allocating boxed ints for `sys.settrace` line events (GH-107780)
2023-08-10 13:35:02 +01:00
Mark Shannon
1d976b2da2
GH-106485: Handle dict subclasses correctly when dematerializing `__dict__` (GH-107837)
2023-08-10 13:34:00 +01:00
Irit Katriel
bafedfbebd
gh-106149: move CFG and basicblock definitions into flowgraph.c, use them as opaque types in compile.c ( #107639 )
2023-08-10 13:03:47 +01:00
Mark Shannon
494e3d4436
GH-107774: Add missing audit event for PEP 669 (GH-107775)
2023-08-10 12:29:06 +01:00
Erlend E. Aasland
39ef93edb9
gh-95065: Argument Clinic: Add functional tests of deprecated positionals ( #107768 )
...
Move the "deprecated positinal" tests from clinic.test.c to
_testclinic.c. Mock PY_VERSION_HEX in order to prevent generated
compiler warnings/errors to trigger. Put clinic code for deprecated
positionals in Modules/clinic/_testclinic_depr_star.c.h for easy
inspection of the generated code.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-08-10 07:19:05 +00:00
denballakh
4845b9712f
gh-107409: set `__wrapped__` attribute in `reprlib.recursive_repr` ( #107410 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2023-08-10 06:55:49 +00:00
Kostya Farber
0f2fb6efb4
gh-107689: Add docstring to `ctypes.Array` ( #107697 )
2023-08-10 06:39:14 +00:00
Guido van Rossum
4890bfe1f9
Update README for the cases generator ( #107826 )
2023-08-10 01:05:51 +00:00
Mina Galić
f50c17243a
GH-107812: extend `socket`'s netlink support to FreeBSD (gh-107813)
2023-08-10 00:47:46 +00:00
Carl Meyer
2ec16fed14
gh-91054: make code watcher tests resilient to other watchers ( #107821 )
2023-08-09 16:42:32 -06:00
Max Bachmann
1e229e2c3d
gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815)
2023-08-09 23:42:16 +01:00
Brandt Bucher
326f0ba1c5
GH-106485: Dematerialize instance dictionaries when possible (GH-106539)
2023-08-09 19:14:50 +00:00