Skip to content

Commit

Permalink
add question
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Jul 24, 2021
1 parent daf9729 commit 0bc1f4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ w_ref(PyObject *v, char *flag, WFILE *p)
if (p->version < 3 || p->hashtable == NULL)
return 0; /* not writing object references */

// TODO: is this enough? what if v is a list containing a code object?
if (PyCode_Check(v))
return 0; /* never sharing code objects */

Expand Down

0 comments on commit 0bc1f4c

Please sign in to comment.