Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 521143d

Browse files
committed
Update pydoc topics and handle suspicious markup.
1 parent 447fcfb commit 521143d

3 files changed

Lines changed: 23 additions & 14 deletions

File tree

Doc/c-api/veryhigh.rst

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@ the same library that the Python runtime is using.
2727

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

Doc/tools/sphinxext/susp-ignored.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,14 @@ documenting/markup,864,`,": [""else"" "":"" `suite`]"
391391
documenting/markup,864,`,": [""finally"" "":"" `suite`]"
392392
documenting/markup,864,`,"try2_stmt: ""try"" "":"" `suite`"
393393
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'],"

Lib/pydoc_data/topics.py

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)