summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Use Guido's trick for always extracting the version number from aMartin v. Löwis2001-03-271-1/+4
| | | | CVS Revision string correctly, even under -kv.
* Fix some reloading problems (still more work needed).Ka-Ping Yee2001-03-271-6/+16
| | | | | Add hyperlinks to PEPs at http://www.python.org/peps/pep-%04d.html Remove script directory (dirname of sys.argv[0]) from sys.path.
* Itamar Shtull-Trauring <itamar@maxnm.com>:Fred Drake2001-03-262-18/+58
| | | | | Add support to zipfile to support opening an archive represented by an open file rather than a file name.
* Update auto-detection for Konqueror to include KDE 2 -- the kfm command isFred Drake2001-03-261-2/+5
| | | | | gone; "konqueror" is the new name, and the command-line args are different. kfmclient has not changed, though.
* main(): Application of SF patch #405851, which allows this test to beBarry Warsaw2001-03-231-0/+12
| | | | | | | used by Jython. The tests in this module expect C locale, so be explicit about setting that (for CPython). However, in Jython, there is no C locale, so instead be explicit about setting the US locale. Closes the patch.
* In Jython, `@' is not allowed in module names. Extend the TESTFN testBarry Warsaw2001-03-231-3/+7
| | | | to use "$test" when in Jython. Closes SF patch #403668.
* Two minor changes for better Jython compatibility. Finn Bock says:Barry Warsaw2001-03-231-3/+3
| | | | | | | | | | | | | Change 1: Not all 'modules' in sys.modules have a sensible __file__ attribute. Some of our java package can have the __file__ attribute set to None. Change 2: In jython we have the jython license file in <root> and the CPython license file in <root>/Lib. By reversing the search sequence jython will find and show the jython license file before the CPython file. Closes SF patch #405853.
* Make socket.getservbyname test optional on socket module having thatBarry Warsaw2001-03-231-5/+6
| | | | | | attribute. Jython does not have this function. Closes SF patch #403667.
* Change rfc822_escape() to ensure there's a consistent amount of whitespaceAndrew M. Kuchling2001-03-231-3/+4
| | | | | after each newline, instead of just blindly inserting a space at the start of each line. (Improvement suggested by Thomas Wouters)
* setlocale(): In _locale-missing compatibility function, stringBarry Warsaw2001-03-231-2/+1
| | | | comparison should be done with != instead of "is not".
* Several changes for Jython portability. This closes SF patchBarry Warsaw2001-03-231-9/+18
| | | | | | | | | | | | | | | | | #403666. Specifically, In codestr, force `c' to be global. It's unclear what the semantics should be for a code object compiled at module scope, but bound and run in a function. In CPython, `c' is global (by accident?) while in Jython, `c' is local. The intent of the test clearly is to make `c' global, so let's be explicit about it. Jython also does not have a __builtins__ name in the module's namespace, so we use a more portable alternative (though I'm not sure why the test requires "__builtins__" in the g namespace). Finally, skip the new.code() test if the new module doesn't have a `code' attribute. Jython will never have this.
* flesh out __all__Jeremy Hylton2001-03-231-14/+6
| | | | | | remove debugging code in if __debug__: add get_children() method on SymbolTable
* Extend isclass() to work for extension classes (by looking for __bases__).Ka-Ping Yee2001-03-231-1/+1
|
* Browser compatibility fixes.Ka-Ping Yee2001-03-231-7/+8
| | | | Show methods aliased into a class from other classes.
* Small formatting improvements.Ka-Ping Yee2001-03-231-10/+13
|
* Show inherited methods, with hyperlinks to the base class they came from.Ka-Ping Yee2001-03-231-112/+168
| | | | | | | | | | | Font adjustment to improve viewing in Windows (the default monospaced font, Courier New, seems to have no reasonable size in IE!) Improve error handling. Try very hard to distinguish between failure to find a module and failure during the module importing process. Improve reloading behaviour. (Still needs some work.) Add '.' to sys.path when running as a script at the command-line. Don't automatically assume '-g' based on the platform. We'll just have the batch file supply -g.
* Provide a StopTokenizing exception for conveniently exiting the loop.Ka-Ping Yee2001-03-231-10/+11
|
* Don't have trace() skip the top frame; return them all.Ka-Ping Yee2001-03-232-6/+7
|
* When creating an attribute node using createAttribute() orFred Drake2001-03-231-1/+2
| | | | | | createAttributeNS(), use the parallel setAttributeNode() or setAttributeNodeNS() to add the node to the document -- do not assume that setAttributeNode() will operate properly for both.
* Convert the weakref test suite to PyUNIT, and add tests that exercise weakFred Drake2001-03-232-260/+252
| | | | references on function objects and both bound and unbound methods.
* When the regression test is run in verbose mode, make the PyUNIT-basedFred Drake2001-03-231-1/+1
| | | | tests a little noisier, providing more progress information.
* Fixes for various issues reported and discovered since Python 9:Ka-Ping Yee2001-03-231-224/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor description of import errors into DocImportError.__str__. Add "docother" and "fail" methods to Doc class. Factor formatting of constants into "docother". Increase max string repr limit to 100 characters. Factor page generation into HTMLDoc.page. Handle aliasing of names (objects appearing under an attribute name different from their intrinsic __name__) by passing the attribute name into each doc* method. Handle methods at top level of modules (e.g. in random). Try to do reloading efficiently. Important fixes still to do: Module reloading is broken by the unfortunate property that failed imports leave an incomplete module in sys. Still need to think of a good solution. Can't document modules in the current directory, due to the other unfortunate property that sys.path gets '.' when you run 'python' but it gets the script directory when you run a script. Need to ponder to find a solution. The synopsis() routine does not work on .so modules. Aliases cause duplicate copies of documentation to appear. This is easy to fix, just more work. Classes appear as their intrinsic name, not their attribute name, in the class hierarchy. This should be fixed. Inherited methods should be listed in class descriptions.
* SRE 2.1b2: increase the chances that the sre test works on otherFredrik Lundh2001-03-222-14/+3
| | | | machines...
* First cut at a high-level symbol table interfaceJeremy Hylton2001-03-221-0/+258
|
* SRE 2.1b2: forgot to update one output file (sorry, Fred!)Fredrik Lundh2001-03-221-0/+8
|
* Strip \r as trailing whitespace as part of soft line endings.Guido van Rossum2001-03-221-1/+1
| | | | | Inspired by SF patch #408597 (Walter Dörwald): quopri, soft line breaks and CRLF. (I changed (" ", "\t", "\r") into " \t\r".)
* Add a wrapper function for ssl() on Windows. Inspired by SF patchGuido van Rossum2001-03-221-6/+11
| | | | | | | # 409287, ssl fix when using _socketobject, by Robin Dunn. I took the opportunity to improve the way it deals with reload(socket) for the socket function as well.
* This is SF patch #405952, by Anthony Baxter:Guido van Rossum2001-03-221-5/+14
| | | | | | | | | | | | | | | cmd.py uses raw_input(); eats SIGCLD: I discovered a rather nasty side effect of the standard cmd.py library today. If it's sitting inside raw_input(), any SIGCLDs that get sent to your application get silently eaten and ignored. I'm assuming that this is something that readline is thoughtfully doing for me. This patch adds an instance attr that allows the user to select to not use raw_input(), but instead use sys.stdin.readline() [Changed slightly to catch EOFError only for raw_input().]
* SRE 2.1b1: don't do unicode tests under 1.5.2, or on unicodeFredrik Lundh2001-03-221-3/+8
| | | | strings/patterns.
* sre 2.1b2 update:Fredrik Lundh2001-03-226-32/+102
| | | | | | - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn
* Synchronize with 1.6 of PyXML:Martin v. Löwis2001-03-221-3/+11
| | | | | Retrieve relevant information at construction time, as it may be lost when the exception is printed.
* Use the get_contact*() accessors instead of get_maintainer*()Andrew M. Kuchling2001-03-221-2/+2
|
* Allow the process of reading back what we wrote to a pty to transformThomas Wouters2001-03-221-24/+36
| | | | | linefeeds into carriagereturn-linefeeds (which is apparently what IRIX does.) Also add some comments, an extra test and reorganize it a bit.
* Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.pySteve Purcell2001-03-222-256/+244
| | | | changed accordingly.
* Remove redundant importAndrew M. Kuchling2001-03-221-1/+1
|
* Back out conversion to string methods; the Distutils is intended to workAndrew M. Kuchling2001-03-224-13/+13
| | | | with 1.5.2
* Call the write_pkg_info methodAndrew M. Kuchling2001-03-221-2/+2
|
* Add 'platforms' and 'keywords' attributes to the DistributionMetadata class,Andrew M. Kuchling2001-03-221-5/+70
| | | | | | | | along with options to print them. Add a finalize_options() method to Distribution to do final processing on the platform and keyword attributes Add DistributionMetadata.write_pkg_info() method to write a PKG-INFO file into the release tree.
* Patch #407434: add rfc822_escape utility functionAndrew M. Kuchling2001-03-221-0/+10
|
* Check that f.keys() == [] right after creation -- this prevents bugsGuido van Rossum2001-03-223-3/+6
| | | | like the one I just fixed to come back and haunt us.
* Changed doctest to run tests in alphabetic order of name.Tim Peters2001-03-213-98/+108
| | | | | | This makes verbose-mode output easier to dig thru, and removes an accidental dependence on the order of dict.items() (made visible by recent changes to dictobject.c).
* Test that traceback module works with SyntaxErrors with or without carets.Jeremy Hylton2001-03-213-0/+43
|
* Do not print caret when offset is None.Jeremy Hylton2001-03-211-7/+8
|
* Reformat and edit docstrings to follow modern conventions. SingleJeremy Hylton2001-03-211-50/+68
| | | | line summary followed by blank line and description.
* Add test cases for the fnmatch module.Fred Drake2001-03-212-0/+43
|
* Just import sys at the top instead of inside lots of functions.Fred Drake2001-03-211-3/+35
| | | | Add some helpers for supporting PyUNIT-based unit testing.
* The unittest module from PyUNIT, by Steve Purcell.Fred Drake2001-03-211-0/+689
|
* Donovan Baarda <abo@users.sourceforge.net>:Fred Drake2001-03-211-9/+5
| | | | | | Patch to make "\" in a character group work properly. This closes SF bug #409651.
* Fixed a bunch of Tabnanny errorsMoshe Zadka2001-03-211-590/+590
|
* Add tests for recent changes:Jeremy Hylton2001-03-212-0/+32
| | | | | - global stmt in class does not affect free vars in methods - locals() works with free and cell vars