Browse Source

Namedtuple

pull/9/head
Jure Šorn 6 years ago
parent
commit
298f254a41
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -136,7 +136,7 @@ for i, <el> in enumerate(<collection> [, i_start]):
Named Tuple
-----------
```python
>>> Point = collections.namedtuple('Point', ['x', 'y'])
>>> Point = collections.namedtuple('Point', 'x y')
>>> a = Point(1, y=2)
Point(x=1, y=2)
>>> a.x

Loading…
Cancel
Save