Skip to content

bpo-33371: Clarify the inspect.getmembers predicate parameter#6615

Merged
briancurtin merged 1 commit intopython:masterfrom
briancurtin:fix-issue-33371
Apr 26, 2018
Merged

bpo-33371: Clarify the inspect.getmembers predicate parameter#6615
briancurtin merged 1 commit intopython:masterfrom
briancurtin:fix-issue-33371

Conversation

@briancurtin
Copy link
Copy Markdown
Member

@briancurtin briancurtin commented Apr 26, 2018

Previously, the predicate parameter was mentioned, but what it was to be called with was not documented and required either trial-and-error or looking into the source to find that it is called with the value, or second item, of the full members list. This change addresses what the predicate callable will receive, as well as does some light formatting to make this clear.

https://bugs.python.org/issue33371

Previously, the predicate parameter was mentioned, but what it was to be
called with was not documented and required either trial-and-error or
looking into the source to find that it is called with the `value`, or
second item, of the full members list. This change addresses what the
predicate will receive, as well as does some light formatting to make
this clear.
@bedevere-bot
Copy link
Copy Markdown

@briancurtin: Please replace # with GH- in the commit message next time. Thanks!

@briancurtin briancurtin deleted the fix-issue-33371 branch April 26, 2018 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants