Update pydoc topics and handle suspicious markup.

This commit is contained in:
Georg Brandl 2011-05-15 17:51:24 +02:00
parent 447fcfb0b4
commit 521143dd6c
3 changed files with 23 additions and 14 deletions

View file

@ -27,17 +27,15 @@ the same library that the Python runtime is using.
.. c:function:: int Py_Main(int argc, wchar_t **argv)
The main program for the standard interpreter. This is made
available for programs which embed Python. The *argc* and *argv*
parameters should be prepared exactly as those which are passed to
a C program's :c:func:`main` function (converted to wchar_t
according to the user's locale). It is important to note that the
argument list may be modified (but the contents of the strings
pointed to by the argument list are not). The return value will be
```0``` if the interpreter exits normally (ie, without an
exception), ``1`` if the interpreter exits due to an exception, or
``2`` if the parameter list does not represent a valid Python
command line.
The main program for the standard interpreter. This is made available for
programs which embed Python. The *argc* and *argv* parameters should be
prepared exactly as those which are passed to a C program's :c:func:`main`
function (converted to wchar_t according to the user's locale). It is
important to note that the argument list may be modified (but the contents of
the strings pointed to by the argument list are not). The return value will
be ``0`` if the interpreter exits normally (i.e., without an exception),
``1`` if the interpreter exits due to an exception, or ``2`` if the parameter
list does not represent a valid Python command line.
Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
function will not return ``1``, but exit the process, as long as

View file

@ -391,3 +391,14 @@ documenting/markup,864,`,": [""else"" "":"" `suite`]"
documenting/markup,864,`,": [""finally"" "":"" `suite`]"
documenting/markup,864,`,"try2_stmt: ""try"" "":"" `suite`"
documenting/markup,864,`,": ""finally"" "":"" `suite`"
library/pprint,209,::,"'classifiers': ['Development Status :: 4 - Beta',"
library/pprint,209,::,"'Intended Audience :: Developers',"
library/pprint,209,::,"'License :: OSI Approved :: MIT License',"
library/pprint,209,::,"'Natural Language :: English',"
library/pprint,209,::,"'Operating System :: OS Independent',"
library/pprint,209,::,"'Programming Language :: Python',"
library/pprint,209,::,"'Programming Language :: Python :: 2',"
library/pprint,209,::,"'Programming Language :: Python :: 2.6',"
library/pprint,209,::,"'Programming Language :: Python :: 2.7',"
library/pprint,209,::,"'Topic :: Software Development :: Libraries',"
library/pprint,209,::,"'Topic :: Software Development :: Libraries :: Python Modules'],"

1 c-api/arg :ref PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
391 documenting/markup 864 ` : ["finally" ":" `suite`]
392 documenting/markup 864 ` try2_stmt: "try" ":" `suite`
393 documenting/markup 864 ` : "finally" ":" `suite`
394 library/pprint 209 :: 'classifiers': ['Development Status :: 4 - Beta',
395 library/pprint 209 :: 'Intended Audience :: Developers',
396 library/pprint 209 :: 'License :: OSI Approved :: MIT License',
397 library/pprint 209 :: 'Natural Language :: English',
398 library/pprint 209 :: 'Operating System :: OS Independent',
399 library/pprint 209 :: 'Programming Language :: Python',
400 library/pprint 209 :: 'Programming Language :: Python :: 2',
401 library/pprint 209 :: 'Programming Language :: Python :: 2.6',
402 library/pprint 209 :: 'Programming Language :: Python :: 2.7',
403 library/pprint 209 :: 'Topic :: Software Development :: Libraries',
404 library/pprint 209 :: 'Topic :: Software Development :: Libraries :: Python Modules'],

File diff suppressed because one or more lines are too long