We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26470f9 commit 232b61aCopy full SHA for 232b61a
pyguide.md
@@ -585,10 +585,10 @@ No:
585
result = [(x, y) for x in range(10) for y in range(5) if x * y > 10]
586
587
return ((x, y, z)
588
- for x in xrange(5)
589
- for y in xrange(5)
+ for x in range(5)
+ for y in range(5)
590
if x != y
591
- for z in xrange(5)
+ for z in range(5)
592
if y != z)
593
```
594
@@ -886,6 +886,8 @@ No: def foo(a, b=time.time()): # The time the module was loaded???
886
...
887
No: def foo(a, b=FLAGS.my_thing): # sys.argv has not yet been parsed...
888
889
+No: def foo(a, b: Mapping = {}): # Could still get passed to unchecked code
890
+ ...
891
892
893
<a id="s2.13-properties"></a>
0 commit comments