-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglossary.py
More file actions
21 lines (15 loc) · 714 Bytes
/
Copy pathglossary.py
File metadata and controls
21 lines (15 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""This is a reusable Python module intended to store
my accumulated Python knowledge"""
from pprint import pprint
CONCEPTS = dict(
keywords='reserved words in Python you cannot use as variable names',
variables=r'names in Python that point to objects - [A-Za-z_][\w]*',
arity='number of arguments a function takes: nullary, unary, binary, ternary', docstrings='strings at the tope of a module , class or function definition that document the code',
comments=' # (the octothorpe) - and anything that follows it',
naming="name your objects so well you don't need comments",
)
def main():
"""pretty prints the data in this module"""
pprint(CONCEPTS)
if __name__ == '__main__':
main()