ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-tutor
python-tutor
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved