[Tutor] Utility functions - was: Best way to strip string string padded with nulls

Patrick K. O'Brien pobrien@orbtech.com
Wed, 6 Jun 2001 17:24:10 -0500


I think my question might not have been clear enough. I was wondering where
to put these functions on my local machine. For example, should I create a
file like utility.py and import that file into my other programs so I can
make use of these little utility functions, like my stripnull()? Does that
make sense? What do the rest of you do?

BTW, the reference you gave is an excellent resource that I've been checking
out whenever I need to do something new. The url is
http://aspn.activestate.com/ASPN/Python/Cookbook/ and there are lots of
interesting code examples. I may just take your suggestion and post my
little function there. Thanks.

---
Patrick K. O'Brien
Orbtech
"I am, therefore I think."

-----Original Message-----
From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
sill@optonline.net
Sent: Wednesday, June 06, 2001 5:02 PM
To: Python Tutor
Subject: Re: [Tutor] Utility functions - was: Best way to strip string
string padded with nulls

ActiveState python cookbook, I don't have url on hand so google for it.

--
Shine on you crazy diamond
        - Roger

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor