Browse Source

Callable

pull/27/head
Jure Šorn 6 years ago
parent
commit
d7aad54b05
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -752,9 +752,9 @@ class MySequence:
```python
class Counter:
def __init__(self):
self.a = 0
self.i = 0
def __call__(self):
self.a += 1
self.i += 1
return self.a
```

Loading…
Cancel
Save