We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583c614 commit 201f9aaCopy full SHA for 201f9aa
README.md
@@ -1182,14 +1182,15 @@ Introspection and Metaprograming
1182
1183
### Attributes
1184
```python
1185
->>> class Z:
1186
-... def __init__(self):
1187
-... self.a = 'abcde'
1188
-... self.b = 12345
1189
->>> z = Z()
+class Z:
+ def __init__(self):
+ self.a = 'abcde'
+ self.b = 12345
1190
```
1191
1192
+>>> z = Z()
1193
+
1194
>>> vars(z)
1195
{'a': 'abcde', 'b': 12345}
1196
0 commit comments