[Tutor] creating the equivalent of string.strip()

Kent Johnson kent37 at tds.net
Tue Oct 2 12:48:13 CEST 2007


Christopher Spears 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.

The source for the portion of Python written in C is not installed with 
the regular Python installer on Mac or Windows (don't know about Linux). 
You can download it here - get the "Python 2.5.1 compressed source tarball":
http://www.python.org/download/

Kent


More information about the Tutor mailing list