[Newbie Problems] AttributeError from CGI script?

Tim Peters tim_one at email.msn.com
Sun Jan 30 18:25:41 EST 2000


[David Fisher]
> ...
> Along with most/all of the other functions in string.py, it is
> replaced at the end of the module by another function named replace
> from the strop module, which is written in C.  Now why this is done
> is a complete mystery to me.

Hysterical raisins:  originally, string.py was "it", and there was no strop
module.  What's there today was a way to replace the important string
functions w/ much faster C versions, without breaking any old code.  The
string.py functions also serve as a kind of reference implementation for the
curious, or for an initial port to a weird machine.

those-who-don't-remember-the-past-are-doomed-to-
    be-confused-by-its-ripples-ly y'rs  - tim






More information about the Python-list mailing list