You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> classmethod(1).__get__(1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
SystemError: ../Objects/classobject.c:2102: bad
argument to internal function
Well, couldn't we check if the argument is a non-data descriptor
at least? Since classmethod only works with new-style we know
the method will be a non-data descriptor. That should prevent
allowing arguments like 1 being allowed through.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: