| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| Expand Up | @@ -1051,9 +1051,13 @@ class below, those methods will show up in a :func:`dir` of the member, | |||||||
| but not of the class:: | ||||||||
|
|
||||||||
| >>> dir(Planet) # doctest: +SKIP | ||||||||
| ['EARTH', 'JUPITER', 'MARS', 'MERCURY', 'NEPTUNE', 'SATURN', 'URANUS', 'VENUS', '__class__', '__doc__', '__members__', '__module__'] | ||||||||
| ['EARTH', 'JUPITER', 'MARS', 'MERCURY', 'NEPTUNE', 'SATURN', 'URANUS', 'VENUS', '__class__', '__contains__', '__doc__', '__getitem__', '__init_subclass__', '__iter__', '__len__', '__members__', '__module__', '__name__', '__qualname__'] | ||||||||
| >>> dir(Planet.EARTH) # doctest: +SKIP | ||||||||
| ['__class__', '__doc__', '__module__', 'mass', 'name', 'radius', 'surface_gravity', 'value'] | ||||||||
| ['EARTH', 'JUPITER', 'MARS', 'MERCURY', 'NEPTUNE', 'SATURN', 'URANUS', 'VENUS', '__class__', '__doc__', '__eq__', '__hash__', '__module__', 'mass', 'name', 'radius', 'surface_gravity', 'value'] | ||||||||
|
|
||||||||
| .. versionchanged:: 3.11 | ||||||||
| Additional ``__dunder__`` names are returned for enums and enum members. | ||||||||
| Calling :func:`dir` on an enum member also returns the other members. | ||||||||
|
Comment thread
Comment on lines
+1058
to
+1060
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityWe don't need versionchanged in a How To document
Suggested change
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityShould I remove it? Note that there are 13 other occurrences of versionadded/versionchanged in the document
Sorry, something went wrong.
All reactions
|
||||||||
|
|
||||||||
|
|
||||||||
| Combining members of ``Flag`` | ||||||||
| Expand Down | ||||||||
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.