Skip to content

Commit

Permalink
[svn r2682] small clarification in tutorial
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
scoder committed Jul 21, 2007
1 parent 0cefb30 commit 1cdb9fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/tutorial.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ add them to a parent element, you can use the ``append()`` method::

>>> root.append( etree.Element("child1") )

However, a much more efficient and more common way to do this is through the
``SubElement`` factory. It accepts the same arguments as the ``Element``
factory, but additionally requires the parent as first argument::
However, this is so common that there is a shorter and much more efficient way
to do this: the ``SubElement`` factory. It accepts the same arguments as the
``Element`` factory, but additionally requires the parent as first argument::

>>> child2 = etree.SubElement(root, "child2")
>>> child3 = etree.SubElement(root, "child3")
Expand Down

0 comments on commit 1cdb9fc

Please sign in to comment.