Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/classes.rst @ 45084:38604fa2a48f
Update docs w.r.t. PEP 3100 changes -- patch for GHOP by Dan Finnie.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 01 Feb 2008 11:56:49 +0000 |
| parents | 6556f3f22c19 |
| children | 832c820e9d14 |
line wrap: on
line diff
--- a/Doc/tutorial/classes.rst Fri Feb 01 11:30:18 2008 +0000 +++ b/Doc/tutorial/classes.rst Fri Feb 01 11:56:49 2008 +0000 @@ -811,7 +811,7 @@ 260 >>> from math import pi, sin - >>> sine_table = dict((x, sin(x*pi/180)) for x in range(0, 91)) + >>> 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())
