Guido van Rossum
0874f7fdaf
Tests for tokenize.py (Ka-Ping Yee)
1997-10-27 22:15:06 +00:00
Guido van Rossum
fefc922cef
New, fixed version with proper r"..." and R"..." support from Ka-Ping.
1997-10-27 21:17:24 +00:00
Guido van Rossum
3b631775b2
Redone (by Ka-Ping) using the new re module, and adding recognition
...
for r"..." raw strings. (And R"..." string support added by Guido.)
1997-10-27 20:44:15 +00:00
Guido van Rossum
9d37a4d332
Small wording change about global and local trace functions.
1997-10-27 19:57:20 +00:00
Guido van Rossum
036309b13e
This should hopefully finally clean up the remaining __del__ related
...
problems with this module, even if an instance of a derived class is
kept alive longer than the urllib module itself...
1997-10-27 18:56:19 +00:00
Guido van Rossum
af8d2bf4d8
Bugfix in match() -- the number of registers shouldn't be divided by two!
1997-10-27 18:17:19 +00:00
Guido van Rossum
e6eef4b4a3
Use __dict__.update(state) instead of for loop over state.items() and
...
call to setattr(). This changes semantics, following the change
already implemented in pickle.
Also reindented a few lines properly.
1997-10-26 17:00:25 +00:00
Fred Drake
040e565261
Ooops, found too more references to old conditions on floating point values.
1997-10-24 21:15:55 +00:00
Fred Drake
ae18e9fc1c
Removed obsolete discussion on _xdr helper module.
1997-10-24 21:14:36 +00:00
Guido van Rossum
31626bce66
re -> regex conversions by Sjoerd.
1997-10-24 14:46:16 +00:00
Guido van Rossum
f81e5b9c78
New module -- converts regex regular expressions to re style.
...
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).
1997-10-23 22:43:50 +00:00
Guido van Rossum
1fef181183
Although it's hard to be sure, I *think* this is a working conversion
...
from regex to re style regular expressions. This should make sgmllib
and htmllib threadsafe, so I can now create a threaded version of
webchecker...
1997-10-23 19:09:21 +00:00
Guido van Rossum
57a68e08f9
Remove redundant import regsub.
1997-10-23 17:50:10 +00:00
Guido van Rossum
2efa34ba9b
Daniel Larsson discovered another cut-n-paste bug in the Olimit story...
1997-10-23 17:43:11 +00:00
Guido van Rossum
9694fcab53
Convert all remaining *simple* cases of regex usage to re usage.
1997-10-22 21:00:49 +00:00
Guido van Rossum
426916e50e
Add pcre to the list of safe modules.
1997-10-22 20:56:32 +00:00
Guido van Rossum
f7a8b45d71
Remove outdated comments.
1997-10-22 20:54:50 +00:00
Guido van Rossum
12f86ade21
Removed some unneeded imports, moved others around.
1997-10-22 20:52:53 +00:00
Guido van Rossum
a8832b45e7
Removed unneeded imports of regex and regsub.
1997-10-22 20:50:37 +00:00
Guido van Rossum
acfb82a530
Use re instead of regex. Also remove bogus return statement from __init__().
1997-10-22 20:49:52 +00:00
Guido van Rossum
8566e474b4
Added pgrep() function, which is like grep/egrep/emgrep but uses Perl
...
syntax, by virtue of the new re module.
1997-10-22 20:44:58 +00:00
Guido van Rossum
b49144244c
Deleted this long-obsolete module
1997-10-22 16:29:53 +00:00
Guido van Rossum
24986204cf
Added "new" symbol defns for RE_ANSI_HEX and RE_NO_GNU_EXTENSIONS --
...
hopefully the last maintenance on this module, ever.
1997-10-22 16:28:53 +00:00
Guido van Rossum
d7dc2eb708
Put {} around \^ in sets to force latex2html to do the right thing...
1997-10-22 03:03:44 +00:00
Guido van Rossum
1f84449fd8
New CObject from Jim Fulton, adds PyCObject_FromVoidPtrAndDesc() and
...
PyCObject_GetDesc().
1997-10-21 19:48:35 +00:00
Guido van Rossum
16cb6f4612
Forgot to add .cxx and .cpp to the second case statement.
...
Thanks to Daniel Larsson.
1997-10-21 19:30:29 +00:00
Guido van Rossum
e85da651dd
Some patches to Lee Busby's fpectl mods that accidentally didn't make it
...
into 1.5a4.
1997-10-20 23:50:01 +00:00
Guido van Rossum
9476a78c1e
Remove "." or "" from front of sys.path (this bit me once).
1997-10-20 23:48:01 +00:00
Guido van Rossum
4e8ef5fcd3
Catch KeyboardInterrupt separately and propagate it, instead of
...
reporting a "crash".
Use sys.exc_info() instead of sys.exc_type and sys.exc_value.
1997-10-20 23:46:54 +00:00
Guido van Rossum
1510565cb5
Add optional 4th argument to count(), matching find() etc.
...
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).
1997-10-20 23:31:15 +00:00
Guido van Rossum
dd65975ac7
Patch by Charles G. Waldman to add optional user and password
...
arguments to NNTP.__init__(), for nntp servers that need them.
1997-10-20 23:29:44 +00:00
Guido van Rossum
4a2a621907
Write a str() function for class objects that returns
...
"modulename.classname" instead of returning the same as repr().
1997-10-20 23:26:11 +00:00
Guido van Rossum
ed1100f3b6
Don't use sscanf(s, "%x", &c) to parse \xX... escapes; hardcode it.
1997-10-20 23:24:07 +00:00
Guido van Rossum
f6a84db034
Add getintarg(), getlongarg(), getstrarg() to macros since these no
...
longer exist in the general headers.
1997-10-20 23:22:07 +00:00
Guido van Rossum
cb4d3032ae
Add proper (getattrfunc) cast in Pcre_Type.
1997-10-20 23:21:23 +00:00
Guido van Rossum
266033e89b
Change sharedmodules to lib-dynload.
...
### If you still have sharedmodules in your Modules/Setup file, remove it! ###
1997-10-20 23:20:32 +00:00
Guido van Rossum
7eecc246a7
Remove .pyo files like .pyc files.
1997-10-20 23:16:58 +00:00
Guido van Rossum
cf809d6e48
Rename sharedmodules to lib-dynload.
...
Treat .pyo files like .pyc files.
1997-10-20 23:16:32 +00:00
Guido van Rossum
304dd2defb
Switch around OPT assignments in Don Beaudry's patch for Olimit (his
...
code had the assignments switched around).
Also rename sharedmodules to lib-dynload.
1997-10-20 23:10:56 +00:00
Guido van Rossum
cbfcb17e96
AIX notes are simpler -- no need to enable sharedlibs with an edit.
1997-10-20 22:57:00 +00:00
Guido van Rossum
828a0bdb1d
count() now has a 4th parameter too. Also rephrased the docs for find
...
to use the same, better words to explain start/end.
1997-10-20 22:40:26 +00:00
Guido van Rossum
871cf161f1
Documented exc_info(); also updated exc_type and last_type docs.
1997-10-20 22:38:43 +00:00
Guido van Rossum
fb5cef1160
Added separate tests for {}.get().
1997-10-20 20:10:43 +00:00
Guido van Rossum
6fcfa72c63
Correct Barry's fix -- take care of {}.get(0).
1997-10-20 20:10:00 +00:00
Barry Warsaw
9b887c7911
Added tests of dict.get()
1997-10-20 17:34:43 +00:00
Barry Warsaw
320ac331d1
dict_get(): Fixed a couple of stupid mistakes which caused crashes.
...
Also got rid of some unnecessary code.
1997-10-20 17:26:25 +00:00
Fred Drake
9e63faaa66
Change Python-as-executable-script example to use "#! /usr/bin/env python"
...
since that's now the recommended way to do it.
In pickling discussion, change "code{pickle}" (not missing leading "\") to
"This" since the immediately preceeding sentence ended with the same text
(with the proper "\"). Fixes a formatting bug and an odd glitch in the
writing.
1997-10-15 14:37:24 +00:00
Fred Drake
654451dc54
splitpasswd(): The parameter is named "user", not "host".
1997-10-14 13:30:57 +00:00
Fred Drake
2950b2d881
Restore the \seealso formatting that got lost when I updated the math
...
module documentation.
1997-10-13 22:06:17 +00:00
Fred Drake
9dcc5a94c5
Add support for ctypedesc, cvardesc, seealso, seemodule, seetext.
...
This seems to take care of everything but tables and equations.
1997-10-13 22:04:17 +00:00