mirror of
https://github.com/python/cpython.git
synced 2025-10-28 17:13:08 +00:00
Fix some markup glitches.
This commit is contained in:
parent
6086118ced
commit
a5eacee237
4 changed files with 6 additions and 4 deletions
|
|
@ -656,7 +656,7 @@ break.
|
|||
The change which will probably break the most code is tightening up the
|
||||
arguments accepted by some methods. Some methods would take multiple arguments
|
||||
and treat them as a tuple, particularly various list methods such as
|
||||
:meth:`.append` and :meth:`.insert`. In earlier versions of Python, if ``L`` is
|
||||
:meth:`append` and :meth:`insert`. In earlier versions of Python, if ``L`` is
|
||||
a list, ``L.append( 1,2 )`` appends the tuple ``(1,2)`` to the list. In Python
|
||||
2.0 this causes a :exc:`TypeError` exception to be raised, with the message:
|
||||
'append requires exactly 1 argument; 2 given'. The fix is to simply add an
|
||||
|
|
|
|||
|
|
@ -1765,7 +1765,7 @@ Full documentation for ElementTree is available at
|
|||
http://effbot.org/zone/element-index.htm.
|
||||
|
||||
ElementTree represents an XML document as a tree of element nodes. The text
|
||||
content of the document is stored as the :attr:`.text` and :attr:`.tail`
|
||||
content of the document is stored as the :attr:`text` and :attr:`tail`
|
||||
attributes of (This is one of the major differences between ElementTree and
|
||||
the Document Object Model; in the DOM there are many different types of node,
|
||||
including :class:`TextNode`.)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue