Project import generated by Copybara.

PiperOrigin-RevId: 281409161
This commit is contained in:
Google Python team 2019-11-19 16:48:25 -08:00 committed by Gregory P. Smith [Google LLC]
parent 26470f9ccb
commit 232b61ac26

View File

@ -585,10 +585,10 @@ No:
result = [(x, y) for x in range(10) for y in range(5) if x * y > 10] result = [(x, y) for x in range(10) for y in range(5) if x * y > 10]
return ((x, y, z) return ((x, y, z)
for x in xrange(5) for x in range(5)
for y in xrange(5) for y in range(5)
if x != y if x != y
for z in xrange(5) for z in range(5)
if y != z) if y != z)
``` ```
@ -886,6 +886,8 @@ No: def foo(a, b=time.time()): # The time the module was loaded???
... ...
No: def foo(a, b=FLAGS.my_thing): # sys.argv has not yet been parsed... No: def foo(a, b=FLAGS.my_thing): # sys.argv has not yet been parsed...
... ...
No: def foo(a, b: Mapping = {}): # Could still get passed to unchecked code
...
``` ```
<a id="s2.13-properties"></a> <a id="s2.13-properties"></a>