Georg Brandl
3f04303ba4
Test doctests in datetime docs.
2008-03-22 21:21:57 +00:00
Georg Brandl
4c8bbe69e5
Make collections' doctests executable.
...
(The <BLANKLINE>s will be stripped from presentation output.)
2008-03-22 21:06:20 +00:00
Georg Brandl
3dd57815b2
Fix-up syntax problems.
2008-03-22 20:08:43 +00:00
Georg Brandl
838b4b0145
No need to specify explicit "doctest_block" anymore.
2008-03-22 13:07:06 +00:00
Georg Brandl
473f1642a4
Make more doctests in pprint docs testable.
2008-03-22 12:59:37 +00:00
Georg Brandl
6199e32a74
Make doctests in re docs usable with sphinx' doctest.
2008-03-22 12:04:26 +00:00
Georg Brandl
9f6623255b
Test decimal.rst doctests as far as possible with sphinx doctest.
2008-03-22 11:47:10 +00:00
Georg Brandl
17baef0b7c
Activate the Sphinx doctest extension and convert howto/functional to use it.
2008-03-22 10:56:23 +00:00
Georg Brandl
86f38c81ae
#1918 : document that weak references *to* an object are
...
cleared before the object's __del__ is called, to ensure that the weak
reference callback (if any) finds the object healthy.
2008-03-22 10:07:29 +00:00
Christian Heimes
0e9ab5f2f0
Applied patch #1657 epoll and kqueue wrappers for the select module
...
The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support and help.
TODO: Finish documentation documentation
2008-03-21 23:49:44 +00:00
Georg Brandl
5f79446af0
Add missing versionadded tag.
2008-03-21 21:05:03 +00:00
Georg Brandl
d346475a0c
Add docs for print_function and future_builtins. Fixes #2442 .
2008-03-21 19:37:57 +00:00
Georg Brandl
3fbe20c01e
Add docs for __func__ and __self__ on methods.
2008-03-21 19:20:21 +00:00
Georg Brandl
06291185e1
Fix a code block in __future__ docs.
2008-03-21 19:14:38 +00:00
Marc-André Lemburg
4e0c72bbf0
Clarfiy the availability of the extended support for win32_ver() in Py2.6.
2008-03-20 18:58:14 +00:00
Marc-André Lemburg
53c7a60379
Add documentation for updated Windows support in win32_ver().
...
Add documentation for linux_distribution() API.
2008-03-20 17:55:31 +00:00
Sean Reifscheider
45ea86c124
Issue 2188: Documentation hint about disabling proxy detection.
2008-03-20 03:20:48 +00:00
Gregory P. Smith
a5cfcad0e3
Prevent ioctl op codes from being sign extended from int to unsigned long
...
when used on platforms that actually define ioctl as taking an unsigned long.
(the BSDs and OS X / Darwin)
Adds a unittest for fcntl.ioctl that tests what happens with both positive and
negative numbers.
This was done because of issue1471 but I'm not able to reproduce -that- problem
in the first place on Linux 32bit or 64bit or OS X 10.4 & 10.5 32bit or 64 bit.
2008-03-19 23:03:25 +00:00
Georg Brandl
97e863eaf8
Another one.
2008-03-19 07:57:57 +00:00
Georg Brandl
482d752dcb
Remove footnote from versionchanged as it upsets LaTeX.
2008-03-19 07:56:40 +00:00
Gregory P. Smith
bde40078b0
Mention that crc32 and adler32 are available in a different module (zlib).
...
Some people look for them in hashlib.
2008-03-19 01:38:35 +00:00
Steven Bethard
6f778cfb5b
Document unicode.isnumeric() and unicode.isdecimal() (issue2326)
2008-03-17 19:33:11 +00:00
Gregory P. Smith
f48f9d38c0
Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms
...
regardless of the native sizeof(long) used in the integer object.
This somewhat odd behavior of returning a signed is maintained in 2.x for
compatibility reasons of always returning an integer rather than a long object.
Fixes Issue1202 for Python 2.6
2008-03-17 18:48:05 +00:00
Mark Summerfield
43da35de7b
Added a footnote to each pointing out that for XML output if an encoding
...
string is given it should conform to the appropriate XML standards---for
example, "UTF-8" is okay, but "UTF8" is not.
2008-03-17 08:28:15 +00:00
Vinay Sajip
91f0ee4db6
Clarified documentation on use of shutdown().
2008-03-16 21:35:58 +00:00
Raymond Hettinger
a6cfeb4b9d
Update docs to reflect removal of Exact/Inexact
2008-03-16 05:20:42 +00:00
Skip Montanaro
fc070d2731
add %f format to datetime - issue 1158
2008-03-15 16:04:45 +00:00
Skip Montanaro
75e51680f1
note that fork and forkpty raise OSError on failure
2008-03-15 02:32:49 +00:00
Georg Brandl
0267781742
Fix lots of broken links in the docs, found by Sphinx' external link checker.
2008-03-15 00:20:19 +00:00
Georg Brandl
bd77681f36
Remove obsolete paragraph. #2288 .
2008-03-14 23:10:34 +00:00
Raymond Hettinger
53bdf09343
Issue 2274: Add heapq.heappushpop().
2008-03-13 19:03:51 +00:00
Georg Brandl
2e25551ef8
#1720705 : add docs about import/threading interaction, wording by Nick.
2008-03-13 07:21:41 +00:00
Georg Brandl
4bb40b9428
#2270 : fix typo.
2008-03-13 07:17:14 +00:00
Georg Brandl
d85a13a954
#2265 : fix example.
2008-03-13 07:15:56 +00:00
Raymond Hettinger
513460f80d
Improve docs for itemgetter(). Show that it works with slices.
2008-03-11 21:37:46 +00:00
Raymond Hettinger
e8b4b60555
Add recipe to docs.
2008-03-11 00:19:07 +00:00
Georg Brandl
c557db5268
#2249 : document assertTrue and assertFalse.
2008-03-09 15:11:39 +00:00
Facundo Batista
c54aec1fda
Issue 1106316. post_mortem()'s parameter, traceback, is now
...
optional: it defaults to the traceback of the exception that is currently
being handled.
2008-03-08 16:50:27 +00:00
Andrew M. Kuchling
31c6de4f79
Grammar fix
2008-03-07 21:09:23 +00:00
Nick Coghlan
7af53be66f
Speed up with statements by storing the __exit__ method on the stack instead of in a temp variable (bumps the magic number for pyc files)
2008-03-07 14:13:28 +00:00
Jeffrey Yasskin
e75f59a578
Progress on issue #1193577 by adding a polling .shutdown() method to
...
SocketServers. The core of the patch was written by Pedro Werneck, but any bugs
are mine. I've also rearranged the code for timeouts in order to avoid
interfering with the shutdown poll.
2008-03-07 06:22:15 +00:00
Raymond Hettinger
38fb9bee6c
Tweak recipes and tests
2008-03-07 01:33:20 +00:00
Georg Brandl
a7bd27f0a8
#2225 : return nonzero status code from py_compile if not all files could be compiled.
2008-03-06 07:41:16 +00:00
Georg Brandl
70992c3c83
Expand on re.split behavior with captured expressions.
2008-03-06 07:19:15 +00:00
Raymond Hettinger
040f10e9b3
Add examples.
2008-03-06 01:15:52 +00:00
Thomas Heller
f3c0559b5e
Issue 1872: Changed the struct module typecode from 't' to '?', for
...
compatibility with PEP3118.
2008-03-05 15:34:29 +00:00
Raymond Hettinger
d553d856e7
Beef-up docs and tests for itertools. Fix-up end-case for product().
2008-03-04 04:17:08 +00:00
Andrew M. Kuchling
3fe1843cee
Add versionadded tags
2008-03-04 01:49:37 +00:00
Andrew M. Kuchling
684868ac90
Fix sentence fragment
2008-03-04 01:47:38 +00:00
Andrew M. Kuchling
ece10b4004
Grammar fix; markup fix
2008-03-04 01:30:10 +00:00