File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ import re
300
300
```
301
301
302
302
### Special Sequences
303
- ** Expressions below hold true only for strings that contain only ASCII characters. Use capital letter for negation.**
303
+ ** Expressions below hold true for strings that contain only ASCII characters. Use capital letter for negation.**
304
304
``` python
305
305
' \d' == ' [0-9]' # Digit
306
306
' \s' == ' [ \t\n\r\f\v ]' # Whitespace
@@ -516,8 +516,8 @@ Inline
516
516
------
517
517
### Lambda
518
518
``` python
519
- lambda : < return_value>
520
- lambda <argument_1>, <argument_2>: < return_value>
519
+ < function > = lambda : < return_value>
520
+ < function > = lambda <argument_1>, <argument_2>: < return_value>
521
521
```
522
522
523
523
### Comprehension
@@ -609,7 +609,7 @@ def get_multiplier(a):
609
609
### Partial
610
610
``` python
611
611
from functools import partial
612
- < function> = partial(< function> , < argument_1> [ , < argument_2> , ... ])
612
+ < function> = partial(< function> [ , < argument_1> , < argument_2> , ... ])
613
613
```
614
614
615
615
``` python
@@ -619,7 +619,7 @@ from functools import partial
619
619
```
620
620
621
621
### Nonlocal
622
- ** If variable is being assigned to anywhere in the scope, it is regarded as a local variable, unless it is declared as 'global' or 'nonlocal'.**
622
+ ** If variable is being assigned to anywhere in the scope, it is regarded as a local variable, unless it is declared as a 'global' or 'nonlocal'.**
623
623
624
624
``` python
625
625
def get_counter ():
You can’t perform that action at this time.
0 commit comments