As previously mentioned, globals gives you a dictionary as opposed to dir() which gives you a list of the names defined in the module. The way I typically see this done is like this:
import sys
dir(sys.modules[__name__])
More Related Contents:
- Counting maximum k-mer repetition frequency
- Using global variables in a function
- permutations with unique values
- Loading and parsing a JSON file with multiple JSON objects
- How to upload file with python requests?
- Python Sets vs Lists
- How do I detect whether a Python variable is a function?
- How can I set the ‘backend’ in matplotlib in Python?
- How can I check if two segments intersect?
- Calling class staticmethod within the class body?
- extract column value based on another column pandas dataframe
- Python spawn off a child subprocess, detach, and exit
- Use of eval in Python?
- Remove text between () and []
- Plot Pandas DataFrame as Bar and Line on the same one chart
- How do I create an incrementing filename in Python?
- How to skip iterations in a loop?
- How do I assert the identity of a PyQt5 signal?
- ImportError: cannot import name main when running pip –version command in windows7 32 bit
- Set chrome browser binary through chromedriver in Python
- pandas left join and update existing column
- What is the best way to map windows drives using Python?
- ‘Library not loaded: @rpath/libcudart.7.5.dylib’ TensorFlow Error on Mac
- Scale Everything On Pygame Display Surface
- What’s the difference between reshape and view in pytorch?
- Using urllib2 with SOCKS proxy
- Multiple delimiters in single CSV file
- Why does newList = list.remove(x) return None? [duplicate]
- How to install PyInstaller? [closed]
- Keras: How to save model and continue training?