Commit d1bfc4e0 by Wenzel Jakob

support __bool__ on Python 2.x and 3.x

parent 00c7d6cc
......@@ -200,6 +200,9 @@ protected:
if (strcmp(rec->name, "__next__") == 0) {
std::free(rec->name);
rec->name = strdup("next");
} else if (strcmp(rec->name, "__bool__") == 0) {
std::free(rec->name);
rec->name = strdup("__nonzero__");
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment