Commit Graph

10390 Commits

Author SHA1 Message Date
Nick Coghlan 7c2bc8308c Issue 6288: update the contextlib.nested() docs to explain why it has been deprecated and should generally be avoided 2009-06-17 12:12:15 +00:00
Georg Brandl 476849c185 #6255: document PyInt_FromSize_t. 2009-06-17 09:43:31 +00:00
Georg Brandl 2fcf389e10 #6295: clarify blocking behavior of getch(). 2009-06-17 09:36:21 +00:00
Raymond Hettinger 3a02624059 Add usage note. 2009-06-17 01:43:47 +00:00
Georg Brandl f5af720a31 Add tabularcolumns directive for tables with bullet lists in them. 2009-06-16 17:41:33 +00:00
Tarek Ziadé fdefc0a5a1 Fixed #6287: documentation for the license field in distutils 2009-06-16 07:29:52 +00:00
Benjamin Peterson 248886a0cd use 'rc' for release candidates for consistency 2009-06-13 14:25:08 +00:00
Antoine Pitrou 1969059327 Issue #6215: backport the 3.1 io lib 2009-06-12 20:14:08 +00:00
Raymond Hettinger 2c0cdca564 Issue 6261: Clarify behavior of random.uniform(). 2009-06-11 23:14:53 +00:00
Raymond Hettinger 2742e7e584 Move comment to correct line. 2009-06-11 22:08:10 +00:00
Raymond Hettinger 87be88c2e9 Add example of how to do key lookups with bisect(). 2009-06-11 22:04:00 +00:00
Amaury Forgeot d'Arc d81333c540 Fix a typo spotted by Nick Coghlan. 2009-06-10 20:30:19 +00:00
Amaury Forgeot d'Arc d708c8703e Both kind of types are concerned. 2009-06-09 23:18:50 +00:00
Amaury Forgeot d'Arc 901f200c81 #6201: Fix test_winreg on Windows:
since the introduction of the SETUP_WITH opcode,
__enter__ and __exit__ methods must belong to the type,
and are not retrieved at the instance level (__dict__ or __getattr__).

Add a note in whatsnew about this incompatibility;
old style classes are not affected.
2009-06-09 23:08:13 +00:00
R. David Murray ccb9d4b21c Issue 2947: document how return code handling translates from
os.popen to subprocess.  Also fixes reference link in the
os.spawn documentation.
2009-06-09 00:44:22 +00:00
Georg Brandl 2cc39ad242 #6238: add fillchar to string.just function family. 2009-06-08 16:03:41 +00:00
Georg Brandl e590d57d06 #6194: O_SHLOCK/O_EXLOCK are not really more platform independent than lockf(). 2009-06-08 13:34:52 +00:00
Georg Brandl 42a826408b Remove period from end of headings. 2009-06-08 07:57:35 +00:00
Kristján Valur Jónsson afefcfd4bf http://bugs.python.org/issue6192
Add a feature to disable the Nagle algorithm on sockets in TCPServer
2009-06-07 16:43:23 +00:00
Georg Brandl 18187e2167 #6224: s/JPython/Jython/, and remove one link to a module nine years old. 2009-06-06 18:21:58 +00:00
Georg Brandl e3b9b5e4ed #6204: use a real reference instead of "see later". 2009-06-06 17:51:31 +00:00
Georg Brandl 4c324b9801 #6211: elaborate a bit on ways to call the function. 2009-06-06 17:50:05 +00:00
Eric Smith e7dbebbadf Minor documentation fixes for logging. 2009-06-04 17:58:15 +00:00
Georg Brandl 5000b3b8a7 #6175: document that inet_aton supports alternate input formats with less than three dots. 2009-06-04 10:27:21 +00:00
Georg Brandl 4a20b1ad51 #6176: fix man page section for flock(2). 2009-06-04 10:22:31 +00:00
Georg Brandl 3a5971c237 #5967: note that the C slicing APIs do not support negative indices. 2009-06-04 10:15:57 +00:00
Georg Brandl 0eca77c40c #6174: fix indentation in code example. 2009-06-03 21:21:09 +00:00
Georg Brandl c1edec3374 Use the preferred form of raise statements in the docs. 2009-06-03 07:25:35 +00:00
Andrew M. Kuchling 764fbcb098 The class for regexes isn't called RegexObject any more; correct the text 2009-06-01 00:14:19 +00:00
R. David Murray 8fcaebbef4 Issue 3848: document the fact that epoll register raises an IOError if
an fd is registered twice, and add some additional epoll tests.  Patch
by Christian Heimes.
2009-05-31 19:15:57 +00:00
Antoine Pitrou 4698d9928e Issue #6152: New option '-j'/'--multiprocess' for regrtest allows running
regression tests in parallel, shortening the total runtime.
2009-05-31 14:20:14 +00:00
Georg Brandl d198b76d36 Fix markup. 2009-05-31 14:15:25 +00:00
Benjamin Peterson d7ead0c23f fix signature 2009-05-31 00:42:42 +00:00
Gregory P. Smith 2152ca390b Add more examples to the ipaddr documentation. 2009-05-30 19:58:11 +00:00
Georg Brandl 2fcd17324d Rewrap a few long lines. 2009-05-30 10:45:40 +00:00
Georg Brandl 6da0e6ac5a Fix markup problem. 2009-05-30 10:34:25 +00:00
Georg Brandl 6a4689887c Fix some more small markup problems. 2009-05-30 10:33:23 +00:00
Georg Brandl 7be493a86c Use preferred form of raising exceptions. 2009-05-30 07:31:25 +00:00
Georg Brandl ccbb47be5e #6146: fix markup bug. 2009-05-30 07:26:04 +00:00
Benjamin Peterson ecf3c62440 no fdatasync on macos 2009-05-30 03:10:52 +00:00
Raymond Hettinger b09f198362 Move the basic examples section back to the beginning. 2009-05-29 21:20:41 +00:00
Michael Foord b4a81c838a Add test discovery to unittest. Issue 6001. 2009-05-29 20:33:46 +00:00
R. David Murray fe6e784a9d Issue 6141: document that the first item of args is still the
command name even when executable is specified.
2009-05-29 19:30:27 +00:00
Raymond Hettinger 822b87f276 Deprecate contextlib.nested(). The with-statement now provides this functionality directly. 2009-05-29 01:46:48 +00:00
Benjamin Peterson 1075c9b431 switch library reference and language reference 2009-05-28 03:02:13 +00:00
Raymond Hettinger a68cad13ae Fix field name conflicts for named tuples. 2009-05-27 02:24:45 +00:00
Georg Brandl 4ee8282229 #6112: list.remove raises ValueError, not RuntimeError. 2009-05-26 07:50:23 +00:00
Georg Brandl 944f684ce6 Allow multiple context managers in one with statement, as proposed
in http://codereview.appspot.com/53094 and accepted by Guido.

The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.
2009-05-25 21:02:56 +00:00
Benjamin Peterson 1880d8b823 add a SETUP_WITH opcode
It speeds up the with statement and correctly looks up the special
methods involved.
2009-05-25 13:13:44 +00:00
Benjamin Peterson 176a56c69b make class skipping decorators the same as skipping every test of the class
This removes ClassTestSuite and a good bit of hacks.
2009-05-25 00:48:58 +00:00
Gregory P. Smith d03e1b4475 add a versionadded tag for set_tunnel 2009-05-24 18:00:13 +00:00
Senthil Kumaran e266f25cf1 Fixed Issue1424152, urllib2 fails with HTTPS over Proxy. 2009-05-24 09:14:50 +00:00
Jeffrey Yasskin 655d835415 Issue #6042:
lnotab-based tracing is very complicated and isn't documented very well.  There
were at least 3 comment blocks purporting to document co_lnotab, and none did a
very good job. This patch unifies them into Objects/lnotab_notes.txt which
tries to completely capture the current state of affairs.

I also discovered that we've attached 2 layers of patches to the basic tracing
scheme. The first layer avoids jumping to instructions that don't start a line,
to avoid problems in if statements and while loops.  The second layer
discovered that jumps backward do need to trace at instructions that don't
start a line, so it added extra lnotab entries for 'while' and 'for' loops, and
added a special case for backward jumps within the same line. I replaced these
patches by just treating forward and backward jumps differently.
2009-05-23 23:23:01 +00:00
Benjamin Peterson 91d517c54b remove mention of old ctypes version 2009-05-23 20:59:09 +00:00
Georg Brandl bc4af35f9e #6086: fix spelling and use a better exception to catch. 2009-05-22 10:40:00 +00:00
Georg Brandl 346a38dbc0 Correction in softspace behavior description. 2009-05-22 09:58:48 +00:00
Georg Brandl e15048ea37 s/use/call/ 2009-05-22 09:50:30 +00:00
Georg Brandl 22396da5ee Fix confusing wording. 2009-05-22 09:49:42 +00:00
Georg Brandl 012408c2b9 Fix references to file-related functions and methods (os.* vs file.*). 2009-05-22 09:43:17 +00:00
Georg Brandl fa0123b4fa #6084: fix example. 2009-05-22 09:33:25 +00:00
Georg Brandl 5a8d7eb7f1 Use raise X(y). 2009-05-22 07:23:32 +00:00
Philip Jenvey 739aa36818 don't use subprocess.call with PIPEs as the child can fill the pipe buf and
deadlock. add a warning to subprocess docs about this, similar to Popen.wait's.
refs http://bugs.jython.org/issue1351
2009-05-22 05:35:32 +00:00
Raymond Hettinger 9b6f13ee82 Fix-up moving average example. 2009-05-22 01:06:44 +00:00
Georg Brandl ac2380b58a #6051: refer to email examples for better way to construct email messages. 2009-05-20 18:35:27 +00:00
Georg Brandl 498a9b3491 #6055: refer to "sqlite3" consistently. 2009-05-20 18:31:14 +00:00
Raymond Hettinger 50f362fffa Note that ordered dictionaries work with reversed(). 2009-05-19 17:43:59 +00:00
Benjamin Peterson 5605416100 chop off slash 2009-05-17 16:59:27 +00:00
Benjamin Peterson cadaf551e0 ignore .rst files in sphinx its self 2009-05-17 14:16:29 +00:00
Georg Brandl 903953c19e #5935: mention that BROWSER is looked for in PATH. 2009-05-17 08:55:00 +00:00
Georg Brandl ee8e08b8b6 #5942: Copy over flag table from dbm.rst which is clearer. 2009-05-17 08:36:04 +00:00
Georg Brandl 4c8b1c7a59 #6017: better document behavior of dictiterators when the dict is changed. 2009-05-17 08:24:29 +00:00
Georg Brandl 5e88eea994 part of #4144: fix exception message in console session. 2009-05-17 08:10:27 +00:00
Georg Brandl c03cd4ca8e Fix about and bugs pages to match real workflow. 2009-05-16 11:24:41 +00:00
Georg Brandl d933cc293b #2856: document 2.x os.listdir() behavior for undecodable filenames. 2009-05-16 11:21:29 +00:00
Georg Brandl 14315d6513 #6009: undocument default argument of Option as deprecated. 2009-05-16 11:18:55 +00:00
Georg Brandl 29d3a04618 #6025: fix signature of parse(). 2009-05-16 11:14:46 +00:00
Georg Brandl 8dc3b445ec #6034: clarify __reversed__ doc. 2009-05-16 11:13:21 +00:00
Georg Brandl 490096e760 Fix example output for doctest-like demos. 2009-05-15 08:03:03 +00:00
Benjamin Peterson 51d06abc99 importlib.import_module is better these days 2009-05-14 00:33:10 +00:00
R. David Murray 7118954914 Make it clear up front that shelve only records changes
when objects are assigned back to it when writeback is False.
2009-05-12 01:36:57 +00:00
Michael Foord 5d31e057c5 Adds a verbosity keyword argument to unittest.main plus a minor fix allowing you to specify test modules / classes
from the command line.

Closes issue 5995.

Michael Foord
2009-05-11 17:59:43 +00:00
Benjamin Peterson 3dabc10134 sys.setdefaultencoding() strikes me as a bad example 2009-05-10 23:52:09 +00:00
Jeffrey Yasskin f7f858d141 Issue 5954, PyFrame_GetLineNumber:
Most uses of PyCode_Addr2Line
(http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get
the line number of a specified frame, but there's no way to do that directly.
Forcing people to go through the code object makes them know more about the
guts of the interpreter than they should need.

The remaining uses of PyCode_Addr2Line seem to be getting the line from a
traceback (for example,
http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line),
which is replaced by the tb_lineno field.  So we may be able to deprecate
PyCode_Addr2Line entirely for external use.
2009-05-08 22:23:21 +00:00
Jeffrey Yasskin 1aa4700234 PyCode_NewEmpty:
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
2009-05-08 21:51:06 +00:00
Georg Brandl d8282eeb51 Fix name. 2009-05-08 12:17:34 +00:00
Eric Smith 7523234abf Fixed wording for formatting integers: precision is not allowed. 2009-05-07 19:36:09 +00:00
R. David Murray dd26681155 Revert inappropriate doc change. 2009-05-07 01:43:57 +00:00
R. David Murray e202700f4f Document how to pass a 'decode' argument to get_payload when
is_multipart is False.
2009-05-07 01:39:25 +00:00
Andrew M. Kuchling 1271662067 Remove two dead links 2009-05-06 22:54:19 +00:00
Eric Smith a985a3aee4 Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson. 2009-05-05 18:26:08 +00:00
Georg Brandl 4d4313d59d #5142: add module skipping feature to pdb. 2009-05-05 08:54:11 +00:00
Georg Brandl e3a3726b3d #5916, 5917: small socket doc improvements. 2009-05-04 20:49:17 +00:00
Georg Brandl f5f045e470 #5927, 5928: typos. 2009-05-04 20:45:13 +00:00
Georg Brandl 2ca9be4a0c #5925: fix highlighting of keyword table. 2009-05-04 20:42:08 +00:00
Gregory P. Smith d02eedacab Issue #4751: For hashlib algorithms provided by OpenSSL, the Python
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Michael Foord 07ef487a96 2009-05-02 22:43:34 +00:00
Benjamin Peterson 2b42c29a50 add myself 2009-05-02 20:26:53 +00:00
Michael Foord e2fb98f467 Add addCleanup and doCleanups to unittest.TestCase.
Closes issue 5679.

Michael Foord
2009-05-02 20:15:05 +00:00
Andrew M. Kuchling 92b970037b Add items 2009-05-02 17:12:15 +00:00
Michael Foord 829f6b8052 Adds an exit parameter to unittest.main(). If False main no longer
calls sys.exit.

Closes issue 3379.

Michael Foord
2009-05-02 11:43:06 +00:00