Skip to content

Include _data attr keys in __dir__() for better introspection#206

Open
BS-Labs wants to merge 1 commit intopython-xlib:masterfrom
BS-Labs:getattrdata_introspection
Open

Include _data attr keys in __dir__() for better introspection#206
BS-Labs wants to merge 1 commit intopython-xlib:masterfrom
BS-Labs:getattrdata_introspection

Conversation

@BS-Labs
Copy link

@BS-Labs BS-Labs commented Aug 24, 2021

Just adds a dir() method to protocol.rq.GetAttrData which allows the _data dict's keys to show as instance attributes. Allows for better introspection, and also enables auto-completion in, e.g., REPL.

Copy link
Collaborator

@vasily-v-ryabov vasily-v-ryabov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super() without arguments is not supported on Py2.7. When we drop Py2.7, it can be merged. Or please add an explicit argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants