BoundMethods now have access to the function that they are using

This commit is contained in:
Dave Halter committed 2018-08-03 00:25:25 +02:00
1 parent e576457a43
commit f25310e0b9
5 files changed
+72 -66

No files matched your search

+1 -1
View File
@@ -470,7 +470,7 @@ else:
class _SPECIAL_OBJECTS(object):
FUNCTION_CLASS = types.FunctionType
METHOD_CLASS = type(DirectObjectAccess.py__bool__)
BOUND_METHOD_CLASS = type(DirectObjectAccess(None, None).py__bool__)
MODULE_CLASS = types.ModuleType
GENERATOR_OBJECT = _a_generator(1.0)
BUILTINS = builtins