Browse Source

Callable

pull/10/head
Jure Šorn 5 years ago
parent
commit
d3753e6cca
1 changed files with 9 additions and 0 deletions
  1. 9
      README.md

9
README.md

@ -704,6 +704,15 @@ class MySequence:
yield el yield el
``` ```
### Callable
```python
class MyCallable:
def __init__(self, a):
self.a = a
def __call__(self):
return a
```
### Copy ### Copy
```python ```python
from copy import copy, deepcopy from copy import copy, deepcopy

Loading…
Cancel
Save