Commit Graph

10620 Commits

Author SHA1 Message Date
Georg Brandl 069149155b Fix duplicate end tag. 2011-01-05 10:59:48 +00:00
R. David Murray 477efb3944 #10790: make append work when output codec is different from input codec
There's still a bug here (the encode call shouldn't use the 'errors'
paramter), but I'll fix that later.
2011-01-05 01:39:32 +00:00
Alexander Belopolsky b9588b528a Issue #8013: time.asctime and time.ctime no longer call system asctime
and ctime functions.  The year range for time.asctime is now 1900
through maxint.  The range for time.ctime is the same as for
time.localtime.  The string produced by these functions is longer than
24 characters when year is greater than 9999.
2011-01-04 16:34:30 +00:00
Vinay Sajip 2427ab9d6f logging HOWTO: fixed markup for numbered handler list. 2011-01-04 13:58:49 +00:00
Michael Foord 32e1d8340c Enable unittest.TestCase to be instantiated without providing a method name.
Changed unittestgui to show number of discovered tests in the status bar.
2011-01-03 17:00:11 +00:00
Michael Foord 90efac7f37 Issue 10502: addition of unittestgui to Tools/ 2011-01-03 15:39:49 +00:00
Michael Foord d218e956d2 Issue 10786: unittest documentation update. 2011-01-03 12:55:11 +00:00
Antoine Pitrou e1bc898216 Some nits. 2011-01-02 22:12:22 +00:00
Antoine Pitrou b205d58d0d Add a shutdown() call in the server example. 2011-01-02 22:09:27 +00:00
Antoine Pitrou 4a67a46543 Clarify behaviour of close() and shutdown() on sockets. 2011-01-02 22:06:53 +00:00
Georg Brandl 8a7e5daab2 Fix code indentation. 2011-01-02 19:07:51 +00:00
Georg Brandl 121ff8235b #1665333: add more docs for optparse.OptionGroup. 2011-01-02 14:23:43 +00:00
Georg Brandl ed13853e5d Happy New Year! (CET edition) 2010-12-31 23:00:03 +00:00
Georg Brandl 59b44721e3 Remove mentions of the Demo directory. 2010-12-30 22:12:40 +00:00
Georg Brandl 4cf83f4d12 Remove some of the old demos. (Put a few somewhere else.) 2010-12-30 17:22:33 +00:00
Martin v. Löwis 0dbebc02ed Issue #10542: Document that identifiers use XID_Start XID_Continue*. 2010-12-30 08:36:37 +00:00
Senthil Kumaran 627284c67f Fix Issue10793 - hashlib documentation issue on return type of digest 2010-12-30 07:07:58 +00:00
R. David Murray ef1a8b62bc Fix same typo in docs. 2010-12-29 19:06:48 +00:00
Victor Stinner de3aa7fc62 Issue #10783: rephrase the changelog (new try) 2010-12-29 02:44:42 +00:00
Victor Stinner 80e788a5dd Rephrase PyUnicode_CompareWithASCIIString() documentation 2010-12-28 23:39:51 +00:00
Victor Stinner ece98d6e08 Issue #10783: rephrase the changelog (NEWS, What's new) 2010-12-28 23:35:10 +00:00
Georg Brandl 8aa7e999b5 Add sys.flags.quiet attribute for the new -q option, as noted missing by Eric in #1772833. 2010-12-28 18:30:18 +00:00
Brian Curtin 9624559d12 Minor doc update for #9333. Took out the phrasing about os.symlink not
existing and mentioned the OSError possibility.
2010-12-28 17:08:22 +00:00
Victor Stinner da9ec995f6 Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8
* Replace "bytes" by "bytes object" in struct error messages
 * Document the API change in What's new in Python 3.2
 * Fix test_wave
 * Remove also ugly implicit conversions in test_struct
2010-12-28 13:26:42 +00:00
Georg Brandl e398da9ad0 #10609: fix non-working dbm example. 2010-12-28 11:53:25 +00:00
Georg Brandl e9e8c9bda4 #10739: document that on Windows, socket.makefile() does not make a file that has a true file descriptor usable where such a thing is expected. 2010-12-28 11:49:41 +00:00
Georg Brandl 9d9848e776 Rewrap. 2010-12-28 11:48:53 +00:00
Georg Brandl 2c39c77285 #10781: clarify that *encoding* is not a parameter for Node objects in general. 2010-12-28 11:15:49 +00:00
Georg Brandl c28036b532 #10742: document readonly attribute of memoryviews. 2010-12-28 11:08:17 +00:00
Victor Stinner b1dbd10c42 Issue #9738: Fix typo, ASCII-encoding string => ASCII-encoded string 2010-12-28 11:02:46 +00:00
Georg Brandl 15641925b8 Fix advice: call PyType_Ready to fill in ob_type of custom types. 2010-12-28 09:29:19 +00:00
Georg Brandl fcf3a0c55b Remove confusing paragraph -- this is relevant only to advanced users anyway and does not belong into the tutorial. 2010-12-28 09:18:24 +00:00
Georg Brandl 2a39b71ecc Replace sys.maxint mention by sys.maxsize. 2010-12-28 09:16:12 +00:00
Victor Stinner 301e956686 Issue #8966: Remove the documentation of ctypes.set_conversion_mode()
Function removed by r83195.
2010-12-28 00:59:02 +00:00
Victor Stinner 92be939695 Issue #10780: PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the
filesystem encoding instead of UTF-8.
2010-12-28 00:28:21 +00:00
Victor Stinner cb428f0162 Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem
encoding instead of UTF-8.
2010-12-27 20:10:36 +00:00
Victor Stinner 00676d1436 Issue #9738: Document encodings of AST, compiler, parser and PyRun functions 2010-12-27 01:49:31 +00:00
Victor Stinner dc2081f72b Issue #9738: document encodings of unicode functions 2010-12-27 01:49:29 +00:00
Victor Stinner 555a24f206 Issue #9738: Document encodings of error and warning functions 2010-12-27 01:49:26 +00:00
Vinay Sajip 7d10129369 Added logging documentation cross-references. 2010-12-26 21:22:33 +00:00
Vinay Sajip e6f1e435d4 Improved logging cookbook for logging with multiprocessing. 2010-12-26 18:47:51 +00:00
Éric Araujo 0d4bcf4c71 Fix typo (#10770) 2010-12-26 17:53:27 +00:00
Éric Araujo 2908765ffd Remove unexistent parameter (#3216) 2010-12-26 02:38:05 +00:00
Éric Araujo c9562f3cbe Fix typo spotted by Rodrigo Bernardo Pimentel (#9891) 2010-12-26 02:18:49 +00:00
Raymond Hettinger 57bd00a15b Adopt symmetric names for arguments (actual/expected --> first/second). 2010-12-24 21:51:48 +00:00
Vinay Sajip 1397ce1821 Logging documentation updates. 2010-12-24 12:03:48 +00:00
Alexander Belopolsky fca8beed4a Added an XXX note to describe timedelta/timedelta feature. 2010-12-24 04:22:40 +00:00
Raymond Hettinger 6518f5e780 Fix docs and comment for r87454. 2010-12-24 00:52:54 +00:00
Alexander Belopolsky b2eacd9129 Issue #9063: Corrected the tzinfo example. 2010-12-24 00:24:11 +00:00
Alexander Belopolsky 0d26798bbc Issue #10587: Document the meaning of str methods. 2010-12-23 02:58:25 +00:00
Michael Foord eaedfcb400 Another trivial typo correction in whatsnew 2010-12-22 18:28:51 +00:00
Vinay Sajip 689b68ad2d Logging documentation updates. 2010-12-22 15:04:15 +00:00
Michael Foord 5e9b14c39e Minor typo corrections in whatsnew 2010-12-22 10:39:04 +00:00
Raymond Hettinger f35a34cbab Add todo 2010-12-22 09:11:54 +00:00
Alexander Belopolsky 1a7a2e03b2 Both PEP 3131 and the current implementation use NFKC normalization
for identifiers.  Fixed the documentation to agree.
2010-12-22 01:37:36 +00:00
Raymond Hettinger cfee0e83eb Document the alternate format for :ref:. 2010-12-21 20:52:12 +00:00
Raymond Hettinger 6778fa9b2a Reference the release schedule 2010-12-21 20:09:55 +00:00
Raymond Hettinger 8ebe27f300 Deprecate assertDictContainsSubset() 2010-12-21 19:24:26 +00:00
Antoine Pitrou f259076790 Suggest sys.maxsize as a reliable way to know whether the interpreter is 64-bit.
(part of #10735)
2010-12-21 18:49:01 +00:00
Vinay Sajip 01094e1fe4 Logging documentation updates. 2010-12-19 13:41:26 +00:00
Vinay Sajip c63619bcf2 Logging documentation reorganised. 2010-12-19 12:56:57 +00:00
Georg Brandl 09a7df8301 #3243 follow-up: remove debugging print and fix docs; data is a bytes object. 2010-12-19 12:33:52 +00:00
Senthil Kumaran 7bc0d872dd Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee. 2010-12-19 10:49:52 +00:00
Georg Brandl c88435023c Fix markup error and update suspicious file. 2010-12-19 10:28:46 +00:00
Vinay Sajip 7504302875 Logging documentation update. 2010-12-19 06:02:31 +00:00
Ezio Melotti addc6f5a21 #10573: use actual/expected consistently in unittest methods. The order of the args of assertCountEqual is also changed. 2010-12-18 20:00:04 +00:00
Georg Brandl 0bdfbfa276 #10723: add missing builtin exceptions. 2010-12-18 17:51:28 +00:00
R. David Murray 32e1771daf #10728: the default for printing help is sys.stdout, not stderr. 2010-12-18 16:39:06 +00:00
Georg Brandl 77570e2d0e Fix typo. 2010-12-18 16:21:58 +00:00
Antoine Pitrou 197c9c945e Make this a note again. 2010-12-18 12:33:06 +00:00
Georg Brandl eebb252e6b Use kbd role. 2010-12-18 12:01:15 +00:00
Georg Brandl 5d53fdd1ac Typo fix. 2010-12-18 11:58:12 +00:00
Georg Brandl 101234bc83 Add attribution. 2010-12-18 11:53:25 +00:00
Raymond Hettinger 2b8861fa70 Nits. 2010-12-18 11:20:52 +00:00
Steven Bethard fd311a712d Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg for beta2 on the tracker. 2010-12-18 11:19:23 +00:00
Raymond Hettinger 04129748ae Minor markup and wording fixups. 2010-12-18 10:57:50 +00:00
Raymond Hettinger d73be67c3f Minor wordsmithing and markup fix-ups. 2010-12-18 10:48:26 +00:00
Raymond Hettinger 3094ed8c69 Enhance argparse example to show aliases. 2010-12-18 09:41:32 +00:00
Raymond Hettinger c539a2a88e Add link to a sample solution to a common problem. 2010-12-17 23:31:30 +00:00
Daniel Stutzbach c5895dcc15 Fix typo 2010-12-17 22:28:07 +00:00
Łukasz Langa 79a06ed567 fix for an embarrassing autoformatting SNAFU. Thanks for your alertness, Antoine. 2010-12-17 22:05:46 +00:00
Łukasz Langa 2b38b6cee8 configparser hype coming up! 2010-12-17 21:57:32 +00:00
Łukasz Langa 71b37a5d6d 100% test coverage, better mapping protocol compatibility, some minor bugfixes 2010-12-17 21:56:32 +00:00
Daniel Stutzbach 2a1e3e67b3 Issue2690: Update docs to reflect the change made by issue2690. 2010-12-17 20:53:03 +00:00
Raymond Hettinger 09f44140aa Expand the LBYL glossary entry. 2010-12-17 20:19:50 +00:00
Antoine Pitrou 988dbd7bc2 Issue #10711: Remove HTTP 0.9 support from http.client. The `strict`
parameter to HTTPConnection and friends is deprecated.
2010-12-17 17:35:56 +00:00
Daniel Stutzbach 7cb3051dc3 Issue 8753: Added documentation for Py_ReprEntr and Py_ReprLeave. 2010-12-17 16:31:32 +00:00
R. David Murray 94f58c3a65 #10454: clarify the compileall docs and help messages. 2010-12-17 16:29:07 +00:00
R. David Murray a396463db3 #10559: provide instructions for accessing sys.argv when first mentioned. 2010-12-17 16:11:40 +00:00
Łukasz Langa b25a791802 configparser API cleanup: default values now sensible, slightly incompatible.
Backwards compatible alternative values possible as documented.
Done by Łukasz Langa, approved by Raymond and Fred.
2010-12-17 01:32:29 +00:00
Antoine Pitrou 12de8ac215 Credit Florent for porting 2010-12-16 13:33:56 +00:00
Raymond Hettinger 202717db67 Add todo for WSGI 2010-12-16 10:06:11 +00:00
Éric Araujo 930df31987 Add missing docs and directives related to PEP 3147 and byte-compilation 2010-12-16 06:28:48 +00:00
Éric Araujo 971dc01e8a Fix one versionchanged 2010-12-16 03:13:05 +00:00
Raymond Hettinger 9743e4f616 Improve the ContextDecorator example. 2010-12-16 02:24:12 +00:00
Éric Araujo f68fa05f7b Add versionadded directive missing from r78983. 2010-12-16 02:10:11 +00:00
Éric Araujo 1d55c7ea9b Advertise “python -m test” over test.regrtest (r87296 followup) 2010-12-16 01:40:26 +00:00
Łukasz Langa 7f64c8a512 Broken ConfigParser removed, SafeConfigParser renamed to ConfigParser.
Life is beatiful once again.
2010-12-16 01:16:22 +00:00
Raymond Hettinger bb9686f66f Thank you ispell. 2010-12-16 00:53:05 +00:00
Raymond Hettinger 48f3bd331c Nits 2010-12-16 00:30:53 +00:00
Éric Araujo 055d2e0da4 Advertise “python -m” instead of direct filename. 2010-12-16 00:23:30 +00:00
Raymond Hettinger 6046e22db3 Entries for ElementTree, collectionsm, functools and ZipFile. 2010-12-16 00:21:08 +00:00
Éric Araujo d6c5f749d8 No need to generate a link for something that’s just above. 2010-12-16 00:07:01 +00:00
Antoine Pitrou 810023db3e Issue #8844: Regular and recursive lock acquisitions can now be interrupted
by signals on platforms using pthreads.  Patch by Reid Kleckner.
2010-12-15 22:59:16 +00:00
Éric Araujo 119cda0fd2 Mark up one missed None in pkgutil.rst (#8851) 2010-12-15 22:37:27 +00:00
Raymond Hettinger 07a605b1c7 Entry for decimal and fractions. 2010-12-15 22:35:03 +00:00
Raymond Hettinger 480ed78c0e Add entries for structseq, ContextDecorator, and various C-API changes. 2010-12-15 22:07:15 +00:00
Éric Araujo 2d6bb12e1b Add disclaimer about MinGW compat in distutils docs (#6007). Patch by Chris Lambacher. 2010-12-15 22:06:35 +00:00
Éric Araujo 4433a5fdc0 Fix wrong name in docstring and doc (#10693). Original patch by Eli Bendersky. 2010-12-15 20:26:30 +00:00
Terry Reedy 17a59252e8 Issue 10534, difflib: tweak doc; test new SequenceMatcher instance attributes; avoid unneeded lists of SM.b2j keys and items in .__chain_b. Do not backport. 2010-12-15 20:18:10 +00:00
Alexander Belopolsky 50ba19ee45 Use sentence case in section titles consistently 2010-12-15 19:47:37 +00:00
Raymond Hettinger 99db3fd03b Elaborate on the calculation used in the random module. 2010-12-15 19:33:49 +00:00
Éric Araujo 67f0b6c5f2 Use nested method directives, rewrap long lines, fix whitespace. 2010-12-15 19:30:15 +00:00
Raymond Hettinger e434b3b681 Add intro to the changed modules section. 2010-12-15 19:20:01 +00:00
Éric Araujo d00862ac27 Improve trace documentation (#9264). Patch by Eli Bendersky. 2010-12-15 19:09:58 +00:00
Antoine Pitrou b8eb9cbd71 Move the urllib-inherited API to a distinguished section 2010-12-15 19:07:26 +00:00
Raymond Hettinger 0358a17838 Move email section in with other modules. Fix markup. 2010-12-15 19:00:38 +00:00
Raymond Hettinger a55ffbc84e Minor regroupings. 2010-12-15 18:31:57 +00:00
Raymond Hettinger bba537bc96 Adopt Antoine's suggestion to improve readability with module subsections. 2010-12-15 18:20:19 +00:00
Raymond Hettinger e0a960012f Add entries for the random module and the collections module. 2010-12-15 17:54:13 +00:00
Andrew M. Kuchling 42877fec3a Typo fix 2010-12-15 02:37:01 +00:00
R. David Murray d89bc3ff59 #10705: document what the values of debuglevel are and mean. 2010-12-15 02:19:14 +00:00
Raymond Hettinger ffad35ef27 Nits 2010-12-14 21:12:03 +00:00
Vinay Sajip 9a6b400a59 Logging documentation update. 2010-12-14 19:40:21 +00:00
R. David Murray ec07331eea #775964: skip YP/NIS entries instead of failing the test
Also includes doc updates mentioning that these entries may not
be retrievable via getgrnam and getgrgid.

Patch by Bobby Impollonia.
2010-12-14 16:20:53 +00:00
Gregory P. Smith 8edd99d085 Issue #6559: fix the subprocess.Popen pass_fds implementation. Add a unittest.
Issue #7213: Change the close_fds default on Windows to better match the new
default on POSIX.  True when possible (False if stdin/stdout/stderr are
supplied).

Update the documentation to reflect all of the above.
2010-12-14 13:43:30 +00:00
R. David Murray 7ec754b7da #1078919: make add_header automatically do RFC2231 encoding when needed.
Also document the use of three-tuples if control of the charset
and language is desired.
2010-12-13 23:51:19 +00:00
R. David Murray 796343b198 #10698: fix typo in example. 2010-12-13 22:50:30 +00:00
Vinay Sajip fd94b173ce Logging documentation update. 2010-12-13 18:49:08 +00:00
Vinay Sajip 7292b884bd Logging documentation update. 2010-12-13 18:43:57 +00:00
Vinay Sajip 9466fe88a7 Logging documentatio update. 2010-12-13 08:54:02 +00:00
Gregory P. Smith f560485388 Get rid of the close_fds DeprecationWarning. Changes the default on a per
platform basis.  It remains False on Windows and changes to True on all
other platforms (POSIX).  Based on python-dev discussion and
http://bugs.python.org/issue7213.
2010-12-13 06:45:02 +00:00
Vinay Sajip 1d5d6856e2 Logging documentation - further update. 2010-12-12 22:47:13 +00:00
Vinay Sajip 97b886dc8c Logging documentation - further update. 2010-12-12 22:45:35 +00:00
Vinay Sajip 36675b6a0f Logging documentation - further update. 2010-12-12 22:30:17 +00:00
Antoine Pitrou 7bdfe7755b Improve readability of the socket docs 2010-12-12 20:57:12 +00:00
Antoine Pitrou 64a467d790 Homogenize the "optional OS services" menu 2010-12-12 20:34:49 +00:00
Antoine Pitrou f10f162db9 Consistent ordering of availability statements 2010-12-12 20:17:29 +00:00
Antoine Pitrou e72b586b02 Fix heading level 2010-12-12 20:13:31 +00:00
Antoine Pitrou a654090840 Remove redundant sentence, and fix markup 2010-12-12 20:09:18 +00:00
Antoine Pitrou cc4edd59d6 Add link to the buffer protocol description from the memory description. 2010-12-12 20:01:43 +00:00
Antoine Pitrou 8abc93580d Better explain the buffer interface (hopefully) 2010-12-12 19:59:47 +00:00
Antoine Pitrou 36730e8bc1 Make this a warning and fix indentation 2010-12-12 18:25:25 +00:00
Antoine Pitrou 19d6ce0f73 Obsolete aliases needn't be documented 2010-12-12 18:14:34 +00:00
Antoine Pitrou b387ad6eec Remove reference to stuff which is already obsolete in 2.x. 2010-12-12 18:12:40 +00:00
Antoine Pitrou c58bde159f SET_LINENO was removed in 2.3 2010-12-12 18:09:53 +00:00
Vinay Sajip f234eb9c32 Logging documentation - further update. 2010-12-12 17:37:27 +00:00
Vinay Sajip 0e65cf0b6a Logging documentation - further update. 2010-12-12 13:49:39 +00:00
Vinay Sajip 5286ccfdf8 Logging documentation - further update. 2010-12-12 13:25:29 +00:00
Vinay Sajip a18b959473 Logging documentation update. 2010-12-12 13:20:55 +00:00