On 12/29/06, Christian Magnusson <[EMAIL PROTECTED]> wrote:
>
> Hi all python gurus... :)
>
> Installing module/ownet/python with python2.2 give this warning... The
> same warning goes for module/swig/python/..  I guess it's not any major
> problem that __init__.pyc isn't created, but is it possible to fix this
> warning?
>

>   File "usr/lib/python2.2/site-packages/ownet/__init__.py", line 336
>     yield entry
>               ^
> SyntaxError: invalid syntax
> skipping byte-compilation

"Note: In Python 2.2, the yield statement is only allowed when the
generators feature has been enabled. It will always be enabled in
Python 2.3. This __future__ import statement can be used to enable the
feature:

from __future__ import generators"

http://docs.python.org/ref/yield.html

-Darryl

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to