Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
py/modbuiltins: In built-in dir make use of mp_load_method_protected.
This gives dir() better behaviour when listing the attributes of a user type that defines __getattr__: it will now not list those attributes for which __getattr__ raises AttributeError (meaning the attribute is not supported by the object).
- Loading branch information