discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Gnu Radio architecture, etc


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Gnu Radio architecture, etc
Date: Fri, 30 Dec 2011 15:18:45 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0

> The move to Python 3.0 is going to be significant, and we probably
> don't want to support both.
>

FWIW, you can write code for python 3.0 new standards that work on 2.6
and 2.7 (not 2.5). That is, 2.6 and 2.7, for the most part have a
superset of the language.

The issues I mostly ran into were:
1) use the print function, not the print statement
2) use the except Exception as ex: style
3) treat file IO as byte vectors, not strings

Then your code will happy be interpreted by 2.6->3.0. Its a real pain to
test it though. Good thing we have to wait on all those other
dependencies to catch up first.

-Josh



reply via email to

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