Skip to content
Snippets Groups Projects
Commit 29d28c25 authored by Damien George's avatar Damien George
Browse files

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).
parent 7241d902
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment