Re: [Tutor] Alternative File I/O for Tuples (fwd)
by Kent Johnson other posts by this author
Jun 29 2005 11:10AM messages near this date
Re: [Tutor] Alternative File I/O for Tuples (fwd)
|
Re: [Tutor] Alternative File I/O for Tuples (fwd)
Don Parris wrote:
> ### playing with wrapfunc (all other args are the same) ###
> wrapfunc=lambda x:wrap_onspace(str(rows), x))
>
> also
> wrapfunc=lambda x:str(wrap_onspace(rows, x)))
This is way off base. wrap_onspace takes two arguments - the string to wrap, and the width t
o wrap to. You are passing it two arguments - the tuple of tuples to print, and the string t
o wrap.
>
> both generate the same error:
> Traceback (most recent call last):
> File "ekklesia.py", line 9, in ?
> from ekklesia_db import * #Comment out this line if MySQL not
> installed. File "/home/donp/python/ekklesia/ekklesia_db.py", line 64
> mbrPhone.close()
> ^
> SyntaxError: invalid syntax
I can't do anything with this without more context - a few lines of code before the line wit
h the error at least.
Kent
_______________________________________________
Tutor maillist - Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Danny Yoo
Kent Johnson
Don Parris
Don Parris
Kent Johnson
Don Parris
Kent Johnson
Don Parris
Kent Johnson
Don Parris
Kent Johnson
Don Parris
|