Skip to content

Commit 201f9aa

Browse files
committed
Introspection
1 parent 583c614 commit 201f9aa

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,14 +1182,15 @@ Introspection and Metaprograming
11821182

11831183
### Attributes
11841184
```python
1185-
>>> class Z:
1186-
... def __init__(self):
1187-
... self.a = 'abcde'
1188-
... self.b = 12345
1189-
>>> z = Z()
1185+
class Z:
1186+
def __init__(self):
1187+
self.a = 'abcde'
1188+
self.b = 12345
11901189
```
11911190

11921191
```python
1192+
>>> z = Z()
1193+
11931194
>>> vars(z)
11941195
{'a': 'abcde', 'b': 12345}
11951196

0 commit comments

Comments
 (0)