diff options
author | Guido van Rossum <guido@python.org> | 2007-11-26 23:23:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-11-26 23:23:18 (GMT) |
commit | 0d3fb8a944a810f421377d5823cbc006700b3c1d (patch) | |
tree | ec818742da4c475ef7e05a54f086384d6bbf52d9 /Doc | |
parent | 4975a1f3f3aa54d1adcc6669972d9e1563405f23 (diff) | |
download | cpython-0d3fb8a944a810f421377d5823cbc006700b3c1d.zip cpython-0d3fb8a944a810f421377d5823cbc006700b3c1d.tar.gz cpython-0d3fb8a944a810f421377d5823cbc006700b3c1d.tar.bz2 |
Merged revisions 59107-59186 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
(Note: some conflicts in the PCbuild9 directory reverted. Sorry Christian!)
........
r59120 | christian.heimes | 2007-11-22 03:21:16 -0800 (Thu, 22 Nov 2007) | 3 lines
Backport of the PCbuild9 directory from the py3k branch.
I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k.
Have fun! :)
........
r59126 | brett.cannon | 2007-11-22 16:06:51 -0800 (Thu, 22 Nov 2007) | 2 lines
Fix a bug in the test for using __loader__.get_data().
........
r59131 | christian.heimes | 2007-11-22 23:05:03 -0800 (Thu, 22 Nov 2007) | 1 line
Backport of PCbuild9 fixes from py3k r59130
........
r59132 | christian.heimes | 2007-11-23 01:10:36 -0800 (Fri, 23 Nov 2007) | 2 lines
Applied patch #1754273 and #1754271 from Thomas Glee
The patches are adding deprecation warnings for back ticks and <>
........
r59133 | christian.heimes | 2007-11-23 04:12:02 -0800 (Fri, 23 Nov 2007) | 2 lines
Fixed problems in the last commit. Filenames and line numbers weren't reported correctly.
Backquotes still don't report the correct file. The AST nodes only contain the line number but not the file name.
........
r59134 | christian.heimes | 2007-11-23 04:16:35 -0800 (Fri, 23 Nov 2007) | 1 line
How did the comment get there?
........
r59135 | christian.heimes | 2007-11-23 05:25:31 -0800 (Fri, 23 Nov 2007) | 1 line
And yet another fix for the patch. Paul Moore has send me a note that I've missed a declaration. The additional code has moved the declaration in the middle of the block.
........
r59136 | andrew.kuchling | 2007-11-23 05:37:39 -0800 (Fri, 23 Nov 2007) | 1 line
Add item
........
r59137 | skip.montanaro | 2007-11-23 09:08:35 -0800 (Fri, 23 Nov 2007) | 2 lines
Make trace and doctest play nice together (issue 1429818). Will backport.
........
r59139 | skip.montanaro | 2007-11-23 09:12:47 -0800 (Fri, 23 Nov 2007) | 1 line
issue 1429818
........
r59144 | facundo.batista | 2007-11-23 09:59:00 -0800 (Fri, 23 Nov 2007) | 10 lines
Major change in the internal structure of the Decimal
number: now it does not store the mantissa as a tuple
of numbers, but as a string.
This avoids a lot of conversions, and achieves a
speedup of 40%. The API remains intact.
Thanks Mark Dickinson.
........
r59146 | facundo.batista | 2007-11-23 10:14:50 -0800 (Fri, 23 Nov 2007) | 3 lines
Test cases from Cowlishaw, v2.57. All are pased cleanly.
........
r59156 | christian.heimes | 2007-11-23 17:36:02 -0800 (Fri, 23 Nov 2007) | 2 lines
Added filename to compiling struct based on Martin's suggestion.
I'm wonder why I was trying to add the filename to the node all the time. The compiling struct is more obvious.
........
r59158 | christian.heimes | 2007-11-23 17:53:59 -0800 (Fri, 23 Nov 2007) | 2 lines
Backport of fixes from py3k branch
svn merge -r59131:HEAD ../../py3k/PCbuild9/ .
........
r59159 | skip.montanaro | 2007-11-23 20:29:08 -0800 (Fri, 23 Nov 2007) | 1 line
revert change that breaks test_doctest (which I forgot to run - sorry)
........
r59162 | skip.montanaro | 2007-11-23 20:31:15 -0800 (Fri, 23 Nov 2007) | 1 line
revert
........
r59164 | georg.brandl | 2007-11-24 03:31:46 -0800 (Sat, 24 Nov 2007) | 3 lines
#1344: document that you need to open std{in,out,err} with PIPE if you want
communicate() to work as described.
........
r59165 | georg.brandl | 2007-11-24 03:39:13 -0800 (Sat, 24 Nov 2007) | 2 lines
#1467: fix documentation for TestResult.add{Error,Failure}.
........
r59166 | georg.brandl | 2007-11-24 03:42:14 -0800 (Sat, 24 Nov 2007) | 2 lines
#1355: remove mention of PyXML from xml.dom docs.
........
r59169 | amaury.forgeotdarc | 2007-11-24 05:20:22 -0800 (Sat, 24 Nov 2007) | 2 lines
Warning "<> not supported in 3.x" should be enabled only when the -3 option is set.
........
r59170 | amaury.forgeotdarc | 2007-11-24 05:44:17 -0800 (Sat, 24 Nov 2007) | 3 lines
Issue #1445: Fix a SystemError when accessing the ``cell_contents``
attribute of an empty cell object. Now a ValueError is raised.
........
r59172 | georg.brandl | 2007-11-24 05:56:09 -0800 (Sat, 24 Nov 2007) | 3 lines
#1735632: add O_NOATIME constant to os module.
Also document a few other O_ constants that were missing from documentation.
........
r59173 | skip.montanaro | 2007-11-24 06:30:47 -0800 (Sat, 24 Nov 2007) | 1 line
back in these go - thanks to Titus Brown for the fix
........
r59176 | martin.v.loewis | 2007-11-24 10:33:40 -0800 (Sat, 24 Nov 2007) | 2 lines
Bug #1494: Document that appendChild removes first.
........
r59186 | guido.van.rossum | 2007-11-26 14:16:49 -0800 (Mon, 26 Nov 2007) | 2 lines
A thread-less variant of brownian.py, submitted by Michele Simoniato.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 18 | ||||
-rw-r--r-- | Doc/library/subprocess.rst | 7 | ||||
-rw-r--r-- | Doc/library/unittest.rst | 10 | ||||
-rw-r--r-- | Doc/library/xml.dom.rst | 22 | ||||
-rw-r--r-- | Doc/whatsnew/2.6.rst | 4 |
5 files changed, 37 insertions, 24 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index a550739..0436244 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -597,14 +597,7 @@ platforms. For descriptions of their availability and use, consult .. data:: O_BINARY - - Option for the *flag* argument to the :func:`open` function. This can be - bit-wise OR'd together with those listed above. Availability: Windows. - - .. % XXX need to check on the availability of this one. - - -.. data:: O_NOINHERIT + O_NOINHERIT O_SHORT_LIVED O_TEMPORARY O_RANDOM @@ -615,6 +608,15 @@ platforms. For descriptions of their availability and use, consult bit-wise OR'd together. Availability: Windows. +.. data:: O_DIRECT + O_DIRECTORY + O_NOFOLLOW + O_NOATIME + + Options for the *flag* argument to the :func:`open` function. These are + GNU extensions and not present if they are not defined by the C library. + + .. data:: SEEK_SET SEEK_CUR SEEK_END diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 5ac32df..d260473 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -189,7 +189,12 @@ Instances of the :class:`Popen` class have the following methods: communicate() returns a tuple (stdout, stderr). - .. note:: + Note that if you want to send data to the process's stdin, you need to create + the Popen object with ``stdin=PIPE``. Similarly, to get anything other than + ``None`` in the result tuple, you need to give ``stdout=PIPE`` and/or + ``stderr=PIPE`` too. + +.. note:: The data read is buffered in memory, so do not use this method if the data size is large or unlimited. diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index b1315c0..7703ad9 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -804,8 +804,9 @@ tools which support interactive reporting while tests are being run. Called when the test case *test* raises an unexpected exception *err* is a tuple of the form returned by :func:`sys.exc_info`: ``(type, value, traceback)``. - The default implementation appends ``(test, err)`` to the instance's ``errors`` - attribute. + The default implementation appends a tuple ``(test, formatted_err)`` to the + instance's ``errors`` attribute, where *formatted_err* is a formatted + traceback derived from *err*. .. method:: TestResult.addFailure(test, err) @@ -813,8 +814,9 @@ tools which support interactive reporting while tests are being run. Called when the test case *test* signals a failure. *err* is a tuple of the form returned by :func:`sys.exc_info`: ``(type, value, traceback)``. - The default implementation appends ``(test, err)`` to the instance's - ``failures`` attribute. + The default implementation appends a tuple ``(test, formatted_err)`` to the + instance's ``failures`` attribute, where *formatted_err* is a formatted + traceback derived from *err*. .. method:: TestResult.addSuccess(test) diff --git a/Doc/library/xml.dom.rst b/Doc/library/xml.dom.rst index e13999c..d75db2c 100644 --- a/Doc/library/xml.dom.rst +++ b/Doc/library/xml.dom.rst @@ -29,11 +29,14 @@ representation for XML data. The Document Object Model is being defined by the W3C in stages, or "levels" in their terminology. The Python mapping of the API is substantially based on the -DOM Level 2 recommendation. The mapping of the Level 3 specification, currently -only available in draft form, is being developed by the `Python XML Special -Interest Group <http://www.python.org/sigs/xml-sig/>`_ as part of the `PyXML -package <http://pyxml.sourceforge.net/>`_. Refer to the documentation bundled -with that package for information on the current state of DOM Level 3 support. +DOM Level 2 recommendation. + +.. XXX PyXML is dead... +.. The mapping of the Level 3 specification, currently + only available in draft form, is being developed by the `Python XML Special + Interest Group <http://www.python.org/sigs/xml-sig/>`_ as part of the `PyXML + package <http://pyxml.sourceforge.net/>`_. Refer to the documentation bundled + with that package for information on the current state of DOM Level 3 support. .. % What if your needs are somewhere between SAX and the DOM? Perhaps .. % you cannot afford to load the entire tree in memory but you find the @@ -74,10 +77,6 @@ implementations are free to support the strict mapping from IDL). See section `Document Object Model (DOM) Level 1 Specification <http://www.w3.org/TR/REC-DOM-Level-1/>`_ The W3C recommendation for the DOM supported by :mod:`xml.dom.minidom`. - `PyXML <http://pyxml.sourceforge.net>`_ - Users that require a full-featured implementation of DOM should use the PyXML - package. - `Python Language Mapping Specification <http://www.omg.org/docs/formal/02-11-05.pdf>`_ This specifies the mapping from OMG IDL to Python. @@ -364,8 +363,9 @@ All of the components of an XML document are subclasses of :class:`Node`. .. method:: Node.appendChild(newChild) - Add a new child node to this node at the end of the list of children, returning - *newChild*. + Add a new child node to this node at the end of the list of + children, returning *newChild*. If the node was already in + in the tree, it is removed first. .. method:: Node.insertBefore(newChild, refChild) diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index 4d52716..3415c1b 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -872,6 +872,10 @@ Build and C API Changes Changes to Python's build process and to the C API include: +* Python 2.6 can be built with Microsoft Visual Studio 2008. + See the :file:`PCbuild9` directory for the build files. + (Implemented by Christian Heimes.) + * The BerkeleyDB module now has a C API object, available as ``bsddb.db.api``. This object can be used by other C extensions that wish to use the :mod:`bsddb` module for their own purposes. |