Fix an issue with magic methods on classes. Fixes #461.

This commit is contained in:
Dave Halter committed 2016-07-31 23:42:16 +02:00
1 parent 647a4db326
commit 6440e33512
3 files changed
+26 -2

No files matched your search

+1
View File
@@ -476,6 +476,7 @@ def _a_generator(foo):
_SPECIAL_OBJECTS = {
'FUNCTION_CLASS': type(load_module),
'METHOD_CLASS': type(CompiledObject.is_class),
'MODULE_CLASS': type(os),
'GENERATOR_OBJECT': _a_generator(1.0),
'BUILTINS': _builtins,