Commit graph

15181 commits

Author SHA1 Message Date
Antoine Pitrou
7d49bc9911 Move library changes to the right section 2010-09-15 15:13:17 +00:00
Antoine Pitrou
d305200755 Add entries to whatsnew 2010-09-15 15:09:40 +00:00
Antoine Pitrou
25d535ea6a Merged revisions 84827-84829 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84827 | antoine.pitrou | 2010-09-15 11:58:26 +0200 (mer., 15 sept. 2010) | 3 lines

  Add a glossary entry for file objects.
........
  r84828 | antoine.pitrou | 2010-09-15 12:08:31 +0200 (mer., 15 sept. 2010) | 3 lines

  Update file-related information in the FAQ.
........
  r84829 | antoine.pitrou | 2010-09-15 13:11:28 +0200 (mer., 15 sept. 2010) | 3 lines

  Add cross-references to the glossary entry for file objects.
........
2010-09-15 11:25:11 +00:00
Antoine Pitrou
ecbf2dea36 Merged revisions 84825-84826,84830 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84825 | antoine.pitrou | 2010-09-15 10:39:25 +0200 (mer., 15 sept. 2010) | 3 lines

  Add a comment explaining why SocketIO is needed
........
  r84826 | antoine.pitrou | 2010-09-15 11:32:45 +0200 (mer., 15 sept. 2010) | 3 lines

  Improve docs for socket.makefile() and SocketIO
........
  r84830 | antoine.pitrou | 2010-09-15 13:12:57 +0200 (mer., 15 sept. 2010) | 3 lines

  Reverted unwanted change in r84826
........
2010-09-15 11:16:39 +00:00
Antoine Pitrou
11cb961b38 Add cross-references to the glossary entry for file objects. 2010-09-15 11:11:28 +00:00
Antoine Pitrou
6a11a98b7c Update file-related information in the FAQ. 2010-09-15 10:08:31 +00:00
Antoine Pitrou
0b65b0fc83 Add a glossary entry for file objects. 2010-09-15 09:58:26 +00:00
Antoine Pitrou
5aa0d10560 Improve docs for socket.makefile() and SocketIO 2010-09-15 09:32:45 +00:00
Raymond Hettinger
984ce40832 Clarify where support for negative indices fall in the language hierarchy. 2010-09-15 00:12:05 +00:00
Raymond Hettinger
f77c1d6adb Clarify where support for negative indices fall in the language hierarchy. 2010-09-15 00:09:26 +00:00
Raymond Hettinger
476a31ef1e Issue 9802: Document min()/max() sort stability 2010-09-14 23:13:42 +00:00
Antoine Pitrou
e5e75c64f2 Merged revisions 84814 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84814 | antoine.pitrou | 2010-09-14 20:37:24 +0200 (mar., 14 sept. 2010) | 4 lines

  Issue #9854: The default read() implementation in io.RawIOBase now
  handles non-blocking readinto() returning None correctly.
........
2010-09-14 18:53:07 +00:00
Antoine Pitrou
328ec7455f Issue #9854: The default read() implementation in io.RawIOBase now
handles non-blocking readinto() returning None correctly.
2010-09-14 18:37:24 +00:00
Antoine Pitrou
9e0b864ac0 Issue #1552: socket.socketpair() now returns regular socket.socket
objects supporting the whole socket API (rather than the "raw"
_socket.socket objects).
2010-09-14 18:00:02 +00:00
Daniel Stutzbach
bd63a9976d Merged revisions 84810 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84810 | daniel.stutzbach | 2010-09-14 11:02:01 -0500 (Tue, 14 Sep 2010) | 1 line

  Remove pointers to a FAQ entry that no longer exists.  Incorporate some text from the old FAQ into the docs
........
2010-09-14 16:07:54 +00:00
Daniel Stutzbach
38615993b0 Remove pointers to a FAQ entry that no longer exists. Incorporate some text from the old FAQ into the docs 2010-09-14 16:02:01 +00:00
Vinay Sajip
0055c421fe Tidied example script. 2010-09-14 09:42:39 +00:00
Vinay Sajip
de72692465 Tidied example script. 2010-09-14 06:59:24 +00:00
Raymond Hettinger
98a5f3f838 Issue 9840: Add reprlib.recursive_repr(), a decorator for handling recursive calls to __repr__ methods. 2010-09-13 21:36:00 +00:00
Daniel Stutzbach
9f0cbf1c72 Issue #9213: Add index and count methods to range objects, needed to
meet the API of the collections.Sequence ABC.
2010-09-13 21:16:29 +00:00
Vinay Sajip
1b5646ac56 Enhanced HTTPHandler documentation. 2010-09-13 20:37:50 +00:00
Vinay Sajip
63891ed082 Expanded QueueHandler documentation. 2010-09-13 20:02:39 +00:00
Benjamin Peterson
ee258571b5 Merged revisions 84754-84755 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84754 | benjamin.peterson | 2010-09-12 20:25:38 -0500 (Sun, 12 Sep 2010) | 1 line

  remove duplicate statement
........
  r84755 | benjamin.peterson | 2010-09-12 20:30:04 -0500 (Sun, 12 Sep 2010) | 1 line

  remove less complete of duplicate docs
........
2010-09-13 01:52:40 +00:00
Benjamin Peterson
0f4dd9a8e5 add spaces 2010-09-13 01:31:57 +00:00
Benjamin Peterson
c7b1cfa463 remove less complete of duplicate docs 2010-09-13 01:30:04 +00:00
Benjamin Peterson
c985f1f013 remove duplicate statement 2010-09-13 01:25:38 +00:00
Amaury Forgeot d'Arc
feb7307db4 #9210: remove --with-wctype-functions configure option.
The internal unicode database is now always used.

(after 5 years: see
  http://mail.python.org/pipermail/python-dev/2004-December/050193.html
)
2010-09-12 22:42:57 +00:00
Victor Stinner
0cbec571ae Document changes on mbcs encoding 2010-09-12 20:32:57 +00:00
Matthias Klose
167c3bc3c1 Merged revisions 84743 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84743 | matthias.klose | 2010-09-12 18:31:58 +0200 (So, 12 Sep 2010) | 3 lines

  - Issue #9817: Add expat COPYING file; add expat, libffi and expat licenses
    to Doc/license.rst.
........
2010-09-12 16:50:20 +00:00
Matthias Klose
62d52fd966 - Issue #9817: Add expat COPYING file; add expat, libffi and expat licenses
to Doc/license.rst.
2010-09-12 16:31:58 +00:00
Vinay Sajip
7f536b03a2 Issue #9827: clarified LogRecord documentation a little more. 2010-09-12 11:51:26 +00:00
Vinay Sajip
2b65fc8aed Issue #9827: clarified LogRecord documentation. 2010-09-12 11:47:47 +00:00
R. David Murray
bec04a9032 Merged revisions 84719 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84719 | r.david.murray | 2010-09-11 14:12:25 -0400 (Sat, 11 Sep 2010) | 2 lines

  #9608, #8518 : clarify and improve discussion of exceptions in howto.
........
2010-09-11 18:20:06 +00:00
R. David Murray
44ef7749dc #9608, #8518 : clarify and improve discussion of exceptions in howto. 2010-09-11 18:12:25 +00:00
Vinay Sajip
4039aff814 Issue #9827: clarified LogRecord documentation. 2010-09-11 10:25:28 +00:00
Victor Stinner
1205f2774e Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error on
a non-ASCII byte in the format string.

Document also the encoding.
2010-09-11 00:54:47 +00:00
Victor Stinner
a76020a544 Merged revisions 84701 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84701 | victor.stinner | 2010-09-11 02:22:12 +0200 (sam., 11 sept. 2010) | 5 lines

  Issue #767645: fix os.path.supports_unicode_filenames definition

  os.listdir(str) always returns unicode and it can return non-ascii filenames
  even if supports_unicode_filenames is False.
........
2010-09-11 00:23:53 +00:00
Victor Stinner
b55e498f56 Issue #767645: fix os.path.supports_unicode_filenames definition
os.listdir(str) always returns unicode and it can return non-ascii filenames
even if supports_unicode_filenames is False.
2010-09-11 00:22:12 +00:00
Benjamin Peterson
d032532bb9 add newline 2010-09-10 21:59:21 +00:00
Victor Stinner
5b519e0201 Issue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODING
environment variable to set the filesystem encoding at Python startup.
sys.setfilesystemencoding() creates inconsistencies because it is unable to
reencode all filenames in all objects.
2010-09-10 21:57:59 +00:00
Amaury Forgeot d'Arc
ba117ef7e9 #4617: Previously it was illegal to delete a name from the local
namespace if it occurs as a free variable in a nested block.  This limitation
of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF).

This sample was valid in 2.6, but fails to compile in 3.x without this change::

   >>> def f():
   ...     def print_error():
   ...        print(e)
   ...     try:
   ...        something
   ...     except Exception as e:
   ...        print_error()
   ...        # implicit "del e" here


This sample has always been invalid in Python, and now works::

   >>> def outer(x):
   ...     def inner():
   ...        return x
   ...     inner()
   ...     del x

There is no need to bump the PYC magic number: the new opcode is used
for code that did not compile before.
2010-09-10 21:39:53 +00:00
Georg Brandl
4785916d62 release() is probably not the most important method 2010-09-10 20:43:53 +00:00
Benjamin Peterson
84c809be5a Merged revisions 84677 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84677 | benjamin.peterson | 2010-09-10 13:50:38 -0500 (Fri, 10 Sep 2010) | 1 line

  add reference to file object
........
2010-09-10 18:52:36 +00:00
Benjamin Peterson
4f5e298075 add reference to file object 2010-09-10 18:50:38 +00:00
Nick Coghlan
e8814fbb32 As per python-dev discussion with Eli, properly document and publish dis.show_code 2010-09-10 14:08:04 +00:00
Antoine Pitrou
6e6cc830c4 Issue #9757: memoryview objects get a release() method to release the
underlying buffer (previously this was only done when deallocating the
memoryview), and gain support for the context management protocol.
2010-09-09 12:59:39 +00:00
Raymond Hettinger
6c60d099e5 Improve the repr for the TokenInfo named tuple. 2010-09-09 04:32:39 +00:00
Raymond Hettinger
44d7b6ad60 Add docstring to cmd.Cmd.do_help() 2010-09-09 03:53:22 +00:00
Raymond Hettinger
bd889e8c40 Add a working example for the cmd module. 2010-09-09 01:40:50 +00:00
Giampaolo RodolĂ 
b383dbb45e Fix issue 9794: adds context manager protocol to socket.socket so that socket.create_connection() can be used with the 'with' statement. 2010-09-08 22:44:12 +00:00