Commit graph

20163 commits

Author SHA1 Message Date
Raymond Hettinger
d292a17fc7 2-to-3 fixup for map() example in docs 2010-09-01 07:46:54 +00:00
Raymond Hettinger
20933e08b1 Clean-up bisect docs.
* Document the post conditions for bisect_left() and bisect_right().
* Fix the grades example to use more obvious breakpoints
  and to use a list comprehension instead of map() which returns
  an iterator in Py3.x.
* Improve and expand the examples of searching sorted lists.
* Issue 4356 -- move up reference to the SortedCollection recipe.
2010-09-01 06:58:25 +00:00
Benjamin Peterson
2f40d7d472 Merged revisions 84376 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84376 | benjamin.peterson | 2010-08-31 09:31:01 -0500 (Tue, 31 Aug 2010) | 1 line

  add nonlocal to pydoc topics #9724
........
2010-08-31 14:32:27 +00:00
Benjamin Peterson
f5a3d699a7 add nonlocal to pydoc topics #9724 2010-08-31 14:31:01 +00:00
Vinay Sajip
40d9a4e854 Improved logging.Formatter date/time formatting documentation. 2010-08-30 18:10:03 +00:00
Benjamin Peterson
f8a08d9d36 Merged revisions 84359-84360 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84359 | benjamin.peterson | 2010-08-30 07:46:09 -0500 (Mon, 30 Aug 2010) | 1 line

  sync open() doc
........
  r84360 | benjamin.peterson | 2010-08-30 08:19:53 -0500 (Mon, 30 Aug 2010) | 1 line

  rewrite and move open() docs only to functions.rst
........
2010-08-30 13:27:30 +00:00
Benjamin Peterson
6b4fa776ac rewrite and move open() docs only to functions.rst 2010-08-30 13:19:53 +00:00
Benjamin Peterson
4e4ffb1181 sync open() doc 2010-08-30 12:46:09 +00:00
Antoine Pitrou
2f8df3d68f Merged revisions 84357 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84357 | antoine.pitrou | 2010-08-30 14:41:00 +0200 (lun., 30 août 2010) | 3 lines

  Issue #9715: improve documentation of the io module
........
2010-08-30 12:45:23 +00:00
Antoine Pitrou
b530e1438b Issue #9715: improve documentation of the io module 2010-08-30 12:41:00 +00:00
Mark Dickinson
64a38c0eb5 Issue #1512791: In setframerate method of Wave_write, round non-integral
inputs to the nearest integer.  Thanks Neil Tallim for the patch.
2010-08-28 17:22:16 +00:00
Georg Brandl
816756182e #9681: typo. 2010-08-26 14:30:56 +00:00
Georg Brandl
179249f493 #9689: add links from overview to in-depth class API descriptions. 2010-08-26 14:30:15 +00:00
Brian Curtin
8790a07927 Fix #7579. Add docstrings to msvcrt and adjust some wording for bytes. 2010-08-24 05:20:30 +00:00
Benjamin Peterson
17689991e6 only catch AttributeError in hasattr() #9666 2010-08-24 03:26:23 +00:00
Georg Brandl
6a74da3cdb #9649: fix default value description. 2010-08-22 20:23:38 +00:00
Benjamin Peterson
3cabbeb077 fix old markup 2010-08-21 21:23:28 +00:00
Benjamin Peterson
d5c190d208 Merged revisions 84242-84244 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84242 | benjamin.peterson | 2010-08-21 15:01:28 -0500 (Sat, 21 Aug 2010) | 1 line

  indent properly
........
  r84243 | benjamin.peterson | 2010-08-21 15:03:15 -0500 (Sat, 21 Aug 2010) | 1 line

  fix more indentation
........
  r84244 | benjamin.peterson | 2010-08-21 15:08:36 -0500 (Sat, 21 Aug 2010) | 1 line

  provide sample implementations for attrgetter and methodcaller
........
2010-08-21 20:17:36 +00:00
Benjamin Peterson
2d55e2aab3 provide sample implementations for attrgetter and methodcaller 2010-08-21 20:08:36 +00:00
Benjamin Peterson
c16f8b33e0 fix more indentation 2010-08-21 20:03:15 +00:00
Benjamin Peterson
ffec810d88 indent properly 2010-08-21 20:01:28 +00:00
Senthil Kumaran
6cbe4275cb Add info about HTTP/1.1 and Connection:Close header. 2010-08-21 16:08:32 +00:00
Benjamin Peterson
23110e7361 alias macintosh to mac_roman #843590 2010-08-21 02:54:44 +00:00
Vinay Sajip
8101021eae Issue #9606: Updated documentation for Filter objects. 2010-08-19 19:17:41 +00:00
Victor Stinner
9802b39c12 PYTHONFSENCODING is not available on Windows or Mac OS X 2010-08-19 11:36:43 +00:00
Victor Stinner
e8d5145e18 Create os.fsdecode(): decode from the filesystem encoding with surrogateescape
error handler, or strict error handler on Windows.

 * Rewrite os.fsencode() documentation
 * Improve os.fsencode and os.fsdecode() tests using the new PYTHONFSENCODING
   environment variable
2010-08-19 01:05:19 +00:00
Victor Stinner
dbe6042f0a what's new 3.2: use :mod: 2010-08-18 23:41:33 +00:00
Éric Araujo
790c9af79e Manually merge r84187 2010-08-18 22:42:07 +00:00
Éric Araujo
358b63a419 Fix typo 2010-08-18 22:35:23 +00:00
Andrew M. Kuchling
4ea04a306f #7647: add ST_RDONLY, ST_NOSUID constants to os module.
(Also fix a name ordering in the ACKS file.)
2010-08-18 22:30:34 +00:00
Éric Araujo
0fc86b86ed Fix indentation level 2010-08-18 22:29:54 +00:00
Victor Stinner
94908bbc15 Issue #8622: Add PYTHONFSENCODING environment variable to override the
filesystem encoding.

initfsencoding() displays also a better error message if get_codeset() failed.
2010-08-18 21:23:25 +00:00
Georg Brandl
a9d7c7772f Mark 2.7 as stable. 2010-08-18 20:05:54 +00:00
Victor Stinner
c14190dc5b Add versionadded tag to PyModule_GetFilenameObject() doc 2010-08-18 10:57:33 +00:00
Victor Stinner
6c00c1464f Issue #9425: Create PyModule_GetFilenameObject() function
... to get the filename as a unicode object, instead of a byte string. Function
needed to support unencodable filenames. Deprecate PyModule_GetFilename() in
favor on the new function.
2010-08-17 23:37:11 +00:00
Victor Stinner
6009ece0ed Replace :func: by :cfunc:
To get links to the C functions
2010-08-17 22:01:02 +00:00
Éric Araujo
9cd464d66b Merged revisions 84159 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84159 | eric.araujo | 2010-08-17 23:24:05 +0200 (mar., 17 août 2010) | 1 line

  Fix example
........
2010-08-17 21:35:09 +00:00
Éric Araujo
f5be090bc3 Fix example 2010-08-17 21:24:05 +00:00
Antoine Pitrou
38a4f7a38d Merged revisions 84156 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84156 | antoine.pitrou | 2010-08-17 23:11:49 +0200 (mar., 17 août 2010) | 3 lines

  Modernize gzip examples
........
2010-08-17 21:15:19 +00:00
Antoine Pitrou
cdfe1c54fc Add versionadded tags 2010-08-17 21:15:00 +00:00
Antoine Pitrou
bf1a018ce4 Modernize gzip examples 2010-08-17 21:11:49 +00:00
Antoine Pitrou
79c5ef11d5 Issue #3488: Provide convenient shorthand functions gzip.compress
and `gzip.decompress`.  Original patch by Anand B. Pillai.
2010-08-17 21:10:05 +00:00
Raymond Hettinger
3fccfcb751 Minor rewording to docs for the lru_cache decorator 2010-08-17 19:19:29 +00:00
Benjamin Peterson
7ac98ae3b3 wrap 2010-08-17 17:52:02 +00:00
Giampaolo Rodolà
42382fedcc fix issue #8807: adds a context parameter to POP3_SSL class. 2010-08-17 16:09:53 +00:00
Giampaolo Rodolà
ccfb91c89f fix issue #8866: parameters passed to socket.getaddrinfo can now be specified as single keyword arguments. 2010-08-17 15:30:23 +00:00
Georg Brandl
67b21b7547 Consistency check for versionadded/changed directives. 2010-08-17 15:07:14 +00:00
Georg Brandl
9e25701e87 Markup nits. 2010-08-17 14:11:59 +00:00
Nick Coghlan
d26c18adcc Issue #8202: Set sys.argv[0] to -m rather than -c while searching for the module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory 2010-08-17 13:06:11 +00:00
Nick Coghlan
eae2da1da7 Issue 9147: Add dis.code_info() 2010-08-17 08:03:36 +00:00