[Tutor] creating the equivalent of string.strip()
Alan Gauld
alan.gauld at btinternet.com
Tue Oct 2 10:22:40 CEST 2007
"Christopher Spears" <cspears2002 at yahoo.com> wrote
>I was looking for the source code for the strip
> functions at python.org. I didn't find anything. Do
> you or someone else know where the source code is
> posted? I tried to find python on my workstation, but
> I'm not sure where the sys admin installed it.
Which OS?
Windows its likely to be C:\python25 or similar
On Linux the libraries will be in a different place to
the executable...
On a Mac see a recent thread...
The source for strip is will be in C rather than Python
because the string code is part of the built-in capabilities.
HTH,
Alan G.
More information about the Tutor
mailing list