diff options
author | Georg Brandl <georg@python.org> | 2009-01-03 21:26:05 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-01-03 21:26:05 (GMT) |
commit | a1c6a1cea5af1d3c7682a8e99b001b0904480e4d (patch) | |
tree | 85461d1ba5237440b36f253b197779190226a294 /Doc/whatsnew/2.0.rst | |
parent | 48310cd3f2e02ced9ae836ccbcb67e9af3097d62 (diff) | |
download | cpython-a1c6a1cea5af1d3c7682a8e99b001b0904480e4d.zip cpython-a1c6a1cea5af1d3c7682a8e99b001b0904480e4d.tar.gz cpython-a1c6a1cea5af1d3c7682a8e99b001b0904480e4d.tar.bz2 |
Merged revisions 68221 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68221 | georg.brandl | 2009-01-03 22:04:55 +0100 (Sat, 03 Jan 2009) | 2 lines
Remove tabs from the documentation.
........
Diffstat (limited to 'Doc/whatsnew/2.0.rst')
-rw-r--r-- | Doc/whatsnew/2.0.rst | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Doc/whatsnew/2.0.rst b/Doc/whatsnew/2.0.rst index 75205d4..f5326d7 100644 --- a/Doc/whatsnew/2.0.rst +++ b/Doc/whatsnew/2.0.rst @@ -281,7 +281,7 @@ write the following to do it:: # containing the substring S. sublist = filter( lambda s, substring=S: string.find(s, substring) != -1, - L) + L) Because of Python's scoping rules, a default argument is used so that the anonymous function created by the :keyword:`lambda` statement knows what @@ -293,7 +293,7 @@ List comprehensions have the form:: [ expression for expr in sequence1 for expr2 in sequence2 ... - for exprN in sequenceN + for exprN in sequenceN if condition ] The :keyword:`for`...\ :keyword:`in` clauses contain the sequences to be @@ -368,7 +368,7 @@ instance with an incremented value. def __init__(self, value): self.value = value def __iadd__(self, increment): - return Number( self.value + increment) + return Number( self.value + increment) n = Number(5) n += 3 @@ -852,13 +852,12 @@ the PyXML package:: from distutils.core import setup, Extension expat_extension = Extension('xml.parsers.pyexpat', - define_macros = [('XML_NS', None)], - include_dirs = [ 'extensions/expat/xmltok', - 'extensions/expat/xmlparse' ], - sources = [ 'extensions/pyexpat.c', - 'extensions/expat/xmltok/xmltok.c', - 'extensions/expat/xmltok/xmlrole.c', - ] + define_macros = [('XML_NS', None)], + include_dirs = [ 'extensions/expat/xmltok', + 'extensions/expat/xmlparse' ], + sources = [ 'extensions/pyexpat.c', + 'extensions/expat/xmltok/xmltok.c', + 'extensions/expat/xmltok/xmlrole.c', ] ) setup (name = "PyXML", version = "0.5.4", ext_modules =[ expat_extension ] ) |