File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1373,15 +1373,8 @@ Hashlib
1373
1373
```
1374
1374
1375
1375
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
+ -------------
1385
1378
### Variables
1386
1379
``` python
1387
1380
< list > = dir () # Names of in-scope variables.
@@ -1405,6 +1398,9 @@ no_of_params = len(sig.parameters)
1405
1398
param_names = list (sig.parameters.keys())
1406
1399
```
1407
1400
1401
+
1402
+ Metaprograming
1403
+ --------------
1408
1404
### Type
1409
1405
** 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!).**
1410
1406
You can’t perform that action at this time.
0 commit comments