Skip to content

Commit 232b61a

Browse files
Google Python teamgpshead
authored andcommitted
Project import generated by Copybara.
PiperOrigin-RevId: 281409161
1 parent 26470f9 commit 232b61a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pyguide.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,10 @@ No:
585585
result = [(x, y) for x in range(10) for y in range(5) if x * y > 10]
586586
587587
return ((x, y, z)
588-
for x in xrange(5)
589-
for y in xrange(5)
588+
for x in range(5)
589+
for y in range(5)
590590
if x != y
591-
for z in xrange(5)
591+
for z in range(5)
592592
if y != z)
593593
```
594594
@@ -886,6 +886,8 @@ No: def foo(a, b=time.time()): # The time the module was loaded???
886886
...
887887
No: def foo(a, b=FLAGS.my_thing): # sys.argv has not yet been parsed...
888888
...
889+
No: def foo(a, b: Mapping = {}): # Could still get passed to unchecked code
890+
...
889891
```
890892
891893
<a id="s2.13-properties"></a>

0 commit comments

Comments
 (0)