Python syntax question
Daniel
daniel.watrous at gmail.com
Wed Oct 8 15:11:20 EDT 2008
On Oct 8, 12:07 pm, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> On Wed, 08 Oct 2008 11:02:49 -0700, Daniel wrote:
> > Here is one error I get when I try to import it:
>
> >>>> import Rpyc
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File "C:\Python25\lib\site-packages\Rpyc\__init__.py", line 7, in
> > <module>
> > from Rpyc.Lib import rpyc_excepthook
> > File "C:\Python25\lib\site-packages\Rpyc\Lib.py", line 65
> > print("======= Remote traceback =======", file=stderr)
> > ^
> > SyntaxError: invalid syntax
>
> > The little carrot points to the equal sign ('=') in 'file=stderr'
>
> > What's the syntax problem?
>
> That's Python 3.0 syntax where ``print`` is not a keyword anymore but a
> function. Won't work with Python 2.5.
>
> Ciao,
> Marc 'BlackJack' Rintsch
Thanks! With that I was able to find a solution.
More information about the Python-list
mailing list