Last active
April 25, 2022 17:03
-
-
Save diallobakary4/758e8a622bf7e7b44a4e7701d098aa6e to your computer and use it in GitHub Desktop.
dir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/questions/21542753/dir-without-built-in-methods | |
def vdir(obj): | |
return [x for x in dir(obj) if not x.startswith('__')] | |
#Test | |
#test2 | |
print(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment