summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Change RuntimeError to SGMLParseError, which subclasses RuntimeErrorFred Drake2001-03-161-5/+53
| | | | | | | | | | for backward compatibility. Add support for SGML declaration syntax (<!....>) to some reasonable degree. This does not support everything allowed in SGML, but should work with "real" HTML (internal subset in a DOCTYPE is not handled). The content of the declaration is passed to the .handle_decl() method, which can be overridden by subclasses.
* Whitespace normalization.Tim Peters2001-03-166-14/+9
|
* Remove redundant "__future__:" from module docstring.Ka-Ping Yee2001-03-151-1/+1
|
* Import the exceptions that this module can raise.Fred Drake2001-03-141-0/+3
|
* Add doc string for run from profile.doc. (pydoc motivates me to writeJeremy Hylton2001-03-141-5/+13
| | | | | | | | | | good doc strings.) Fix silly argument handling; was using *args but really wanted 1 optional arg. XXX Should profile.doc be merged into the documentation and removed from the Lib directory?
* Moved clearing of "literal" flag. The flag is set in setliteral whichSjoerd Mullender2001-03-141-1/+1
| | | | | | | can be called from a start tag handler. When the corresponding end tag is read the flag is cleared. However, it didn't get cleared when the start tag was for an empty element of the type <tag .../>. This modification fixes the problem.
* Change "[%s]" % string.whitespace to r"\s" in regular expressions.Fred Drake2001-03-141-4/+3
|
* updated __all__ to include several other namesSkip Montanaro2001-03-131-1/+5
|
* Patch #407965: Improve Level 2 conformance of minidomMartin v. Löwis2001-03-132-21/+103
| | | | | | | | | | | | | | - addition of a DocumentFragment implementation and createDocumentFragment method - proper setting of ownerDocument for all nodes - setting of namespaceURI to None in Element as a class attribute - addition of setAttributeNodeNS and removeAttributeNodeNS as aliases for setAttributeNode and removeAttributeNode - support for inheriting from DOMImplementation to extend it with additional features (to override the Document class) in pulldom: - support for nodes (comment and PI) that occur before he document element; that became necessary as pulldom now delays creation of the document until it has the document element.
* Oops. A RISCOS patch I forgot to check in.Guido van Rossum2001-03-131-1/+7
|
* Add test to verify that nested functions with free variables don'tJeremy Hylton2001-03-132-0/+24
| | | | cause the free variables to leak.
* Multifile.read(): Fix a broken conversion to string methods.Fred Drake2001-03-121-1/+1
| | | | This closes SF bug #407777.
* Make docstrings raw, since they contain literal backslashes.Ka-Ping Yee2001-03-102-2/+2
|
* Fix findsource() to work for derived classes.Ka-Ping Yee2001-03-101-5/+5
|
* Import the nested_scopes feature twice, to exercise the patch introducedFred Drake2001-03-101-1/+3
| | | | | | | to avoid segfaults when more than one feature is named in the future statement. This tests for regression of SF bug #407394.
* Replace setenv with putenv. Reported by Dietmar Schwertberger.Martin v. Löwis2001-03-071-1/+1
|
* Unify _Environ processing on riscos with other platforms.Martin v. Löwis2001-03-072-13/+13
|
* fix typo in extending __all__ for riscos platform - closes bug 406296Skip Montanaro2001-03-061-1/+1
|
* Define & use NetrcParseError instead of improperly overloading SyntaxError.Fred Drake2001-03-061-5/+22
| | | | Always has the lineno and filename of the source text.
* Grr, splittag was also missing from __all__.Jack Jansen2001-03-051-1/+1
|
* Added url2pathname and pathname2url to __all__.Jack Jansen2001-03-051-1/+1
|
* Clean up junk files left behind by imp.load_source().Tim Peters2001-03-041-1/+7
|
* Use r""" instead of """ for the docstring so that backslashes are preserved.Ka-Ping Yee2001-03-021-1/+1
|
* Patch by Itamar S.T. (SF#305470): add reset() method.Guido van Rossum2001-03-021-1/+6
|
* When not copying a file because the output is up to date, make the messageFred Drake2001-03-021-2/+2
| | | | | slightly more brief, and more like the message that an extension will not be built because the built copy is up to date.
* Fix by Donn Cave for BeOS (SF #403642):Guido van Rossum2001-03-021-4/+13
| | | | | | | | | | | | | | UNIX style fork/execve/wait are not fully compatible with thread support on BeOS. For Python, that means neither fork() from import nor import from a fork work reliably. os._execvpe() does the latter, importing tempfile to set up a tantalizing target for hackers. This patch replaces both the tempfile name generation and the exec that uses it, in case we're on BeOS. Need this for setup:distutils:execvp(); symptoms are random crashes and internal BeOS error messages about th name, in case we're on BeOS. It's an issue because setup.py + distutils calls os.execvp(); symptoms are random crashes during setup.py, and internal BeOS error messages about thread IDs.
* RISCOS changes by dschwertberger.Guido van Rossum2001-03-026-24/+64
|
* Use != instead of <>. Sorry, Barry.Guido van Rossum2001-03-021-3/+3
|
* Use '127.0.0.1' only on Mac; for other, sane platforms, use 'localhost'.Ka-Ping Yee2001-03-021-2/+3
|
* RISCOS files by dschwertbergerGuido van Rossum2001-03-023-0/+482
|
* The sys.platform identifier for Windows is just 'win32' (for all varieties).Ka-Ping Yee2001-03-021-8/+8
|
* Search /tmp before /var/tmp and /usr/tmp -- this seems preferred.Guido van Rossum2001-03-021-1/+1
| | | | SF patch #404564, Gregor Hoffleit.
* Make getsourcefile() succeed even if the filename doesn't end in '.py' --Ka-Ping Yee2001-03-021-25/+29
| | | | | | | as long as the filename also doesn't end in a suffix that indicates a binary file (according to the flags in imp.get_suffixes()). Shrink try...except clauses and replace some of them with explicit checks.
* Replace literal '@test' with TESTFN.Ka-Ping Yee2001-03-021-6/+6
|
* When catching errors from os.rmdir(), test for os.error, not IOError!Guido van Rossum2001-03-021-3/+3
|
* Believe it or not, but "more" on Windows requires "more <file" ratherGuido van Rossum2001-03-021-1/+1
| | | | | | than "more file". Since tempfilepager() is only used on Windows, it seems, do this unconditionally -- on Unix, it always invokes something else.
* Typo repair.Tim Peters2001-03-021-1/+1
|
* Make names in __future__.py bind to class instances instead of 2-tuples.Tim Peters2001-03-022-10/+34
| | | | Suggested on c.l.py by William Tanksley, and I like it.
* Clean up the handling of getsourcefile/getabsfile.Ka-Ping Yee2001-03-021-23/+37
| | | | | Remove __main__ from the index of built-in modules. Miscellaneous compatibility fixes.
* Clarify the purpose of getsourcefile().Ka-Ping Yee2001-03-021-12/+19
| | | | Add getabsfile() for getting a most-normalized path.
* Clarify synopsis line a bit.Ka-Ping Yee2001-03-021-3/+3
| | | | Remove -no-about-splash option (not understood by all Netscapes).
* test_global was broken by some recent checkin. Repairing.Tim Peters2001-03-022-9/+15
|
* When seeking the module for an object, compare absolute (not relative) paths.Ka-Ping Yee2001-03-021-3/+4
|
* Use imp.get_suffixes to determine a module name in modulename(file).Ka-Ping Yee2001-03-021-7/+25
| | | | When possible, display strings containing backslashes using r'' notation.
* Test interaction of global and nested scopes -- thanks to Samuele Pedroni.Guido van Rossum2001-03-012-0/+66
|
* Also accept .so as an extension for module files.Ka-Ping Yee2001-03-011-8/+4
|
* Better __credits__.Ka-Ping Yee2001-03-011-1/+2
|
* Add __author__ and __credits__ variables.Ka-Ping Yee2001-03-011-1/+2
|
* Add __author__ variable.Ka-Ping Yee2001-03-011-2/+5
| | | | Robustify: don't rely on modules being present in sys.modules.
* Docstring improvements.Ka-Ping Yee2001-03-011-196/+395
| | | | | | | | | | | | | Add checks for .pyo and .pyd. Collapse docfunction, docmethod, docbuiltin into the one method docroutine. Small formatting fixes. Link the segments of a package path in the title. Link to the source file only if it exists. Allow modules (e.g. repr.py) to take precedence over built-ins (e.g. repr()). Add interruptible synopsis scanner (so we can do searches in the background). Make HTTP server quit. Add small GUI for controlling the server and launching searches (like -k). (Tested on Win2k, Win98, and Linux.)