[Tutor] Abt strings

Jeff Shannon jeff@ccvcorp.com
Fri, 03 May 2002 11:01:09 -0700


wonderer@pakistanmail.com wrote:

> Hi all
> i m fairly new to python and it is driving me crazy.
> I have a simple problem but i m unable to sort it out
> My problem is like this.
> I m using a function which takes a string argument and i usually pass it the
> string in " " notation.
> the problem is if i run this program once in a session the string is passed
> and i get the results.
> but if i call this function second time it gives message like
> TypeError :this function requires a string with no null characters not a str

Please post both the full function that you're using, and the exact exception
traceback that you get.  I can't imagine why it would be failing the second
time, unless you're doing something very odd, so we'll need to see exactly what
you're doing in order to help.   :)

Jeff Shannon
Technician/Programmer
Credit International