Part of #2154: minimal syntax fixes in doc example snippets.

This commit is contained in:
Georg Brandl 2008-02-21 20:38:13 +00:00
parent 359b9e994b
commit 12db865a64
2 changed files with 6 additions and 6 deletions

View File

@ -185,7 +185,7 @@ If you have a number of extensions all in the same package (or all under the
same base package), use the :option:`ext_package` keyword argument to same base package), use the :option:`ext_package` keyword argument to
:func:`setup`. For example, :: :func:`setup`. For example, ::
setup(... setup(...,
ext_package='pkg', ext_package='pkg',
ext_modules=[Extension('foo', ['foo.c']), ext_modules=[Extension('foo', ['foo.c']),
Extension('subpkg.bar', ['bar.c'])], Extension('subpkg.bar', ['bar.c'])],
@ -214,7 +214,7 @@ extension.
This warning notwithstanding, options to SWIG can be currently passed like This warning notwithstanding, options to SWIG can be currently passed like
this:: this::
setup(... setup(...,
ext_modules=[Extension('_foo', ['foo.i'], ext_modules=[Extension('_foo', ['foo.i'],
swig_opts=['-modern', '-I../include'])], swig_opts=['-modern', '-I../include'])],
py_modules=['foo'], py_modules=['foo'],
@ -443,7 +443,7 @@ option will allow the interpreter path to be explicitly overridden.
The :option:`scripts` option simply is a list of files to be handled in this The :option:`scripts` option simply is a list of files to be handled in this
way. From the PyXML setup script:: way. From the PyXML setup script::
setup(... setup(...,
scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val'] scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val']
) )
@ -501,7 +501,7 @@ anything which doesn't fit in the previous categories.
:option:`data_files` specifies a sequence of (*directory*, *files*) pairs in the :option:`data_files` specifies a sequence of (*directory*, *files*) pairs in the
following way:: following way::
setup(... setup(...,
data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']), data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']),
('config', ['cfg/data.cfg']), ('config', ['cfg/data.cfg']),
('/etc/init.d', ['init-script'])] ('/etc/init.d', ['init-script'])]
@ -613,7 +613,7 @@ information is sometimes used to indicate sub-releases. These are
:option:`classifiers` are specified in a python list:: :option:`classifiers` are specified in a python list::
setup(... setup(...,
classifiers=[ classifiers=[
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'Environment :: Console', 'Environment :: Console',

View File

@ -1633,7 +1633,7 @@ arguments::
value.append(arg) value.append(arg)
del rargs[0] del rargs[0]
setattr(parser.values, option.dest, value) setattr(parser.values, option.dest, value)
[...] [...]
parser.add_option("-c", "--callback", parser.add_option("-c", "--callback",