Skip to content

Commit 40c4567

Browse files
committed
Introspection
1 parent 1a95bf5 commit 40c4567

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,15 +1373,8 @@ Hashlib
13731373
```
13741374

13751375

1376-
Introspection and Metaprograming
1377-
--------------------------------
1378-
**Inspecting code at runtime and code that generates code. You can:**
1379-
* **Look at the attributes**
1380-
* **Set new attributes**
1381-
* **Create functions dynamically**
1382-
* **Traverse the parent classes**
1383-
* **Change values in the class**
1384-
1376+
Introspection
1377+
-------------
13851378
### Variables
13861379
```python
13871380
<list> = dir() # Names of in-scope variables.
@@ -1405,6 +1398,9 @@ no_of_params = len(sig.parameters)
14051398
param_names = list(sig.parameters.keys())
14061399
```
14071400

1401+
1402+
Metaprograming
1403+
--------------
14081404
### Type
14091405
**Type is the root class. If only passed the object it returns it's type (class). Otherwise it creates a new class (and not an instance!).**
14101406

0 commit comments

Comments
 (0)