pkgsrc-WIP-cvs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: wip/py-elementtree

Module name:    wip
Committed by:   thomasklausner
Date:           Wed Jul 20 22:44:58 UTC 2005

Modified Files:
        wip/py-elementtree: Makefile PLIST distinfo

Log Message:
Update to 1.2.6:

(1.2.6 released)

- Fixed handling of entities defined in internal DTD's (reported
  by Greg Wilson).

- Fixed serialization under non-standard default encodings (but
  using non-standard default encodings is still a lousy idea ;-)

(1.2.5 released)

- Added 'iterparse' implementation.  This is similar to 'parse', but
  returns a stream of events while it builds the tree.  By default,
  the parser only returns "end" events (for completed elements):

        for event, elem in iterparse(source):

  To get other events, use the "events" option to pass in a tuple
  containing the events you want:

        for event, elem in iterparse(source, events=(...)):

  The event tuple can contain one or more of:

    generated for start tags, after the element has been created
    (but before the current element has been fully populated)
    generated for end tags, after all element children has been
    generated when a new namespace scope is opened.  for this event,
    the elem value is a (prefix, url) tuple.
    generated when the current namespace scope is closed.  elem
    is None.

  Events arrive asynchronously; the tree is usually more complete
  than the events indicate, but this is nothing you can rely on.

  The iterable itself contains context information.  In the current
  release, the only public context attribute is "root", which is set
  to the root element when parsing is finished.  To access the con-
  text, assign the iterable to a variable before looping over it:

        context = iterparse(source)
        for event, elem in context:
        root = context.root

(1.2.4 released)

- Fixed another FancyTreeBuilder bug on Python 2.3.

(1.2.3 released)

- Fixed the FancyTreeBuilder class, which was broken in 1.2.1
  and 1.2.2 (broken for some Python versions, at least).

(1.2.2 released)

- Fixed some ASCII/Unicode issues in the HTML parser.  You can now
  use the parser on documents that mixes encoded 8-bit data with
  character references outside the ASCII range. (backported from 1.3)

(1.2.1 released)

- Changed XMLTreeBuilder to take advantage of new expat features, if
  present.  This speeds up parsing quite a bit. (backported from 1.3)

(1.2c1 released; 1.2 final released)

- Added 'docs' directory, with PythonDoc documentation for the
  ElementTree library.  See docs/index.html for an overview.

(1.2b4 released)

- Fixed encoding of Unicode element names and attribute names
  (reported by Ken Rimey).

(1.2b3 released)

- Added default argument to 'findtext'.  Note that 'findtext' now
  always returns an empty string if a matching element is found, but
  has no text content.  None is only returned if no element is found,
  and no default value is specified.

- Make sure 'dump' adds a trailing linefeed.

(1.2b2 released)

- Added optional tree builder argument to the HTMLTreeBuilder class.

(1.2b1 released)

- Added XMLID() helper.  This is similar to XML(), but returns both
  the root element and a dictionary mapping ID attributes to elements.

- Added simple SgmlopXMLTreeBuilder module.  This is a very fast
  parser, but it doesn't yet support namespaces.  To use this parser,
  you need the sgmlop driver:

- Fixed exception in test suite; the TidyHTMLTreeBuilder class
  now raises a RuntimeError exception if the _elementidy module
  is not available.

To generate a diff of this commit:
cvs -z3 rdiff -u -r1.4 -r1.5 wip/py-elementtree/PLIST \
cvs -z3 rdiff -u -r1.7 -r1.8 wip/py-elementtree/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast.
pkgsrc-wip-cvs mailing list

Home | Main Index | Thread Index | Old Index