emacs-devel
[Top][All Lists]
Advanced

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

Re: Dynamic loading progress


From: Davis Herring
Subject: Re: Dynamic loading progress
Date: Fri, 13 Feb 2015 17:49:13 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110717 Lanikai/3.1.11

> $ ./tests.py
>   File "./tests.py", line 47
>     print ""
>            ^
> SyntaxError: invalid syntax
[...]
> So I'm assuming this is a python 2/3 incompatibility; is there a simple
> way to accomodate both?

print("") means the same thing in each.  For more complicated cases, one
can write "from __future__ import print_function" to make Python >=2.6
act like Python 3.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]