[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] TeacherTool.py Help debugging



Jim is correct.  Teachertool was written for Python 2.x, while it sound
like you are running Python 1.5.2.

jeff elkner
yorktown high school
arlington, va

On Mon, 2003-01-06 at 16:38, Jim Thomas wrote:
> David Trask wrote:
> > 
> > Hi,
> > 
> > I copied the TeacherTool.py script from the Yorktown High LUG site
> > http://yhslug.tux.org/projects.php3
> > 
> > When I tried to run it I got the following error......can anyone
> > straighten me out?
> > 
> > [root server root]# python TeacherTool.py
> >   File "TeacherTool.py", line 198
> >     names += "\n"+x
> >            ^
> > SyntaxError: invalid syntax
> 
> 
> Hi David,
> 
> I'm no Python expert, but I've seen this one before.  I'm hoping someone
> will step in and correct me if I'm wrong.
> 
> The "x+=y" operation means "x=x+y" but it is relatively new to Python. 
> You have two options:  upgrade to a newer release of Python, or change
> the Python code:
> 
> names = names+"\n"+x
> 
> I'm not positive that what I've suggested will work.
> 
> -- 
> Jim Thomas            Principal Applications Engineer  Bittware, Inc
> jthomas bittware com  http://www.bittware.com          (703) 779-7770
> The sooner you get behind, the more time you'll have to catch up
> 
> 
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN redhat com
> https://listman.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]