Fix markup errors and update pydoc topics.

This commit is contained in:
Georg Brandl 2012-08-11 08:43:59 +02:00
parent 80dd1af4e0
commit a81b481e3a
4 changed files with 27 additions and 9 deletions

View File

@ -358,7 +358,7 @@ Loaders must satisfy the following requirements:
iterable, but may be empty if ``__path__`` has no further significance
to the importer. If ``__path__`` is not empty, it must produce strings
when iterated over. More details on the semantics of ``__path__`` are
given :ref`below <package-path-rules>`.
given :ref:`below <package-path-rules>`.
* The ``__loader__`` attribute must be set to the loader object that loaded
the module. This is mostly for introspection and reloading, but can be

View File

@ -64,6 +64,10 @@ howto/ipaddress,,:ffff,IPv6Address('::ffff:ffff')
howto/ipaddress,,::,IPv6Address('2001::1')
howto/ipaddress,,::,IPv6Address('2001::ffff:ffff')
howto/ipaddress,,:ffff,IPv6Address('2001::ffff:ffff')
howto/ipaddress,,:db8,'2001:db8::'
howto/ipaddress,,::,'2001:db8::'
howto/ipaddress,,:db8,'2001:db8::/96'
howto/ipaddress,,::,'2001:db8::/96'
howto/logging,,:And,"WARNING:And this, too"
howto/logging,,:And,"WARNING:root:And this, too"
howto/logging,,:Doing,INFO:root:Doing something
@ -151,6 +155,20 @@ library/ipaddress,,:ffff,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
library/ipaddress,,::,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
library/ipaddress,,:db8,">>> ipaddress.IPv6Network('2001:db8::1000/96', strict=False)"
library/ipaddress,,::,">>> ipaddress.IPv6Network('2001:db8::1000/96', strict=False)"
library/ipaddress,,::,"""::abc:7:def"""
library/ipaddress,,:def,"""::abc:7:def"""
library/ipaddress,,::,::FFFF/96
library/ipaddress,,::,2002::/16
library/ipaddress,,::,2001::/32
library/ipaddress,,::,>>> str(ipaddress.IPv6Address('::1'))
library/ipaddress,,::,'::1'
library/ipaddress,,::,>>> int(ipaddress.IPv6Address('::1'))
library/ipaddress,,:ff00,ffff:ff00::
library/ipaddress,,:db00,2001:db00::0/24
library/ipaddress,,::,2001:db00::0/24
library/ipaddress,,:db00,2001:db00::0/ffff:ff00::
library/ipaddress,,::,2001:db00::0/ffff:ff00::
library/ipaddress,,:ff00,2001:db00::0/ffff:ff00::
library/itertools,,:step,elements from seq[start:stop:step]
library/itertools,,:stop,elements from seq[start:stop:step]
library/linecache,,:sys,"sys:x:3:3:sys:/dev:/bin/sh"

1 c-api/arg :ref PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
64 howto/ipaddress :: IPv6Address('2001::1')
65 howto/ipaddress :: IPv6Address('2001::ffff:ffff')
66 howto/ipaddress :ffff IPv6Address('2001::ffff:ffff')
67 howto/ipaddress :db8 '2001:db8::'
68 howto/ipaddress :: '2001:db8::'
69 howto/ipaddress :db8 '2001:db8::/96'
70 howto/ipaddress :: '2001:db8::/96'
71 howto/logging :And WARNING:And this, too
72 howto/logging :And WARNING:root:And this, too
73 howto/logging :Doing INFO:root:Doing something
155 library/ipaddress :: IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
156 library/ipaddress :db8 >>> ipaddress.IPv6Network('2001:db8::1000/96', strict=False)
157 library/ipaddress :: >>> ipaddress.IPv6Network('2001:db8::1000/96', strict=False)
158 library/ipaddress :: "::abc:7:def"
159 library/ipaddress :def "::abc:7:def"
160 library/ipaddress :: ::FFFF/96
161 library/ipaddress :: 2002::/16
162 library/ipaddress :: 2001::/32
163 library/ipaddress :: >>> str(ipaddress.IPv6Address('::1'))
164 library/ipaddress :: '::1'
165 library/ipaddress :: >>> int(ipaddress.IPv6Address('::1'))
166 library/ipaddress :ff00 ffff:ff00::
167 library/ipaddress :db00 2001:db00::0/24
168 library/ipaddress :: 2001:db00::0/24
169 library/ipaddress :db00 2001:db00::0/ffff:ff00::
170 library/ipaddress :: 2001:db00::0/ffff:ff00::
171 library/ipaddress :ff00 2001:db00::0/ffff:ff00::
172 library/itertools :step elements from seq[start:stop:step]
173 library/itertools :stop elements from seq[start:stop:step]
174 library/linecache :sys sys:x:3:3:sys:/dev:/bin/sh

View File

@ -1135,7 +1135,7 @@ gc
--
It is now possible to register callbacks invoked by the garbage collector
before and after collection using the new :`data:`~gc.callbacks` list.
before and after collection using the new :data:`~gc.callbacks` list.
hmac

File diff suppressed because one or more lines are too long