From 232b61ac26e3776cb13a40390bd2108c8267014c Mon Sep 17 00:00:00 2001 From: Google Python team Date: Tue, 19 Nov 2019 16:48:25 -0800 Subject: [PATCH] Project import generated by Copybara. PiperOrigin-RevId: 281409161 --- pyguide.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pyguide.md b/pyguide.md index 5d9938c..e8e1f14 100644 --- a/pyguide.md +++ b/pyguide.md @@ -585,10 +585,10 @@ No: result = [(x, y) for x in range(10) for y in range(5) if x * y > 10] return ((x, y, z) - for x in xrange(5) - for y in xrange(5) + for x in range(5) + for y in range(5) if x != y - for z in xrange(5) + for z in range(5) 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: Mapping = {}): # Could still get passed to unchecked code + ... ```