Skip to content

Conversation

@greatvovan
Copy link
Owner

No description provided.

Fidget-Spinner and others added 30 commits October 28, 2020 08:33
Backport of #22615 to 3.9 since that couldn't be auto-merged due to conflicts.
…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
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]>
(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]>
…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]>
andresdelfino and others added 29 commits December 31, 2020 15:10
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]>
(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]>
…GH-24068)

(cherry picked from commit 2ea320d)

Automerge-Triggered-By: GH:pablogsal
…4076)

If __stdout__ is not attached to terminal, try to use __stderr__
if it is attached to terminal, or open the terminal device, or
use regular file as terminal, but some functions will be untested
in the latter case.
(cherry picked from commit 607501a)
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]>
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]>
…GH-23658)" (GH-24092)

This partially reverts commit
e89993c, which was removing
backslashes in documentations compiled with Sphinx < 3, used for
Python 3.8 and 3.9 docs.
(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]>
…24089) (GH-24113)

On ncurses 6.1 pair numbers are limited by SHORT_MAX-1.

Improve error reporting and tests for color functions.
(cherry picked from commit 59f9b4e)
…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
(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]>
@greatvovan greatvovan merged commit 37da389 into greatvovan:3.9 Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.