summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Tests for tokenize.py (Ka-Ping Yee)Guido van Rossum1997-10-273-0/+775
|
* New, fixed version with proper r"..." and R"..." support from Ka-Ping.Guido van Rossum1997-10-271-7/+10
|
* Redone (by Ka-Ping) using the new re module, and adding recognitionGuido van Rossum1997-10-271-57/+55
| | | | for r"..." raw strings. (And R"..." string support added by Guido.)
* This should hopefully finally clean up the remaining __del__ relatedGuido van Rossum1997-10-271-9/+11
| | | | | problems with this module, even if an instance of a derived class is kept alive longer than the urllib module itself...
* Bugfix in match() -- the number of registers shouldn't be divided by two!Guido van Rossum1997-10-271-1/+1
|
* Use __dict__.update(state) instead of for loop over state.items() andGuido van Rossum1997-10-261-11/+9
| | | | | | | call to setattr(). This changes semantics, following the change already implemented in pickle. Also reindented a few lines properly.
* re -> regex conversions by Sjoerd.Guido van Rossum1997-10-243-95/+100
|
* New module -- converts regex regular expressions to re style.Guido van Rossum1997-10-231-0/+186
| | | | | | | There are two ways to use this -- as a filter (e.g. using C-U M-| on a regex string literal in an Emacs buffer) or from a Python program which imports this as a module. Read the doc string for more info, and also some caveats (some cases aren't handled right).
* Although it's hard to be sure, I *think* this is a working conversionGuido van Rossum1997-10-231-67/+67
| | | | | | from regex to re style regular expressions. This should make sgmllib and htmllib threadsafe, so I can now create a threaded version of webchecker...
* Remove redundant import regsub.Guido van Rossum1997-10-231-1/+0
|
* Convert all remaining *simple* cases of regex usage to re usage.Guido van Rossum1997-10-2223-144/+134
|
* Add pcre to the list of safe modules.Guido van Rossum1997-10-221-1/+1
|
* Remove outdated comments.Guido van Rossum1997-10-221-7/+1
|
* Removed some unneeded imports, moved others around.Guido van Rossum1997-10-221-4/+2
|
* Removed unneeded imports of regex and regsub.Guido van Rossum1997-10-221-2/+0
|
* Use re instead of regex. Also remove bogus return statement from __init__().Guido van Rossum1997-10-221-6/+8
|
* Added pgrep() function, which is like grep/egrep/emgrep but uses PerlGuido van Rossum1997-10-222-0/+36
| | | | syntax, by virtue of the new re module.
* Deleted this long-obsolete moduleGuido van Rossum1997-10-221-32/+0
|
* Added "new" symbol defns for RE_ANSI_HEX and RE_NO_GNU_EXTENSIONS --Guido van Rossum1997-10-221-0/+6
| | | | hopefully the last maintenance on this module, ever.
* Catch KeyboardInterrupt separately and propagate it, instead ofGuido van Rossum1997-10-201-1/+4
| | | | | | reporting a "crash". Use sys.exc_info() instead of sys.exc_type and sys.exc_value.
* Add optional 4th argument to count(), matching find() etc.Guido van Rossum1997-10-202-14/+28
| | | | | | Also change all occurrences of "x == None" to "x is None" (not that it matters much, these functions are all reimplemented in strop -- but count() is not).
* Patch by Charles G. Waldman to add optional user and passwordGuido van Rossum1997-10-201-1/+10
| | | | arguments to NNTP.__init__(), for nntp servers that need them.
* Remove .pyo files like .pyc files.Guido van Rossum1997-10-201-1/+1
|
* Added separate tests for {}.get().Guido van Rossum1997-10-201-0/+3
|
* Added tests of dict.get()Barry Warsaw1997-10-201-0/+6
|
* splitpasswd(): The parameter is named "user", not "host".Fred Drake1997-10-141-1/+1
|
* Open files in binary mode (Jack)Guido van Rossum1997-10-081-1/+1
|
* Use better timer on the macGuido van Rossum1997-10-081-1/+18
| | | | | Open files in binary mode (Jack)
* Allow open file as parameter (must be seekable) (Jack)Guido van Rossum1997-10-081-4/+10
|
* Change test for re.sub() involving g<...> to use a multi-characterGuido van Rossum1997-10-081-1/+1
| | | | | identifier. The previous re.py had a bug that wouldn't show up with single-char identifier...
* Checking in AMK's latest installement.Guido van Rossum1997-10-081-193/+0
|
* Use `...` around binary strings.Guido van Rossum1997-10-071-1/+1
|
* Remove this pathetic little module!Fred Drake1997-10-071-241/+0
|
* Temporary fix to valid_identifier().Guido van Rossum1997-10-071-8/+7
|
* Return the error code from most commands, rather than swallowing it.Guido van Rossum1997-10-071-16/+25
| | | | | Adapted the example (lying slightly about the string printed by login()).
* Fix join to support multiple arguments.Guido van Rossum1997-10-071-9/+12
| | | | (Why isn't this file identical to ntpath.py?)
* Add XXX note about wanting support for copy_reg.py...Guido van Rossum1997-10-071-0/+2
|
* Add Jeff Epler's interact() function. Note that it is broken.Guido van Rossum1997-10-071-0/+52
| | | | (It should probably be withdrawn :-( )
* Add optional arguments lo and hi to insort() and bisect(), to supportGuido van Rossum1997-10-071-4/+6
| | | | using arrays containing leading or trailing garbage.
* Reduced number of temporary names used at module scope. Use underscores inFred Drake1997-10-061-5/+4
| | | | front of temporary names in the module namespace.
* Reduced number of temporary names used at module scope. Use underscores inFred Drake1997-10-061-5/+3
| | | | front of temporary names in the module namespace.
* Don't do weird things with the "import parser"; just do it. Sheesh...Fred Drake1997-10-061-11/+11
|
* The usual (and some new modules).Guido van Rossum1997-10-0617-285/+1011
|
* UserDict.get(): New method to mirror built-in dictionaries' get()Barry Warsaw1997-10-061-0/+5
| | | | method.
* Move the __getitem__() definition from StandardException to Exception.Fred Drake1997-10-061-1/+3
| | | | | | | | | This allows stuff like this out of the box: try: ... except socket.error, (code, msg): ...
* New "re" regular expression support.Guido van Rossum1997-10-062-1145/+1575
| | | | | | The new re module was written by Andrew Kuchling and uses the pcre code in ../Modules/. The old re module has been renamed to re1, just in case you need it for comparison.
* Turns out whatsound.py and sndhdr.py were identical modules.Guido van Rossum1997-10-042-540/+2
| | | | | | Since there's also an imghdr.py file, I propose to make sndhdr.py the official one. For compatibility, whatsound.py imports * from sndhdr.py.
* 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
|