Inada Naoki
4663e5f39e
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25190)
...
* Fix test_lzma
* Fix test_mailbox
* Fix test_mimetypes
* Fix test_posix
2021-04-06 13:02:22 +09:00
Inada Naoki
fb78692f2a
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189)
...
* Fix _sitebuiltins
* Fix test_inspect
* Fix test_interpreters
* Fix test_io
* Fix test_iter
* Fix test_json
* Fix test_linecache
* Fix test_lltrace
* Fix test_logging
* Fix logging
2021-04-06 11:18:41 +09:00
Brandt Bucher
f84d5a1136
bpo-42128: __match_args__ can't be a list anymore (GH-25203)
2021-04-05 19:17:08 -07:00
Inada Naoki
3d4af4a876
bpo-43651: Fix EncodingWarning in sysconfig (GH-25192)
2021-04-06 10:01:11 +09:00
Raymond Hettinger
7bc25ec727
bpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175)
2021-04-05 12:48:24 -07:00
Zackery Spytz
75220674c0
bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867)
...
Co-Authored-By: Claudiu Popa <pcmanticore@gmail.com>
Automerge-Triggered-By: GH:ericvsmith
2021-04-05 12:41:01 -07:00
Zackery Spytz
14829b09eb
bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
...
The previous "Fundamental data types" section says a c_char_p must be bytes (or None).
2021-04-05 15:21:00 -04:00
Terry Jan Reedy
4e2ef70841
Fix typo in turtledemo.two_canvases. (GH-25194)
2021-04-05 13:19:13 -04:00
Pablo Galindo
04eecf7fac
Post 3.10.0a7
2021-04-05 18:04:54 +01:00
Pablo Galindo
53e55290cf
Python 3.10.0a7
2021-04-05 17:39:49 +01:00
Pablo Galindo
57f21db3f6
Fix the "make suspicious" check on the pprint docs (GH-25193)
2021-04-05 17:38:10 +01:00
Serhiy Storchaka
b1dc1aacf8
bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398)
2021-04-05 16:50:24 +03:00
Inada Naoki
c8e5eb904e
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181)
...
* Fix test_shutil
* Fix test_imp
* Fix test_import
* Fix test_importlib
2021-04-05 13:11:23 +09:00
Inada Naoki
ee952b5c73
bpo-43651: PEP 597: Fix EncodingWarning in test_filecmp (GH-25159)
2021-04-05 12:32:35 +09:00
Inada Naoki
de522a89e4
bpo-43651: PEP 597: Fix test_email (GH-25158)
2021-04-05 12:30:12 +09:00
Ken Jin
2b5913b4ee
bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs ( #25183 )
2021-04-04 08:14:44 -07:00
Irit Katriel
aadd4e10fd
bpo-24160: Fix test_pdb refleaks failure (GH-25182)
2021-04-04 16:04:53 +01:00
Dennis Sweeney
c368ce74d2
bpo-27129: Update magic numbers and bootstrapping for GH-25069 (GH-25172)
...
* Update magic numbers and bootstrapping for GH-25069
* add blurb
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-04-04 09:33:22 +01:00
Inada Naoki
3caea9adda
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25171)
...
* Fix test_float
* Fix _osx_support
* Fix test_fstring
* Fix test_gc
* Fix test_gzip
* Fix test_hashlib
* Fix unrelated whitespace issue
Co-authored-by: Ned Deily <nad@python.org>
2021-04-04 17:01:10 +09:00
Raymond Hettinger
f8775e4f72
bpo-43325: Add FAQ entry for identity tests (GH-25168)
2021-04-03 19:54:49 -07:00
Inada Naoki
35715d1e72
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145)
...
* test_asyncio
* test_bz2
* test_math
* test_cmath
* test_cmd_line
* test_cmd_line_script
* test_compile
* test_contextlib
* test_profile
* ctypes/test/test_find
* test_multiprocessing
* test_configparser
* test_csv
* test_dbm_dumb
* test_decimal
* test_difflib
* os.fdopen() calls io.text_encoding() to emit EncodingWarning for right place.
2021-04-04 09:01:23 +09:00
Brett Cannon
dc6d3e1e4c
bpo-43720: Update import-related stdlib deprecation messages to say they will be removed in Python 3.12 (GH-25167)
2021-04-03 15:31:15 -07:00
Raymond Hettinger
c5354c045c
Replace broken example code with correct simpler code. (GH-25162)
...
The open() was missing 'w' to indicate it was in a write-mode.
Even then, the open().close() operation was distracting because
it is an unusual way to "touch" as file. Using os.remove()
instead is simpler and less distracting.
2021-04-03 13:09:01 -07:00
Raymond Hettinger
e4c8895ee5
Add more tests for the descriptor tutorial (GH-25164)
2021-04-03 13:07:52 -07:00
Ammar Askar
b2a91e0c9e
bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)
...
Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has.
Automerge-Triggered-By: GH:gvanrossum
2021-04-02 14:25:31 -07:00
Brett Cannon
f97dc80068
bpo-43672: raise ImportWarning when calling find_loader() (GH-25119)
2021-04-02 12:35:32 -07:00
Irit Katriel
ad442a674c
bpo-24160: Fix breakpoints persistence across multiple pdb sessions (GH-21989)
2021-04-02 09:15:21 -07:00
Zackery Spytz
afd1265058
bpo-31956: Add start and stop parameters to array.index() (GH-25059)
...
Co-Authored-By: Anders Lorentsen <Phaqui@gmail.com>
2021-04-03 00:28:35 +09:00
Victor Stinner
240bcf82a1
bpo-41111: xxlimited.c defines Py_LIMITED_API (GH-25151)
...
xxlimited.c and xxlimited_35.c now define the Py_LIMITED_API macro,
rather than having to do it in the build recipe.
Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-04-02 16:48:11 +02:00
Victor Stinner
9bb5658bd1
bpo-43688: Support "make regen-limited-abi" in debug mode (GH-25133)
2021-04-02 16:46:08 +02:00
Victor Stinner
3359cab038
bpo-43688: Support the limited C API in debug mode (GH-25131)
...
The limited C API is now supported if Python is built in debug mode
(if the Py_DEBUG macro is defined). In the limited C API, the
Py_INCREF() and Py_DECREF() functions are now implemented as opaque
function calls, rather than accessing directly the PyObject.ob_refcnt
member, if Python is built in debug mode and the Py_LIMITED_API macro
targets Python 3.10 or newer. It became possible to support the
limited C API in debug mode because the PyObject structure is the
same in release and debug mode since Python 3.8 (see bpo-36465).
The limited C API is still not supported in the --with-trace-refs
special build (Py_TRACE_REFS macro).
2021-04-02 15:45:37 +02:00
Victor Stinner
442ad74fc2
bpo-43687: Py_Initialize() creates singletons earlier (GH-25147)
...
Reorganize pycore_interp_init() to initialize singletons before the
the first PyType_Ready() call. Fix an issue when Python is configured
using --without-doc-strings.
2021-04-02 15:28:13 +02:00
Mark Shannon
58384c6ab0
Document PyCode_Addr2Line function. (GH-25111)
...
* Document PyCode_Addr2Line function.
* Clarify when to use PEP 626 line iterators.
2021-04-02 13:24:57 +01:00
Inada Naoki
bec8c787ec
bpo-43510: Fix emitting EncodingWarning from _io module. (GH-25146)
...
I forget to check PyErr_WarnEx() return value. But it will fail when -Werror is used.
2021-04-02 17:38:59 +09:00
Inada Naoki
8bbfeb3330
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142)
...
* test__xxsubinterpreters
* test_builtin
* test_doctest
* test_exceptions
* test_opcodes
* test_support
* test_argparse
* test_baseexception
* test_bdb
* test_bool
* test_asdl_parser
2021-04-02 12:53:46 +09:00
Erlend Egeberg Aasland
bef7b26f72
bpo-43700: Replace Zulip badge with Discourse badge (GH-25141)
...
Automerge-Triggered-By: GH:zware
2021-04-01 20:30:40 -07:00
Inada Naoki
80017752ba
bpo-43651: Fix test_compileall with PEP 597 (GH-25128)
2021-04-02 09:01:57 +09:00
Inada Naoki
c0ec4486dc
bpo-43651: Fix EncodingWarning in lib2to3/pgen2/pgen.py (GH-25127)
2021-04-02 08:59:15 +09:00
Inada Naoki
036fc7de24
bpo-43651: Fix EncodingWarning in test_warnings (GH-25126)
2021-04-02 08:57:05 +09:00
Irit Katriel
bd4ab8e739
bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)
2021-04-01 21:05:51 +02:00
Zackery Spytz
e689cdca3c
bpo-43677: Fix a minor error in Doc/howto/descriptor.rst ( #25123 )
...
It should be PyMethod_Type, not Py_MethodType.
2021-04-01 10:03:33 -07:00
Irit Katriel
652bfdee94
bpo-26053: Fix args echoed by pdb run command ( #22033 )
2021-04-01 08:25:59 -07:00
Mark Shannon
fcb55c0037
bpo-27129: Use instruction offsets, not byte offsets, in bytecode and internally. (GH-25069)
...
* Use instruction offset, rather than bytecode offset. Streamlines interpreter dispatch a bit, and removes most EXTENDED_ARGs for jumps.
* Change some uses of PyCode_Addr2Line to PyFrame_GetLineNumber
2021-04-01 16:00:31 +01:00
Victor Stinner
2ac0515027
bpo-43688: Fix Py_LIMITED_API version of xxlimited (GH-25135)
...
xxlimited targets Python 3.10, not Python 3.16: fix the hexadecimal
version number used in the Py_LIMITED_API macro.
2021-04-01 15:09:33 +02:00
Victor Stinner
61092a99c4
bpo-43690: stable_abi.py no longer parses macros (GH-25136)
...
The stable_abi.py script no longer parse macros. Macro targets can be
static inline functions which are not part of the stable ABI, only
part of the limited C API.
Run "make regen-limited-abi" to exclude PyType_HasFeature from
Doc/data/stable_abi.dat.
2021-04-01 14:13:42 +02:00
Victor Stinner
baf10da750
bpo-43688: Run make regen-limited-abi (GH-25134)
2021-04-01 11:29:46 +02:00
Don Kirkby
18701a0608
Fix typos in 3.10 "What's new" (GH-25104)
2021-04-01 15:00:30 +09:00
Tim Peters
078a3433eb
When printing stats, move radix tree info to its own section. (GH-25125)
...
When printing stats, move radix tree info to its own section.
Restore that the breakdown of bytes in arenas exactly accounts for the total of arena bytes allocated.
Add an assert so that invariant doesn't break again.
2021-03-31 22:46:31 -05:00
Inada Naoki
58cffba187
bpo-43651: Fix EncodingWarning in test_io (GH-25097)
2021-04-01 11:25:04 +09:00
Inada Naoki
55f31be44b
bpo-43651: Fix EncodingWarning in test_file and test_file_eintr (GH-25109)
2021-04-01 11:23:03 +09:00