Serhiy Storchaka
694d31e714
bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)
2020-06-30 09:33:22 +03:00
Inada Naoki
038dd0f79d
bpo-36346: Raise DeprecationWarning when creating legacy Unicode (GH-20933)
2020-06-30 15:26:56 +09:00
Serhiy Storchaka
349f76c6aa
bpo-36346: Prepare for removing the legacy Unicode C API (AC only). (GH-21223)
2020-06-30 09:03:15 +03:00
Inada Naoki
b3332660ad
bpo-41123: Remove PyUnicode_AsUnicodeCopy (GH-21209)
2020-06-30 12:23:07 +09:00
Serhiy Storchaka
2515a28230
bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)
2020-06-29 20:18:22 -04:00
Victor Stinner
dd8a93e23b
bpo-23427: Add sys.orig_argv attribute (GH-20729)
...
Add sys.orig_argv attribute: the list of the original command line
arguments passed to the Python executable.
Rename also PyConfig._orig_argv to PyConfig.orig_argv and
document it.
2020-06-30 00:49:03 +02:00
Jason R. Coombs
2fb5f038f2
bpo-40924: Ensure importlib.resources.path returns an extant path (GH-20857)
2020-06-29 22:59:22 +02:00
Serhiy Storchaka
e67f7db3c3
bpo-37999: Simplify the conversion code for %c, %d, %x, etc. (GH-20437)
...
Since PyLong_AsLong() no longer use __int__, explicit call
of PyNumber_Index() before it is no longer needed.
2020-06-29 22:36:41 +03:00
Jeong Ukjae
5b96370030
Fix typo in Object/listobject.c (GH-21079)
2020-06-29 21:56:56 +03:00
Ravi Teja P
b30ee26e36
bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)
...
The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
2020-06-29 13:39:29 -04:00
Stefan Krah
a3ad95dd21
Update libmpdec license dates (GH-21216)
2020-06-29 14:03:01 +02:00
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
7f569c9bc0
bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998)
2020-06-29 11:36:48 +03:00
Inada Naoki
e4f1fe6edb
bpo-41123: Remove PyLong_FromUnicode() (GH-21204)
2020-06-29 13:00:43 +09:00
Inada Naoki
d9f2a13106
bpo-41123: Remove PyUnicode_GetMax() (GH-21192)
2020-06-29 10:46:51 +09:00
Stefan Krah
8bea91b5e9
bpo-40874 Update the required libmpdec version for the decimal module (GH-21202)
2020-06-28 22:01:01 +02:00
Serhiy Storchaka
04cdeb7a56
bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)
...
Fix also a resource warning when store counts and module info.
2020-06-28 13:34:22 +03:00
Zackery Spytz
cd3c2bdd5d
bpo-31082: Use "iterable" in the docstring for functools.reduce() (GH-20796)
2020-06-28 15:40:54 +09:00
E-Paine
8ab77c6f9f
bpo-41144: Fix IDLE open module error ( #21182 )
...
Could not open os.path.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-06-28 02:02:47 -04:00
Batuhan Taskaya
8df1016e2e
bpo-38870: Extend subject of ast.unparse warnings (GH-21053)
...
- Mention that some compiler optimizations might not roundtrip
exactly (such as constant tuples and frozensets).
- Add a warning about it might raise RecursionError on very
complex expressions due to recursive unparsing aspect of ast.unparse
2020-06-28 02:11:43 +01:00
Pablo Galindo
60eb9f1ab5
bpo-39151: Simplify DFS in the assembler (GH-17733)
2020-06-28 01:55:47 +01:00
Guido van Rossum
9d197c7d48
bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags ( #21021 )
2020-06-27 17:33:49 -07:00
Lysandros Nikolaou
1f0f4abb11
bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054)
...
This commit changes the parsing of f-string expressions with the new parser. The parser gets pre-fed with the location of the expression itself (not the f-string, which was what we were doing before). This allows us to completely skip the shifting of the AST nodes after the parsing is completed.
2020-06-28 00:41:48 +01:00
Pablo Galindo
89e82c4a62
Add soft keywords to the documentation (GH-21185)
2020-06-27 20:00:29 +01:00
Batuhan Taskaya
c8f29ad986
bpo-40769: Allow extra surrounding parentheses for invalid annotated assignment rule (GH-20387)
2020-06-27 19:33:08 +01:00
Lysandros Nikolaou
6dcbc2422d
bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173)
2020-06-27 18:47:00 +01:00
Christian Heimes
9cfcdb7d6e
Remove dead code from tracemalloc (GH-21029)
...
tracemalloc_get_frame() checked filename == NULL two times in a row.
Signed-off-by: Christian Heimes <christian@python.org>
2020-06-27 14:13:47 +02:00
Inada Naoki
20a7902175
bpo-41123: Remove Py_UNICODE_str* functions (GH-21164)
...
They are undocumented and deprecated since Python 3.3.
2020-06-27 18:22:09 +09:00
Ned Deily
2f168c6356
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
2020-06-27 04:44:56 -04:00
Lysandros Nikolaou
2e0a920e9e
bpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)
...
Prefix the error message with `fstring: `, when parsing an f-string expression throws a `SyntaxError`.
2020-06-26 12:24:05 +01:00
Raymond Hettinger
ef19bad7d6
Improve code organization for the random module (GH-21161)
2020-06-25 17:03:50 -07:00
Lysandros Nikolaou
4b85e60601
bpo-41119: Output correct error message for list/tuple followed by colon (GH-21160)
2020-06-26 00:22:36 +01:00
Inada Naoki
6f8a6ee59c
bpo-41103: Remove old buffer protocol support ( #21117 )
...
They are deprecated since Python 3.0.
2020-06-26 08:07:22 +09:00
Ram Rachum
77ed29b2c2
Fix typo in functions.rst (GH-21131)
2020-06-25 14:50:37 -07:00
Hai Shi
847f94f47b
bpo-40275: Use new test.support helper submodules in tests (GH-21151)
...
Use new test.support helper submodules in tests:
* distutils tests
* test_buffer
* test_compile
* test_filecmp
* test_fileinput
* test_readline
* test_smtpnet
* test_structmembers
* test_tools
2020-06-25 19:17:57 +02:00
Serhiy Storchaka
700cfa8c90
bpo-41069: Make TESTFN and the CWD for tests containing non-ascii characters. (GH-21035)
2020-06-25 17:56:31 +03:00
Ronald Oussoren
8ea6353f60
BPO-41100: Support macOS 11 when building (GH-21113)
2020-06-25 10:55:48 -04:00
Ned Deily
8d02f91dc6
bpo-40939: run autoreconf to fix configure{,.ac} disparity (GH-21152)
2020-06-25 10:46:44 -04:00
Hai Shi
06a40d7359
bpo-40275: Use new test.support helper submodules in tests (GH-20824)
2020-06-25 14:15:40 +02:00
Victor Stinner
91698d8caa
bpo-40521: Optimize PyBytes_FromStringAndSize(str, 0) (GH-21142)
...
Always create the empty bytes string singleton.
Optimize PyBytes_FromStringAndSize(str, 0): it no longer has to check
if the empty string singleton was created or not, it is always
available.
Add functions:
* _PyBytes_Init()
* bytes_get_empty(), bytes_new_empty()
* bytes_create_empty_string_singleton()
* unicode_create_empty_string_singleton()
_Py_unicode_state: rename empty structure member to empty_string.
2020-06-25 14:07:40 +02:00
Serhiy Storchaka
0f8ec1fff0
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
2020-06-25 14:43:33 +03:00
Serhiy Storchaka
aad8f0eeca
bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)
2020-06-25 14:31:30 +03:00
Ned Deily
589e8fe079
bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141)
2020-06-25 07:22:10 -04:00
Serhiy Storchaka
94eee69e9b
bpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)
2020-06-25 14:21:25 +03:00
Hai Shi
f7ba40b505
bpo-40275: Use new test.support helper submodules in tests (GH-20849)
2020-06-25 12:38:51 +02:00
Rick Heil
5f190d2cc6
bpo-39580: add check for CLI installation on macOS (GH-20271)
...
Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.
2020-06-25 06:37:40 -04:00
Ned Deily
1931e64de1
Forward port macOS installer updates from 3.7/3.8/3.9 (GH-21132)
2020-06-25 04:51:46 -04:00
Serhiy Storchaka
55939b1708
bpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)
...
* Fix support of non-ASCII names in functions OpenDatabase()
and init_database().
* Fix support of non-ASCII SQL in method Database.OpenView().
2020-06-25 11:37:12 +03:00
Bruce Merry
152f0b8bee
bpo-41002: Optimize HTTPResponse.read with a given amount (GH-20943)
...
I've done the implementation for both non-chunked and chunked reads. I haven't benchmarked chunked reads because I don't currently have a convenient way to generate a high-bandwidth chunked stream, but I don't see any reason that it shouldn't enjoy the same benefits that the non-chunked case does. I've used the benchmark attached to the bpo bug to verify that performance now matches the unsized read case.
Automerge-Triggered-By: @methane
2020-06-24 23:30:21 -07:00
Arisaka97
cf18c9e9d4
bpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)
...
Automerge-Triggered-By: @merwok
2020-06-24 14:50:49 -07:00
Serhiy Storchaka
a7dc714701
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
2020-06-24 19:46:30 +03:00