File: README

package info (click to toggle)
qm 1.1.3-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,628 kB
  • ctags: 10,249
  • sloc: python: 41,482; ansic: 20,611; xml: 12,837; sh: 485; makefile: 226
file content (74 lines) | stat: -rw-r--r-- 2,902 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
=============================
The sgmlop accelerator module
=============================

sgmlop contains an optimized SGML/XML parser, designed as an add-on to
the sgmllib/htmllib and xmllib modules shipped with Python 1.5.

This driver is typically 5-10 times faster than the original xmllib
implementation.  When using sgmlop's native interface, it can be more
than 50 times faster.

Enjoy /F

fredrik@pythonware.com
http://www.pythonware.com

--------------------------------------------------------------------

By obtaining, using, and/or copying this software and/or its
associated documentation, you agree that you have read, understood,
and will comply with the following terms and conditions:

Permission to use, copy, modify, and distribute this software and its
associated documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appears in all
copies, and that both that copyright notice and this permission notice
appear in supporting documentation, and that the name of Secret Labs
AB or the author not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR
ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

--------------------------------------------------------------------

release info
------------

This is a bugfix release.  It addresses the following issues:

SGMLOP1: SGML files containing text only wasn't properly handled.  the
parser never consumed the last character, not even if the 'close'
method was called (reported by Walter Drwald)

SGMLOP2: Unicode strings (under 1.6) were treated as binary buffers.
In this release, the parser can properly parse 16-bit strings, but the
callbacks get 8-bit UTF-8 strings, not true Unicode strings.  This
will be fixed in a future release.

SGMLOP3: The 'close' method no longer accepts an optional argument.
Use a separate call to 'feed' instead.

SGMLOP4: Recursive calls to 'feed' or 'close' (from within a call-
back) could lead to all sorts of weird problems.  This version checks
for this condition, and raises an AssertionError instead.


contents
--------

README		this file

sgmlop.c	accelerator source code

sgmllib.py	replacements for the corresponding Python modules,
xmllib.py	modified to use sgmlop if available.  note that these
		modules are somewhat outdated (they're based on 1.5.1
		sources)