summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Don't use raw_input() to ask for the password; this puts the passwordGuido van Rossum1998-07-281-2/+17
| | | | in the GNU readline history buffer which is not such a great idea.
* fix __str__ method of EnvironmentError (base class of IOError): wasJeremy Hylton1998-07-281-2/+2
| | | | | | using "%d" % errno to print out IOError exceptions -- but urllib.py raises exceptions where the errno slot in the exception tuple is a string.
* Added getsize(), getmtime(), getatime()Guido van Rossum1998-07-244-0/+72
|
* Add makedirs(), removedirs(), renames() -- ESR-inspired super-versionsGuido van Rossum1998-07-241-0/+63
| | | | | of mkdir(), rmdir() and rename() that make or remove intermediate directories as well.
* Added support for including the filename in IOErrors and OSErrors thatBarry Warsaw1998-07-231-3/+32
| | | | | | | | | | | | | | | | involve a filesystem path. To that end: - Changed IOError to EnvironmentError and added a hack which checks for arg of len 3. When constructed with a 3-tuple, the third item is the filename and this is squirreled away in the `filename' attribute. However, for in-place unpacking backwards compatibility, self.args still only gets the first two items. Added a __str__() which prints the filename if it is given. - IOError now inherits from EnvironmentError - New class OSError which also inherits from EnvironmentError and is used by the posix module.
* Speed up the implementation of quote().Guido van Rossum1998-07-221-8/+17
| | | | | | | | Fix the implementation of quote_plus(). (It wouldn't treat '+' in the original data right.) Add urlencode(dict) which is handy to create the data for sending a POST request with urlopen().
* Feature added by Harri Pasanen (at my suggestion): .py suffix onGuido van Rossum1998-07-221-3/+10
| | | | filename may be omitted.
* Don't use calculations on values gotten from tell(). Also use aGuido van Rossum1998-07-211-4/+11
| | | | slightly different way to test for the existence of unread.
* Untabified.Guido van Rossum1998-07-201-39/+39
|
* Update the documentation. Get rid of the section "how it works"Guido van Rossum1998-07-201-60/+18
| | | | (which is not very relevant when you're in the debugger :-).
* Added support for specifying a filename for a breakpoint, roughlyGuido van Rossum1998-07-201-40/+102
| | | | | | | | | | | | | according to an idea by Harri Pasanen (but with different syntax). This affects the 'break' and 'clear' commands and their help functions. Also added a helper method lookupmodule(). Also: - Try to import readline (important when pdb is used from/as a script). - Get rid of reference to ancient __privileged__ magic variable. - Moved all import out of functions to the top. - When used as a script, check that the script file exists.
* Fix another bug in ESR's changes. In order to work properly,Guido van Rossum1998-07-201-4/+2
| | | | | onecmd(line) must return the value returned by emptyline() or default(line).
* Add missing initializer for self._backupfilename. Due to Ralph Butler.Guido van Rossum1998-07-201-0/+1
|
* Modest speed improvement to escape() by Piet van Oostrum.Guido van Rossum1998-07-201-5/+5
|
* Patch by Piet van Oostrum to avoid calculating with the result ofGuido van Rossum1998-07-201-6/+5
| | | | | | | fp.tell() -- that won't work on Windows. (A patch for rfc822 is still needed for one case where it finds a bad header line and wants to back up.)
* Measure performance of sub(), split(), findall().Guido van Rossum1998-07-171-0/+23
|
* Get a 3- to 4-fold speedup for sub()/subn(), split() and findall() byGuido van Rossum1998-07-171-38/+71
| | | | | | | | not calling self.search(); instead, call self.code.match() directly and interpret the list of registers it returns directly. This saves the overhead of instantiating a MatchObject for each hit, basically inlining search() as well as group(). When a MatchObject is still needed, one is allocated and reused for the duration of the scan.
* Added tests for findall().Guido van Rossum1998-07-171-1/+21
| | | | | Added test for m.groups() with default. Added a few prints announcing various tests in verbose mode.
* Add tests for array self-assigns. (This one has no relevance to JPython.)Guido van Rossum1998-07-161-1/+28
|
* Add tests for list self-assigns. (Sorry, this should have been hereGuido van Rossum1998-07-161-0/+13
| | | | before JPython 1.0 came out.)
* From: Nicolas CHAUVAT <nico@caesium.fr>Guido van Rossum1998-07-161-1/+1
| | | | | | | | | | In the bbox method of Group (Canvas.py file), you should read return self.canvas._getints(self._do('bbox')) instead of return self._getints(self._do('bbox'))
* Tk.__init__(): In computing baseName, add ".pyo" to list of droppedFred Drake1998-07-151-1/+2
| | | | | extensions, and include the "." in ".pyc". Still need to get _tkinter.c:Tkapp_New() to use baseName....
* Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)Guido van Rossum1998-07-131-15/+37
| | | | by Carey Evans <c.evans@clear.net.nz>, for picky mail servers.
* (1) Added a sys.exc_info() emulation. (It returns None for the traceback.)Guido van Rossum1998-07-091-15/+57
| | | | | | | (2) Made the test script a bit fancier -- you can now use it to run arbitrary scripts in restricted mode, and it will do the right thing. (The interactive mode is still pretty lame; should integrate this with code.interact().)
* Put back the call to report_unbalanced() that was lost whenGuido van Rossum1998-07-071-0/+2
| | | | parse_endtag() was restructured in parse_endtag() and finish_endtag().
* Get rid of some obsolete opcodes.Guido van Rossum1998-07-071-5/+0
|
* The permissions ('mode' flag) should default to 0666.Guido van Rossum1998-07-031-1/+1
|
* The _fromlinepattern was a little too restrictive -- some sendmailsGuido van Rossum1998-07-021-1/+1
| | | | don't put the seconds in the time!
* According to Robin Dunn, at least one FTP server returns 200 insteadGuido van Rossum1998-07-021-1/+1
| | | | of 250 on a successful delete.
* Gotta have an __init__() method -- pdb.py calls it!Guido van Rossum1998-07-011-0/+2
|
* Several changes:Barry Warsaw1998-07-011-40/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Convert to using re module 2. Added two new exception classes a. MissingSectionHeaderError which signals an early parsing exception when options appear in the file before any section header. Previously a bogus TypeError was thrown deeper down. b. ParsingError which collates any non-fatal parsing errors. ConfigParser.read() will raise this after the entire file was parsed if any errors occurred during parsing (client could just catch the exception and continue, because the ConfigParser instance would still be initialized with the valid data). (small note: Error.__msg => Error._msg) 3. ConfigParser.__read() now uses re which has the following minor semantic change: underscore is now allowed in section header and option name. Also, because of the old regexps, theoretically. Fixed continuation line bug reported by F. Lundh. 4. It seemed that the old ConfigParser automatically added the option `name' to every section, which contained the name of the section. This seemed bogus to me so I took it out.
* Improved test set for int() and long() string conversions.Guido van Rossum1998-06-301-0/+59
|
* Add pop method.Guido van Rossum1998-06-301-0/+1
|
* Fix the comments describing the return values of the head(), body(),Guido van Rossum1998-06-301-0/+6
| | | | article() commands.
* For completeness, add a dummy load_package() method to RHooks. ItGuido van Rossum1998-06-291-0/+1
| | | | | should never be called, so this isn't really needed, but this signifies that rexec now supports packages -- because ihooks does.
* Support loading of packages. (I had this coded up for a while butGuido van Rossum1998-06-291-34/+172
| | | | | didn't want to commit until it had been tested. I presume that it works in Grail.)
* Added findall() to RegexObject -- return a list of all matches in aGuido van Rossum1998-06-291-16/+61
| | | | | | string. Added groupdict() to MatchObject -- return the named groups as a dict. Added default argument to groups() to specify what to return for unmatching groups; groupdict() also has this.
* Improved by Eric Raymond.Guido van Rossum1998-06-291-17/+84
|
* # Make tabnanny happy.Guido van Rossum1998-06-291-3/+3
|
* Improved by Eric Raymond.Guido van Rossum1998-06-291-18/+29
|
* Oops! Of course, Tim is right -- when the item is not a hex number,Guido van Rossum1998-06-291-2/+2
| | | | the '%' should be put back in.
* Speed-up unquote(), inspired by post from Daniel Walton.Guido van Rossum1998-06-281-18/+16
|
* Remove RCS and #! cruft at top.Guido van Rossum1998-06-261-4/+0
|
* Allow binding a Tcl command (given as a string) as well as a PythonGuido van Rossum1998-06-251-3/+3
| | | | function.
* Treat "HEAD" same as "GET", so that CGI scripts won't fail.Guido van Rossum1998-06-251-1/+1
|
* Rewrite the (test) main program so that when used as a script, it canGuido van Rossum1998-06-251-5/+29
| | | | retrieve one or more URLs to stdout. Use -t to run the self-test.
* Piers' latest version, labeled 2.11. This time he integrated myGuido van Rossum1998-06-251-18/+14
| | | | | changes, and made only a few minor changes. No changes of my own this time.
* Eric Raymond added support for ESMTP protocol and corrected some typosGuido van Rossum1998-06-251-33/+113
| | | | in comments and doc strings.
* Subsume the interact() function in a class. This should make itGuido van Rossum1998-06-231-42/+197
| | | | | possible to use this in PythonWin, and to replace Fredrik Lundh's PythonInterpreter class. Fredrik is credited with the class' API.
* "if match(x) >= 0:" smells of regex matching; should use "if match(x):"Guido van Rossum1998-06-231-1/+1
|