summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Ehm, when we don't need to byteswap the data, don't go through anGuido van Rossum1999-02-051-6/+4
| | | | array object at all.
* Two important fixes:Guido van Rossum1999-02-051-3/+12
| | | | | | | (1) on a little-endian platform, don't byteswap; (2) in _patchheader(), there was a missing self._file argument to a _write_long() call.
* The encoding type was wrong, I think.Guido van Rossum1999-02-051-0/+0
|
* Should open files in binary mode!Guido van Rossum1999-02-051-9/+2
| | | | | | | | | | | Also finally get rid of some obsolete commented-out access statements. A note about the previous checkin: I believe it's correct, but I found something strange: the file Lib/test/audiotest.au in the Python distribution was evidently encoded in u-LAW format but had its encoding set to 2, i.e. linear-8. I hope that this is a mistake caused by some conversion program that produced this .au file; I just found it on a website.
* Shouldn't be treating linear-8 as u-law!Guido van Rossum1999-02-051-1/+2
|
* New test for ntpath moduleGuido van Rossum1999-02-032-0/+43
|
* New splitdrive() that knows about UNC paths (e.g., network paths likeGuido van Rossum1999-02-031-26/+50
| | | | | | \\host\mountpoint\dir\file). By Larry Hastings. Also cleaned up some docstrings.
* Fredrik Lundh fixes Sjoerd's patch...Guido van Rossum1999-02-021-7/+7
| | | | | """Sjoerd's version stores unbound methods. that's not good enough ;-) Here's an alternative implementation of fixdict."""
* Patch by Sjoerd Mullender to placate /F:Guido van Rossum1999-02-021-4/+12
| | | | | | | | | Fix leaking of instances by removing the elements variable that we created on closing the parser. The elements variable is now created in the reset() method, so that the sequence close(); reset(); ... works. Also, add the name of the entity reference that wasn't found to the error message.
* Special-case _P_WAIT etc. for NT.Guido van Rossum1999-02-011-4/+7
|
* Patch by Sjoerd Mullender for better compatibility with the versionGuido van Rossum1999-02-011-0/+25
| | | | | | | | | from Python 1.5.1: If after __init__ finishes no new elements variable was created, this patch will search the instance's namespace for all attributes whose name start with start_ or end_ and put their value in a new elements instance variable.
* From: Mike Orr <mso@oz.net>Guido van Rossum1999-01-301-1/+1
| | | | | | | | | | | In the docstring of ConfigParser.py (Python 1.5.2b1): read(*filenames) -- read and parse the list of named configuration files should be: read(filenames) -- read and parse the list of named configuration files The method accepts a list, not a bunch of positional arguments. Which is good, the list is much more convenient.
* Embarrassing: remove a debug print statement from set_break() for theGuido van Rossum1999-01-291-1/+0
| | | | second time!
* Use win32api.GetFullPathName(path) if it exists to implement abspath().Guido van Rossum1999-01-291-3/+7
|
* Support a canonical() method, implementable by a derived class, to beGuido van Rossum1999-01-291-6/+20
| | | | | | | | applied to all filenames before they are compared, looked up in the breaks dictionary, etc. The default implementation does nothing -- it's implented as fast as possible via str(). A useful implementation would make everything a absolute, e.g. return os.path.normcase( os.path.abspath(filename)).
* Add abspath()Guido van Rossum1999-01-294-0/+28
|
* Added a -s option which is useful for narrowing down memory leaks.Barry Warsaw1999-01-281-4/+42
| | | | | With -s only a single test is run. The next test run is chosen sequentially from the list of all tests.
* Added a new test for old filter() memory leakBarry Warsaw1999-01-281-0/+17
|
* Improvement of b/w compat note in help text for clear, by Richard Wolff.Guido van Rossum1999-01-281-1/+2
|
* Slight reworking of this test. If nis.maps() gives a nis.error, thenBarry Warsaw1999-01-281-2/+5
| | | | | raise an ImportError if not running verbose. This signals to the regression framework that this test isn't applicable.
* Get rid of do_clear_break / do_clb command -- it is redundant.Guido van Rossum1999-01-271-20/+0
| | | | (It was left in accidentally after a long and arduous 3-way patch session.)
* Re-format the module docstring and document the new get() argument.Barry Warsaw1999-01-261-26/+29
|
* Patch by Chris Petrilli (not really tested since I don't know thisGuido van Rossum1999-01-261-6/+17
| | | | | | | module myself) to accept an option keyword argument (vars) that is substituted on top of the defaults that were setup in __init__. The patch also fixes the problem where you can't have recusive references inside your configuration file.
* The usual.Guido van Rossum1999-01-255-4/+139
|
* Allow recognition of attributes even if they don't have space in frontFred Drake1999-01-251-1/+1
| | | | | | | of them. I.e., '<a name="foo"href="bar.html">' will now have two attributes recognized. Based on comments from newgroup.
* Don't die if CodeType doesn't exist -- ignore the error. This couldGuido van Rossum1999-01-251-1/+4
| | | | happen in restricted mode.
* Correct typo in new function get_breaks().Guido van Rossum1999-01-251-1/+1
|
* Change clear syntax to support three alternatives:Guido van Rossum1999-01-251-3/+47
| | | | | | | | | clear clear file:line clear bpno bpno ... Also print the breakpoint data after calling set_break(), because the print statement in set_break() has gone.
* Change clear_break() to the old signature clear_break(file, line).Guido van Rossum1999-01-251-26/+40
| | | | | | | | Add new clear_bpbynumber() with single bpno argument. (Adapted from a patch by Richard Wolff.) Also some cleanup in error messages and moved some comments into a docstring.
* Enable os.path as a mostly-normal submodule, including "from os.pathFred Drake1999-01-191-0/+2
| | | | import isfile" and "import os.path".
* Added 'warn' method.Greg Ward1999-01-181-1/+10
|
* Added doc strings to the exception classes.Guido van Rossum1999-01-151-3/+29
| | | | Contributed by Blake Winton, but considerably edited.
* Patch by Piers Lauder: make exceptions classes.Guido van Rossum1999-01-151-14/+13
| | | | Take opportunity to add more explanatory messages to exceptions.
* Test the rfc822.py module. Contains just a few simple cases, and someBarry Warsaw1999-01-142-0/+83
| | | | troublesome ones encountered on the c.l.py list.
* Message.getaddrlist(): This now handles multiple occurances of theBarry Warsaw1999-01-141-12/+21
| | | | | | | | | | | | | | | | | | named header, so that if a message has, e.g. multiple CC: lines, all will get returned by the call to getaddrlist(). It also correctly handles addresses which show up in continuation lines. AdderlistClass.__init__(): Added \n to self.CR which fixes a bug that sometimes, an address would contain a bogus trailing newline. Message.getaddress(): In final else clause, added a test for the character we're at being in self.specials. Without this, such characters never get consumed and we infloop. Case in point (as posted to c.l.py): To: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com> ----------------------------^ otherwise we'd infloop here
* In rcpt(), avoid a space after the TO: address when the option list isGuido van Rossum1999-01-141-2/+2
| | | | empty. Make sure there is a space when there are options.
* Change the order of the utime() and the chmod() call in copystat().Guido van Rossum1999-01-141-1/+1
| | | | | This doesn't make a bit of difference on Unix, but apparently on Windows NT you need write permission before you can set the utime...
* Added: mems.lib.text_file: provides TextFile class for parsing textGreg Ward1999-01-131-0/+206
| | | | | files with (optional) comment stripping, blank line skipping, whitespace removal, and line joining with trailing backslashes.
* A gift from Sam Rushing - modules asyncore and asynchat for theGuido van Rossum1999-01-122-0/+743
| | | | standard Python library. (Async socket support.)
* DumbWriter.send_paragraph(): Fix problem with DumbWriter reported toFred Drake1999-01-121-1/+1
| | | | the newsgroup by Raymond Tong Leng Ng <rntl@yahoo.com>.
* get_config_h_filename(): Fix to work with current PythonFred Drake1999-01-111-2/+2
| | | | | installations; it was picking up a stale config.h from an overwritten installation.
* Added some more comments.Guido van Rossum1999-01-101-13/+15
|
* FieldStorage.__init__(): if there is no content-type header, useBarry Warsaw1999-01-081-2/+24
| | | | | | | | | | text/plain for inner parts, but application/x-www-form-urlencoded for outer parts. Honor any existing content-type header. Lower down, if the content-type header is something we don't understand (say because it there was a typo in the header coming from the client), default to text/plain for inner parts, but application/x-www-form-urlencoded for outer parts.
* Fixed bug in the common-case code for HTTP URLs; it would lose the query,Andrew M. Kuchling1999-01-061-4/+7
| | | | | fragment, and/or parameter information. 3 cases added to the test suite to check for this bug.
* Constants for [f]statvfs() (new in posixmodule.c) by Steve Clift.Guido van Rossum1999-01-061-0/+20
|
* Update and add docstrings.Fred Drake1999-01-061-5/+13
|
* Move brief descriptions of what() and whathdr() to docstrings in theFred Drake1999-01-061-8/+2
| | | | functions (from comments).
* Another patch from Fred: factored _init_posix intoGreg Ward1999-01-061-18/+37
| | | | | get_config_h_filename, get_makefile_filename, parse_config_h, and parse_makefile.
* Got rid of whatraw().Guido van Rossum1999-01-061-72/+35
| | | | | Doc-string-ified the lead comments. Added auto call of test() when run as script.
* Add extend() method. A small New Year's present from Jean-Claude Wippler.Guido van Rossum1999-01-061-0/+1
|