Commit Graph

10675 Commits

Author SHA1 Message Date
Alexander Belopolsky 085556ae89 Improved description of %Y directive. 2011-01-10 23:28:33 +00:00
Terry Reedy 262cc7f6b6 Issue #10875: Update Regular Expression HOWTO; last bit. 2011-01-10 23:13:21 +00:00
Alexander Belopolsky 9971e001ef Issue #2568: Removed bogus rationale for supporting tm_sec=61. 2011-01-10 22:56:14 +00:00
Alexander Belopolsky dc004a3ad6 Removed time.ctime from the list of functions that take a time tuple argument 2011-01-10 21:58:52 +00:00
Alexander Belopolsky bd96b06fd8 Added entries about removal of year 1900 limit. 2011-01-10 21:55:34 +00:00
Terry Reedy aacfd4a0cf Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'. 2011-01-10 21:27:49 +00:00
Raymond Hettinger eb70b90097 Misspelling. 2011-01-10 21:26:49 +00:00
Raymond Hettinger 05ce079a1c Missed two source links 2011-01-10 21:16:07 +00:00
Raymond Hettinger 4f707fd316 Separate source link from main text. 2011-01-10 19:54:11 +00:00
Alexander Belopolsky 04da1e013a Fixed a footnote reference 2011-01-10 19:14:38 +00:00
Raymond Hettinger de2e618eb9 Fix typos. 2011-01-10 05:40:57 +00:00
Raymond Hettinger 1048094037 Move source links to consistent location and remove wordy, big yellow boxes. 2011-01-10 03:26:08 +00:00
Georg Brandl 04536b0edf #10871: "file" does not exist anymore in Python 3. Also adapt the reprs of opened file objects. 2011-01-09 09:31:01 +00:00
Georg Brandl c9007081ef Wrap some long examples and signatures. 2011-01-09 09:04:08 +00:00
Georg Brandl 619e7ba814 #10869: do not visit root node twice in ast.increment_lineno(). 2011-01-09 07:38:51 +00:00
Raymond Hettinger e3ee66f141 Issue #10357: Clarify what it means to be a mapping. 2011-01-08 23:44:37 +00:00
Georg Brandl 4ad934f63c zlib only works with bytes objects. 2011-01-08 21:04:25 +00:00
Alexander Belopolsky 2997837158 Fixed documentation to reflect recent changes for years < 1900. 2011-01-08 20:47:21 +00:00
Raymond Hettinger c08ea61373 Markup fix 2011-01-08 10:32:31 +00:00
Raymond Hettinger 83b1ab0d6a Issue 9717: Segregate and improve the documentation of "in-place" operators
in the operator module.
2011-01-08 10:26:53 +00:00
Georg Brandl d97b7b5158 #10855: document close() semantics of wave objects. 2011-01-08 09:45:43 +00:00
Raymond Hettinger 5254e9700e Issue 10533: Need example of using __missing__. 2011-01-08 09:35:38 +00:00
Raymond Hettinger 0ab10e4600 Issue #10813: Small improvement to decimal money format recipe. 2011-01-08 09:03:11 +00:00
R. David Murray 9253214fd9 #10686: recode non-ASCII headers to 'unknown-8bit' instead of ?s.
This applies only when generating strings from non-RFC compliant binary
input; it makes the existing recoding behavior more consistent (ie:
now no data is lost when recoding).
2011-01-07 23:25:30 +00:00
Raymond Hettinger 7088abdca6 Revert r87821 which moved the source link to the wrong section (from the module intro covering the module to a section on thread imports). 2011-01-07 21:54:18 +00:00
Raymond Hettinger 1122fa2eb4 Revert r87823 which moved the source link to the wrong section. 2011-01-07 21:17:56 +00:00
Raymond Hettinger 32e8fea396 Update the digest of PEP 3333 based on comments for Phillip Eby. 2011-01-07 21:04:30 +00:00
Georg Brandl 2f2a9f772d Fix indent. 2011-01-07 20:58:25 +00:00
Raymond Hettinger fc90213f53 Combine the two seealso sections. 2011-01-07 20:33:09 +00:00
Alexander Belopolsky c64708ae48 Issue #10827: Changed the rules for 2-digit years. The time.asctime
function will now format any year when time.accept2dyear is false and
will accept years >= 1000 otherwise.  The year range accepted by
time.mktime and time.strftime is still system dependent, but
time.mktime will now accept full range supported by the OS. Conversion
of 2-digit years to 4-digit is deprecated.
2011-01-07 19:59:19 +00:00
Antoine Pitrou 696efdd03f Mention multiprocessing.Queue in the queue docs 2011-01-07 19:16:12 +00:00
Antoine Pitrou 4b512f73e0 Group seealsos 2011-01-07 19:01:48 +00:00
Antoine Pitrou 60bcc54d2e Put those "seealso"s together 2011-01-07 18:58:21 +00:00
Antoine Pitrou bdde506116 Put those source links together 2011-01-07 18:43:14 +00:00
Antoine Pitrou 1bdd6fd7c7 atexit.py doesn't exist 2011-01-07 18:42:21 +00:00
Antoine Pitrou 39e352cb46 Put link to source at the end. There's nothing edificating in threading.py. 2011-01-07 18:33:07 +00:00
Georg Brandl fb6fd5d019 #10856: document (Base)Exception.args better. 2011-01-07 18:28:45 +00:00
Brett Cannon 7603fa07a8 Undo an accidental commit in r87812. 2011-01-06 23:08:16 +00:00
Brett Cannon 63eef1e0dd Get --coverage to be an acceptable flag for test.regrtest again. 2011-01-06 22:32:41 +00:00
Raymond Hettinger 388af4bb35 Typo. 2011-01-06 20:55:29 +00:00
Georg Brandl a572476a2a #10846: fix typo. 2011-01-06 19:28:18 +00:00
Antoine Pitrou 003428158b Elaborate about the GIL. 2011-01-06 16:31:28 +00:00
Georg Brandl f60fd00534 Add acks where acks are due. 2011-01-06 09:25:27 +00:00
Georg Brandl b30f3303f7 Fix various issues (mostly Python 2 relics) found by Jacques Ducasse. 2011-01-06 09:23:56 +00:00
Georg Brandl 77041b2354 itertools, operator and functools are not really "numeric" modules; move them into their own "functional" chapter. 2011-01-06 09:23:19 +00:00
Antoine Pitrou d53dfa3fb1 Issue #10840: make it explicit that "s*" and friends provide contiguous memory. 2011-01-06 07:16:31 +00:00
Raymond Hettinger 90a4b3162e Nits 2011-01-06 02:08:30 +00:00
Raymond Hettinger 3df4621100 Add PEP 3333 to whatsnew. 2011-01-06 02:01:26 +00:00
Raymond Hettinger e40808a935 Add more porting notes. 2011-01-05 23:00:00 +00:00
Raymond Hettinger 2a5fb47e9c Remove mention of codes pending further discussion on transform()/untransform(). 2011-01-05 22:41:23 +00:00
Raymond Hettinger 2169ee2099 RC1 updates to whatsnew 2011-01-05 22:27:49 +00:00
Antoine Pitrou dfad7e302c Overhaul the documentation about socket timeouts. 2011-01-05 21:17:36 +00:00
Raymond Hettinger 7d967712b8 Update tests and whatsnew for the 'quiet' flag 2011-01-05 20:24:08 +00:00
Antoine Pitrou a83878e693 Issue #5485: Add doc for expat.xmlparser.SetParamEntityParsing. 2011-01-05 18:37:22 +00:00
Georg Brandl 183fe81f8f #10130: Prepare for building epub-format docs. 2011-01-05 11:00:25 +00:00
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