diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-31 15:46:39 -0700 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-31 15:46:39 -0700 |
commit | 090b840e7893c45716a2fb6f1598dbfd335b2c3c (patch) | |
tree | 993c44e08ce59a669820ad2d93da76226dc5fd04 /Python/compile.c | |
parent | 4e4dced9e92a8f286ebeb998de98c667f2f679ee (diff) | |
parent | d5ce71786a2851c4abc1ab9c80ab36cc39020723 (diff) | |
download | cpython-090b840e7893c45716a2fb6f1598dbfd335b2c3c.tar.gz |
Issue #7796: Add link to Jan Kaliszewski's alternate constructor and ABC for named tuples.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 1d6e38c22e..53f5a12cc3 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -3026,7 +3026,7 @@ expr_constant(struct compiler *c, expr_ty e) case Name_kind: /* optimize away names that can't be reassigned */ id = PyBytes_AS_STRING( - _PyUnicode_AsDefaultEncodedString(e->v.Name.id, NULL)); + _PyUnicode_AsDefaultEncodedString(e->v.Name.id)); if (strcmp(id, "True") == 0) return 1; if (strcmp(id, "False") == 0) return 0; if (strcmp(id, "None") == 0) return 0; |