Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Module defined names
- The built-in function ‘dir()’ can be used to find out which names a module defines. It returns a sorted list of strings.
- ```
- >>> import time
- >>> dir(time)
- [‘__doc__’, ‘__file__’, ‘__name__’,
- ‘__package__’, ‘accept2dyear’,
- ‘altzone’, ‘asctime’, ‘clock’,
- ‘ctime’, ‘daylight’, ‘gmtime’,
- ‘localtime’, ‘mktime’, ‘sleep’,
- ‘strftime’, ‘strptime’, ‘struct_
- time’, ‘
- ```
Advertisement
Add Comment
Please, Sign In to add comment