◐ Shell
clean mode source ↗

bpo-28556: Update to typing: treat subscripted generics as proxies by ilevkivskyi · Pull Request #265 · python/cpython

@ilevkivskyi

@ilevkivskyi ilevkivskyi changed the title bpo-28556: Update to typing: treat subsctipted generics as proxies bpo-28556: Update to typing: treat subscripted generics as proxies

Feb 23, 2017

Mariatta

Mariatta pushed a commit to Mariatta/cpython that referenced this pull request

Feb 24, 2017
(cherry picked from commit abb3b8a)

Mariatta pushed a commit to Mariatta/cpython that referenced this pull request

Feb 24, 2017
(cherry picked from commit abb3b8a)

Mariatta added a commit that referenced this pull request

Feb 25, 2017

Mariatta added a commit that referenced this pull request

Feb 25, 2017

akruis added a commit to akruis/cpython that referenced this pull request

Jun 9, 2021
The implementation was buggy. This affects only users of the C-API,
that call PyChannel_Send() and PyChannel_Send_nr() for calls from
outside of the interpreter (with no main-tasklet).

akruis added a commit to akruis/cpython that referenced this pull request

Jun 9, 2021
If called from outside of the interpreter the behavior was undefined.
(Calling a C-function with wrong number of arguments).

akruis added a commit to akruis/cpython that referenced this pull request

Jun 9, 2021
Avoid undefined behavior, if Stackless classes implement __reduce__()
and __reduce_ex__() using a single C-function.
__reduce_ex__ now checks the type of its argument.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 9, 2021
Return type is 'int', not 'void'.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 9, 2021
…itions

Most (getter)-functions, (setter)-functions and (PyCFunction)-functions
with flag METH_NOARGS lack an unused last argument, "void *" for
(getter) and (setter), "PyObject *" for (PyCFunction)-functions.
This commit adds these arguments.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 9, 2021
…itions

Most (getter)-functions, (setter)-functions and (PyCFunction)-functions
with flag METH_NOARGS lack an unused last argument, "void *" for
(getter) and (setter), "PyObject *" for (PyCFunction)-functions.
This commit adds these arguments.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 11, 2021
The implementation was buggy. This affects only users of the C-API,
that call PyChannel_Send() and PyChannel_Send_nr() for calls from
outside of the interpreter (with no main-tasklet).

akruis added a commit to akruis/cpython that referenced this pull request

Jun 11, 2021
If called from outside of the interpreter the behavior was undefined.
(Calling a C-function with wrong number of arguments).

akruis added a commit to akruis/cpython that referenced this pull request

Jun 11, 2021
Avoid undefined behavior, if Stackless classes implement __reduce__()
and __reduce_ex__() using a single C-function.
__reduce_ex__ now checks the type of its argument.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 11, 2021
Return type is 'int', not 'void'.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 11, 2021
…itions

Most (getter)-functions, (setter)-functions and (PyCFunction)-functions
with flag METH_NOARGS lack an unused last argument, "void *" for
(getter) and (setter), "PyObject *" for (PyCFunction)-functions.
This commit adds these arguments.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 11, 2021
Fix invalid function cast warnings with gcc 8 for method conventions
different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument
Clinic generated code.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 11, 2021
… gcc 8

* fix PyChannel_Send_M

The implementation was buggy. This affects only users of the C-API,
that call PyChannel_Send() and PyChannel_Send_nr() for calls from
outside of the interpreter (with no main-tasklet).

* fix PyChannel_Receive_M and tasklet_new

If called from outside of the interpreter the behavior was undefined.
(Calling a C-function with wrong number of arguments).

* fix __reduce__ / __reduce_ex__

Avoid undefined behavior, if Stackless classes implement __reduce__()
and __reduce_ex__() using a single C-function.
__reduce_ex__ now checks the type of its argument.

* fix the signature of tp_clear functions

Return type is 'int', not 'void'.

* add missing arguments to C-function definitions

Most (getter)-functions, (setter)-functions and (PyCFunction)-functions
with flag METH_NOARGS lack an unused last argument, "void *" for
(getter) and (setter), "PyObject *" for (PyCFunction)-functions.
This commit adds these arguments.

* Fix invalid function cast warnings

Fix invalid function cast warnings with gcc 8 for method conventions
different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument
Clinic generated code.

akruis added a commit to akruis/cpython that referenced this pull request

Jun 11, 2021

jaraco pushed a commit that referenced this pull request

Dec 2, 2022