forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Sync 3.9 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Sync 3.9 #3
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ing the func object (GH-22953) (GH-23021) func_dealloc() does not handle partially-created objects. Best not to give it any. (cherry picked from commit 3505261) Co-authored-by: Yonatan Goldschmidt <[email protected]>
Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit 3317466) Co-authored-by: Teugea Ioan-Teodor <[email protected]>
Follow up to 7cdf30f and 4173320. This addresses the point "1. Update links in typing, subscription and union to point to GenericAlias." in the bpo for this PR. (cherry picked from commit 9129af6) Co-authored-by: kj <[email protected]>
…H-23047) Sort also dependencies and remove duplicates (liblzma-dev). (cherry picked from commit 6e03c0a) Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…he barry_as_flufl rule (GH-23048) (GH-23051) (cherry picked from commit 06f8c33) Co-authored-by: Pablo Galindo <[email protected]>
…23065) (GH-23066) Left-recursive rules need to check for errors explicitly, since even if the rule returns NULL, the parsing might continue and lead to long-distance failures. Co-authored-by: Pablo Galindo <[email protected]> (cherry picked from commit 02cdfc9) Automerge-Triggered-By: GH:lysnikolaou
…dings. (GH-23059) (GH-23071) [[bpo-29566]()]() notes that binhex.binhex uses inconsistent line endings (both Unix and MacOS9 line endings are used). This PR changes this to use the MacOS9 line endings everywhere. (cherry picked from commit 2165cea) Co-authored-by: Ronald Oussoren <[email protected]> Automerge-Triggered-By: GH:ronaldoussoren
…H-23062) (cherry picked from commit 7feb54a) Co-authored-by: Dong-hee Na <[email protected]>
They were occurring with both repeated 'force-calltip' invocations and by typing parentheses in expressions, strings, and comments in the argument code. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit da7bb7b) Co-authored-by: Tal Einat <[email protected]>
…iterables (GH-23073) People call wait() and as_completed() with various non-set iterables, a list should be the most common but there are others as well[1]. Considering typeshed also documents wait()[2] and as_completed()[3] as accepting arbitrary iterables I think it's a good idea to document the status quo better. [1] aio-libs/aiokafka#672 [2] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L161 [3] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L40 (cherry picked from commit 3d86d09) Co-authored-by: Jakub Stasiak <[email protected]>
* Prevent some possible DoS attacks via providing invalid Plist files with extremely large number of objects or collection sizes. * Raise InvalidFileException for too large bytes and string size instead of returning garbage. * Raise InvalidFileException instead of ValueError for specific invalid datetime (NaN). * Raise InvalidFileException instead of TypeError for non-hashable dict keys. * Add more tests for invalid Plist files. (cherry picked from commit 34637a0) Co-authored-by: Serhiy Storchaka <[email protected]>
https://bugs.python.org/issue42180 (cherry picked from commit b76a840) Co-authored-by: Rafael Fontenelle <[email protected]>
(cherry picked from commit 212d32f) Co-authored-by: Serhiy Storchaka <[email protected]>
…p server (GH-23132) (cherry picked from commit db6434c) Co-authored-by: Steve Dower <[email protected]>
(cherry picked from commit 9568622) Co-authored-by: Jakub Kulík <[email protected]> Co-authored-by: Jakub Kulík <[email protected]>
Otherwise, when running the testsuite, test_peg_generator tries to compile C code using the optimized flags and fails because it cannot find the profile data. (cherry picked from commit 100964e) Co-authored-by: serge-sans-paille <[email protected]>
(cherry picked from commit bde33e4) Co-authored-by: Inada Naoki <[email protected]>
(cherry picked from commit 7c01f15) Co-authored-by: Andre Delfino <[email protected]>
…H-23081) Noticed by @serhiy-storchaka in the bpo. `typing`'s types were not showing the parameterized generic. Eg. previously: ```python >>> typing.Union[dict[str, float], list[int]] 'typing.Union[dict, list]' ``` Now: ```python >>> typing.Union[dict[str, float], list[int]] 'typing.Union[dict[str, float], list[int]]' ``` Automerge-Triggered-By: GH:gvanrossum (cherry picked from commit 1f7dfb2) Co-authored-by: kj <[email protected]>
Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers. (cherry picked from commit fd6f6fa) Co-authored-by: Don Kirkby <[email protected]>
…H-23075) It is not clear why this can happen, but several users have mentioned getting this exception on macOS. (cherry picked from commit 23831a7) Co-authored-by: Ronald Oussoren <[email protected]>
exeeds -> exceeds Automerge-Triggered-By: GH:Mariatta (cherry picked from commit 38811d6) Co-authored-by: Ikko Ashimine <[email protected]>
…() (GH-23020) The overflow occurs under some circumstances when a task or future recursively returns itself. Co-authored-by: Kyle Stanley <[email protected]> (cherry picked from commit 42d873c) Co-authored-by: Andrew Svetlov <[email protected]>
Signed-off-by: Tao He <[email protected]> (cherry picked from commit 3631d6d) Co-authored-by: Tao He <[email protected]> Co-authored-by: Tao He <[email protected]>
…H-24037) (cherry picked from commit ec31653) Co-authored-by: Dong-hee Na <[email protected]>
(cherry picked from commit de6f20a) Co-authored-by: Dong-hee Na <[email protected]>
There was a race condition in base64 in lazy initialization of multiple globals. (cherry picked from commit 9655434) Co-authored-by: Brandon Stansbury <[email protected]>
(cherry picked from commit a25011b) Co-authored-by: Serhiy Storchaka <[email protected]>
…H-24067) (GH-24069) (cherry picked from commit bd2728b) Co-authored-by: Pablo Galindo <[email protected]>
As of 2021-01-03, Tcl/Tk 8.6.11rc2 is expected to be the final release. (cherry picked from commit a38e04b) Co-authored-by: Ned Deily <[email protected]>
(cherry picked from commit 0f3b96b) Co-authored-by: Ned Deily <[email protected]>
) (GH-24083) (cherry picked from commit 14097a2) Co-authored-by: Ned Deily <[email protected]>
GH-24090) A compiler that doesn't define `__has_builtin` will error out when it is used on the same line as the check for it. Automerge-Triggered-By: GH:ronaldoussoren (cherry picked from commit df21f50) Co-authored-by: Joshua Root <[email protected]>
(cherry picked from commit af4cd16) Co-authored-by: Steve Dower <[email protected]>
) Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15): _"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_ (cherry picked from commit f7f0ed5) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
(cherry picked from commit cde988e) Co-authored-by: Brandt Bucher <[email protected]>
) Make menu items work with formatter, add docstrings, add 100% tests. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit e40e2a2) Co-authored-by: Cheryl Sabella <[email protected]>
…3999) (GH-24005) ``` In file included from /usr/include/python3.8/Python.h:147: In file included from /usr/include/python3.8/abstract.h:837: /usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *' (aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)') increases required alignment from 1 to 8 [-Werror,-Wcast-align] ptr = (vectorcallfunc*)(((char *)callable) + offset); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. ``` Co-authored-by: Petr Viktorin <[email protected]> Co-Authored-By: Andreas Schneider <[email protected]> Co-Authored-By: Antoine Pitrou <[email protected]> (cherry picked from commit 056c082)
… (GH-24130) (cherry picked from commit c94ee13) Co-authored-by: Erlend Egeberg Aasland <[email protected]> Automerge-Triggered-By: GH:ned-deily
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
(cherry picked from commit 1a9f51e) Co-authored-by: Berker Peksag <[email protected]>
…3602) (GH-24139) I think that none of these API calls can fail, but only few of them are documented as such. Add the sentence "This function always succeeds" (which is the same already used e.g. by PyNumber_Check) to all of them. (cherry picked from commit 315fc52) Co-authored-by: Antonio Cuni <[email protected]> Co-authored-by: Antonio Cuni <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.