Kaydet (Commit) ab328756 authored tarafından Stéphane Wirtel's avatar Stéphane Wirtel Kaydeden (comit) Xiang Zhang

bpo-32722: Remove useless example in the Classes tutorial (#5446)

In the tutorial about the Generator expression, there is an example with
a dict comprehension and not with a generator expression, just removed
the code.
üst 07a1892f
......@@ -892,10 +892,7 @@ Examples::
>>> sum(x*y for x,y in zip(xvec, yvec)) # dot product
260
>>> from math import pi, sin
>>> sine_table = {x: sin(x*pi/180) for x in range(0, 91)}
>>> unique_words = set(word for line in page for word in line.split())
>>> unique_words = set(word for line in page for word in line.split())
>>> valedictorian = max((student.gpa, student.name) for student in graduates)
......
Remove the bad example in the tutorial of the Generator Expression. Patch by
Stéphane Wirtel
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment