- 27 Mar, 2001 16 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
To prevent this in the future, read the path from a file .path.
-
Evan Simpson authored
-
Evan Simpson authored
-
Guido van Rossum authored
Properly pop the interpreter level even when an exception happens. Add a few asserts to ensure that the scope level and the interpreter level are correctly maintained.
-
Guido van Rossum authored
-
Evan Simpson authored
- 26 Mar, 2001 24 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
Properly implement tal:replace="structure ..." combined with tal:attributes="...", both in HTML and in XML mode. This is pretty tricky, and requires instantiating a parser with a modified code generator which suppresses any TAL/METAL interpretation but does the attribute replacement on the first encountered start tag as required by the TAL 1.0 specs.
-
Guido van Rossum authored
that are now generated.
-
Guido van Rossum authored
DummyCompiler class), and make sure to call it everywhere it is needed (in particular for attribute replacements). Emit a new opcode, "mode", with an argument "html" or "xml", depending on the value of the xml argument to the constructor. (This requires a matching checkin of TALInterpreter.) (This comment was mistakenly added to the previous checkin of DummyCompiler.py.) Don't append to self.program directly; always call self.emit().
-
Guido van Rossum authored
on the value of the xml argument to the constructor. (This requires a matching checkin of TALInterpreter.) Move the compile() method into this class. Make compile() enclose the expression in $dollars$, and add an uncompile() method to strip them again. This keeps me honest, making sure that compile() is always called.
-
Guido van Rossum authored
code. Add the exception raised by Expat to the module, under the name XMLParseError (which was the name used by the test suite).
-
Chris McDonough authored
-
Jeremy Hylton authored
started, calls to it would fail with a NameError (map). The fix is to using the global _looping to hold the socket map used by the current loop() call. Also reformat the code and add some doc strings.
-
Chris McDonough authored
-
Andreas Jung authored
-
Chris McDonough authored
-
Chris McDonough authored
-
Guido van Rossum authored
-
Fred Drake authored
Very preliminary test for the XMLParser class.
-
Barry Warsaw authored
Remove an unused import. Don't use the file's revision number in __version__, although keep it in a comment. After a recent exchange on python-dev, it wasn't the right way to extract the revision number anyway.
-
Evan Simpson authored
-
Guido van Rossum authored
-
Evan Simpson authored
-
Evan Simpson authored
Short-circuit the common case of opening tags without AL markup. As a side effect, stop generating spurious setPosition directives that break code optimization.
-
Guido van Rossum authored
new opcode, "version", whose argument is the new constant TALDefs.TAL_VERSION (currently "1.0"). The opcode implementation currently asserts that the correct version is given; future implementations can implement backwards compatible behavior.
-