Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-129250: allow pickle instances of generic classes #129446

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

Open
wants to merge 21 commits into
base: main
Choose a base branch
Loading
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
requested changes
  • Loading branch information
tom-pytel committed Mar 1, 2025
commit 0824e2f57e8bd173193276a2ea4aea8ee567a5dc
8 changes: 4 additions & 4 deletions 8 Objects/typevarobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,14 @@ unpack_typevartuples(PyObject *params)
static PyObject *
typeparam_reduce_anonymous(PyObject *self, PyObject *owner)
{
assert(PyTuple_Check(owner));
assert(PyTuple_CheckExact(owner));
assert(PyTuple_GET_SIZE(owner) == 3);
tom-pytel marked this conversation as resolved.
Show resolved Hide resolved
PyObject *module_name = PyTuple_GET_ITEM(owner, 0);
PyObject *qualname = PyTuple_GET_ITEM(owner, 1);
PyObject *index = PyTuple_GET_ITEM(owner, 2);
assert(PyUnicode_Check(module_name));
assert(PyUnicode_Check(qualname));
assert(PyLong_Check(index));
assert(PyUnicode_CheckExact(module_name));
assert(PyUnicode_CheckExact(qualname));
assert(PyLong_CheckExact(index));
PyObject *ret = NULL;
PyObject *typing = NULL;
PyObject *restore_func = NULL;
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.