Skip to content

Commit 43f343c

Browse files
authored
Update README.md
1 parent dde31fc commit 43f343c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ def f(x, *tup, **kwargs):
8484
kwargs['width']='14.3c'
8585
g(x, *tup, **kwargs)
8686
```
87-
In the unlikely case that you care about Python versions older than 2.0, use 'apply': def f(x, *tup, **kwargs): ... kwargs['width']='14.3c' ... apply(g, (x,)+tup, kwargs)
87+
In the unlikely case that you care about Python versions older than 2.0, use 'apply':
88+
```python
89+
def f(x, *tup, **kwargs):
90+
kwargs['width']='14.3c'
91+
apply(g, (x,)+tup, kwargs)
92+
```
8893

8994
#### How do you make a higher order function in Python?
9095

0 commit comments

Comments
 (0)