Mark Sapiro
4fa61a7732
bpo-40597: Allow email.contextmanager set_content() to set a null string. (GH-20542)
2020-07-08 14:00:35 -07:00
Joannah Nanjekye
6f13adf59e
Add a test for get_id() (GH-21370)
2020-07-07 21:45:45 -03:00
Victor Stinner
8f42748ded
bpo-29778: test_embed tests the path configuration (GH-21306)
2020-07-08 00:20:37 +02:00
Pablo Galindo
c2c1f1f906
bpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363)
2020-07-06 23:30:14 +01:00
Matthias Bussonnier
bd46174a5a
bpo-41218: Only mark async code with CO_COROUTINE. ( #21357 )
...
3.8.3 had a regression where compiling with
ast.PyCF_ALLOW_TOP_LEVEL_AWAIT woudl agressively mark things are
coroutine even if there were not.
2020-07-06 23:26:52 +02:00
Steve Dower
dcbaa1b49c
bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297)
...
Also enables using debug build of `python3_d.dll`
Reference: CVE-2020-15523
2020-07-06 17:32:00 +01:00
Hai Shi
deb016224c
bpo-40275: Use new test.support helper submodules in tests (GH-21317)
2020-07-06 14:29:49 +02:00
Hai Shi
a089d21df1
bpo-40275: Use new test.support helper submodules in tests (GH-21315)
2020-07-06 11:15:08 +02:00
Hai Shi
883bc63833
bpo-40275: Use new test.support helper submodules in tests (GH-21314)
2020-07-06 11:12:49 +02:00
Pablo Galindo
e51dd9dad6
bpo-29727: Register array.array as a MutableSequence (GH-21338)
2020-07-05 22:43:14 +01:00
Zackery Spytz
7fed75597f
bpo-39168: Remove the __new__ method of typing.Generic (GH-21327)
...
Automerge-Triggered-By: @gvanrossum
2020-07-04 22:07:43 -07:00
Konge
daa0fe03a5
bpo-41162: Clear audit hooks later during finalization (GH-21222)
2020-07-03 22:06:46 +01:00
scoder
148f329135
bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092)
...
Automerge-Triggered-By: @gvanrossum
2020-07-02 17:09:28 -07:00
Rémi Lapeyre
004e64e805
bpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks() (GH-20874)
2020-07-01 20:41:21 -07:00
Rémi Lapeyre
bd4a3f2145
bpo-39314: Closes parenthesis when autocompleting for functions that take no arguments (GH-20562)
2020-06-30 22:48:15 +09:00
Hai Shi
0c4f0f3b29
bpo-40275: Use new test.support helper submodules in tests (GH-21169)
2020-06-30 15:46:31 +02:00
Hai Shi
3ddc634cd5
bpo-40275: Use new test.support helper submodules in tests (GH-21219)
2020-06-30 15:46:06 +02:00
Serhiy Storchaka
ba67d7386e
bpo-41142: Add support of non-ASCII paths for CAB files. (GH-21195)
...
* The path to the CAB file can be non-ASCII.
* Paths of added files can be non-ASCII.
2020-06-30 11:56:03 +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
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
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
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
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
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
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
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
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
Hai Shi
06a40d7359
bpo-40275: Use new test.support helper submodules in tests (GH-20824)
2020-06-25 14:15: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
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
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
Serhiy Storchaka
a7dc714701
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
2020-06-24 19:46:30 +03:00
Serhiy Storchaka
6c6810d989
bpo-41094: Fix decoding errors with audit when open files. (GH-21095)
2020-06-24 08:46:05 +03:00
Raymond Hettinger
f9bd05e83e
bpo-40521: Empty frozenset is no longer a singleton (GH-21085)
...
* Revert "bpo-40521: Make the empty frozenset per interpreter (GH-21068)"
This reverts commit 261cfedf76 .
* bpo-40521: Empty frozensets are no longer singletons
* Complete the removal of the frozenset singleton
2020-06-23 17:42:55 +02:00
Serhiy Storchaka
36ff513f82
bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)
2020-06-22 11:24:11 +03:00
Serhiy Storchaka
c88239f864
bpo-26407: Do not mask errors in csv. (GH-20536)
...
Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in csv.reader(), csv.writer.writerow() and
csv.writer.writerows().
2020-06-22 11:21:59 +03:00
Serhiy Storchaka
cafe1b6e9d
bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)
...
Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in the "in" operator and functions
operator.contains(), operator.indexOf() and operator.countOf().
2020-06-22 10:43:35 +03:00
Joannah Nanjekye
6f79838fc1
Skip tests to fix bot (GH-20777)
...
Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
2020-06-21 20:59:43 -03:00
Dong-hee Na
6989af0bc7
bpo-41052: Opt out serialization/deserialization for _random.Random (GH-21002)
2020-06-21 18:44:58 +09:00
Serhiy Storchaka
f9bab74d5b
bpo-41055: Remove outdated tests for the tp_print slot. (GH-21006)
2020-06-21 11:11:17 +03:00
Serhiy Storchaka
19fcffa927
bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)
2020-06-21 11:07:50 +03:00
Lysandros Nikolaou
6c4e0bd974
bpo-41060: Avoid SEGFAULT when calling GET_INVALID_TARGET in the grammar (GH-21020)
...
`GET_INVALID_TARGET` might unexpectedly return `NULL`, which if not
caught will cause a SEGFAULT. Therefore, this commit introduces a new
inline function `RAISE_SYNTAX_ERROR_INVALID_TARGET` that always
checks for `GET_INVALID_TARGET` returning NULL and can be used in
the grammar, replacing the long C ternary operation used till now.
2020-06-21 03:18:01 +01:00
Lysandros Nikolaou
314858e276
bpo-40939: Remove the old parser (Part 2) (GH-21005)
...
Remove some remaining files and Makefile targets for the old parser
2020-06-20 19:07:25 +01:00
Batuhan Taskaya
55460ee6dc
bpo-41044: Generate valid PEG python parsers for opt+seq rules (GH-20995)
...
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-06-20 18:40:06 +01:00