Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/xml.dom.rst

    r2 r391  
    8080      The W3C recommendation for the DOM supported by :mod:`xml.dom.minidom`.
    8181
    82    `Python Language Mapping Specification <http://www.omg.org/docs/formal/02-11-05.pdf>`_
     82   `Python Language Mapping Specification <http://www.omg.org/spec/PYTH/1.2/PDF>`_
    8383      This specifies the mapping from OMG IDL to Python.
    8484
     
    375375   Add a new child node to this node at the end of the list of
    376376   children, returning *newChild*. If the node was already in
    377    in the tree, it is removed first.
     377   the tree, it is removed first.
    378378
    379379
     
    442442In addition, the Python DOM interface requires that some additional support is
    443443provided to allow :class:`NodeList` objects to be used as Python sequences.  All
    444 :class:`NodeList` implementations must include support for :meth:`__len__` and
    445 :meth:`__getitem__`; this allows iteration over the :class:`NodeList` in
     444:class:`NodeList` implementations must include support for
     445:meth:`~object.__len__` and
     446:meth:`~object.__getitem__`; this allows iteration over the :class:`NodeList` in
    446447:keyword:`for` statements and proper support for the :func:`len` built-in
    447448function.
    448449
    449450If a DOM implementation supports modification of the document, the
    450 :class:`NodeList` implementation must also support the :meth:`__setitem__` and
    451 :meth:`__delitem__` methods.
     451:class:`NodeList` implementation must also support the
     452:meth:`~object.__setitem__` and :meth:`~object.__delitem__` methods.
    452453
    453454
     
    706707.. attribute:: Attr.name
    707708
    708    The attribute name.  In a namespace-using document it may have colons in it.
     709   The attribute name.
     710   In a namespace-using document it may include a colon.
    709711
    710712
    711713.. attribute:: Attr.localName
    712714
    713    The part of the name following the colon if there is one, else the entire name.
     715   The part of the name following the colon if there is one, else the
     716   entire name.
    714717   This is a read-only attribute.
    715718
     
    717720.. attribute:: Attr.prefix
    718721
    719    The part of the name preceding the colon if there is one, else the empty string.
     722   The part of the name preceding the colon if there is one, else the
     723   empty string.
     724
     725
     726.. attribute:: Attr.value
     727
     728   The text value of the attribute.  This is a synonym for the
     729   :attr:`nodeValue` attribute.
    720730
    721731
Note: See TracChangeset for help on using the changeset viewer.