summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix path search for test data file so it works under more circumstances.Guido van Rossum1997-10-011-1/+6
|
* There was actually a test that ensured that raising an exception AGuido van Rossum1997-10-011-3/+2
| | | | | | | with an instance of a derived class B would really raise an A, not a B. Since Barry fixed this anomalous behaviour, I though I might as well fix the test! (Hmm, Barry, did you not run the tests or did you miss that test_opcodes failed?)
* Fixed test for socket.error to work when it's a class exception.Guido van Rossum1997-10-011-1/+2
|
* Handy utility to guess MIME type from extension.Guido van Rossum1997-09-301-0/+190
|
* Move Widget.config() c.s. to Misc class, so the Tk class also inherits them.Guido van Rossum1997-09-291-31/+30
|
* Use sys.exc_info() where needed.Guido van Rossum1997-09-291-44/+106
| | | | Use "re" module, making it threadsafe.
* Use sys.exc_info() where needed.Guido van Rossum1997-09-299-32/+38
|
* No longer need to be very careful with saving the exception stateGuido van Rossum1997-09-291-2/+1
| | | | | first. Don't store the traceback as a local variable, to avoid circular references.
* Removing emacs.py, which is obsolete.Guido van Rossum1997-09-291-18/+0
|
* Add optional bufsize argument to various calls so we can make theGuido van Rossum1997-09-291-8/+8
| | | | | | | os.fdopen() calls unbuffered. I presume that it's enough if we can make all three of them (for stdin, stdout, and stderr) unbuffered and don't need to specify different buffer sizes per file -- that would complicate the interface more than I care for.
* Use Marc Lemburg's tb_lineno() to calculate the correct line number.Guido van Rossum1997-09-261-3/+21
| | | | | | Apparently the traceback object doesn't contains the right linenumber when -O is used. Rather than guessing whether -O is on or off, use tb_lineno() unconditionally.
* Word completion for the new readline.set_completer() function.Guido van Rossum1997-09-261-0/+108
| | | | | | | | | | | | | | When completing a simple identifier, it completes keywords, built-ins and globals in __main__; when completing NAME.NAME..., it evaluates (!) the expression up to the last dot and completes its attributes. It's very cool to do "import string" type "string.", hit the completion key (twice), and see the list of names defined by the string module! Tip: to use the tab key as the completion key, call readline.parse_and_bind("tab: complete")
* The command can now either be a string (as before) or a list ofGuido van Rossum1997-09-181-3/+4
| | | | | arguments for execvp (for those who don't want the shell's argument parsing).
* NumberError => ArithmeticErrorBarry Warsaw1997-09-161-5/+5
|
* Two subtle changes:Guido van Rossum1997-09-161-69/+56
| | | | | | | (1) Introduce Exception as the conceptual root class for all exceptions. (2) Do less work in __init__(), and more in __str__ (store args unchanged).
* Entirely rewritten parseaddr() function by Sjoerd Mullender.Guido van Rossum1997-09-151-53/+92
| | | | (Includes a patch he sent me a few days later.)
* Added code to emit trailing ',' for singleton tuples in two places.Guido van Rossum1997-09-141-1/+7
|
* Three independent changes:Guido van Rossum1997-09-121-5/+10
| | | | | | | | | - Don't use "from copy_reg import *". - Use cls.__module__ instead of calling whichobject(cls, cls.__name__); also try __module__ in whichmodule(), just in case. - After calling save_reduce(), add the object to the memo.
* #Added doc string.Guido van Rossum1997-09-091-1/+8
|
* Make functionality more closely the same as what's implemented by default.Guido van Rossum1997-09-091-8/+12
|
* *** empty log message ***Guido van Rossum1997-09-091-0/+115
|
* Renamed platform specific subdirectories to plat-*.Guido van Rossum1997-09-0996-16133/+0
|
* Renamed dos_8x3 to dos-8x3.Guido van Rossum1997-09-0961-8526/+0
|
* These directories renamed: tkinter -> lib-tk, stdwin -> lib-stdwin.Guido van Rossum1997-09-0946-6876/+0
|
* Added test for __all__.Guido van Rossum1997-09-082-0/+22
|
* #Adapt the doc string to reality.Guido van Rossum1997-09-081-7/+6
|
* Initialize self.__tempfiles to [] in the constructor (else it remainsGuido van Rossum1997-09-081-0/+1
| | | | | a shared class variable -- but each instance will attempt to clean it up entirely ob cleanup).
* Change packages -> site-packagesGuido van Rossum1997-09-081-8/+10
|
* *Semantic change*: when unpickling the instance variables of anGuido van Rossum1997-09-081-2/+1
| | | | | | | | | | instance, use inst.__dict__.update(value) instead of a for loop with setattr() over the value.keys(). This is more consistent (the pickling doesn't use getattr() either but pickles inst.__dict__) and avoids problems with instances that have a __setattr__ hook. But it *is* a semantic change (because the setattr hook is no longer used). So beware!
* Look for uuencoded test files in the directory containing this module, too.Guido van Rossum1997-09-071-2/+6
| | | | | (This is necessary because when imported as test.test_rgbimg, the test directory is not on sys.path.)
* Look for uuencoded test files in the directory containing this module, too.Guido van Rossum1997-09-071-1/+2
| | | | | (This is necessary because when imported as test.test_rgbimg, the test directory is not on sys.path.)
* Pass optional arguments (globals(), locals(), []) to __import__() soGuido van Rossum1997-09-071-1/+1
| | | | | | | it will run as package test, e.g. this will run the test suite: import test.regrtest test.regrtest.main()
* Fix details in the test:Guido van Rossum1997-09-071-3/+13
| | | | | | - traceback should go to stdout! - don't import ni, import t1! - nicer support for command line options, only if run as __main__
* Added feeble test for reload() of packages and submodules.Guido van Rossum1997-09-062-0/+5
|
* Test set for package import.Guido van Rossum1997-09-062-0/+212
|
* Made the 'info' argument to SyntaxError optional, so phase-2 syntaxGuido van Rossum1997-09-051-8/+11
| | | | | | | | | errors are handled (these gave ``TypeError: not enough arguments''). Also changed its __str__() to correct a typo (missing self.) and return str(self.msg) to ensure the result is always string. Also changed the default __str__ to simply return str(self.args).
* Now produces some reassuring output.Jeremy Hylton1997-09-041-0/+9
|
* Many more tests, including tests of many optional arguments.Jeremy Hylton1997-09-041-0/+47
|
* Added some try-excepts so that it can be imported in restricted modeGuido van Rossum1997-09-041-6/+15
| | | | | | (though some type names are undefined in that case, e.g. CodeType (inaccessible), FileType (not always accessible), and TracebackType and FrameType (inaccessible).
* The re test suite is very slow on slower hosts.Guido van Rossum1997-09-041-0/+3
| | | | To save time, only run the first and last 10 tests except in verbose mode.
* Different test for Unix -- rely on os.sep instead of sys.platform.Guido van Rossum1997-09-031-3/+3
|
* One patch from Sjoerd and one from Jack.Guido van Rossum1997-09-031-7/+14
| | | | | | | | | | | Sjoerd: add separate administration of temporary files created y URLopener.retrieve() so cleanup can properly remove them. The old code removed everything in tempcache which was a bad idea if the user had passed a non-temp file into it. (I added a line to delete the tempcache in cleanup() -- it still seems to make sense.) Jack: in basejoin(), interpret relative paths starting in "../". This is necessary if the server uses symbolic links.
* Give in to Mike Meyer -- add *both* lib/python1.5/packages andGuido van Rossum1997-09-031-7/+9
| | | | | lib/site-python to the path (if they exist). This is a reasonable compromise.
* #Removed debug print that was accidentally left in.Guido van Rossum1997-09-031-2/+0
|
* Add the same _keep_alive patch (by Michael Scharff) that was added toGuido van Rossum1997-09-031-0/+19
| | | | | copy.deepcopy() a while ago. Can't reproduce this but it doesn't break anything and it looks like the code could have the same problem.
* #typoGuido van Rossum1997-08-301-1/+1
|
* Write out the dynamic OS choice, to avoid exec statements.Guido van Rossum1997-08-291-51/+66
| | | | | Adding support for a new OS is now a bit more work, but I bet that 'dos' or 'nt' will cover most situations...
* New site.py semantics. Searches inGuido van Rossum1997-08-291-28/+103
| | | | | <*prefix>/lib/python<version>/packages for *.pth files containing directories that are appended to sys.path.
* New file, which is imported by the built-in module when python isBarry Warsaw1997-08-291-0/+164
| | | | | started with the -X option. This file contains the definitions for the built-in exception classes.
* Expanded r() function to handle class exceptions.Barry Warsaw1997-08-291-1/+6
|