[Cython] IPython with Cython support on Android

2015-01-27 Thread Apps Embedded
Hi,

We have developped an android app which makes it possible to use the
IPython shell through Android.

https://play.google.com/store/apps/details?id=com.appsopensource.labpy
https://play.google.com/store/apps/details?id=com.appsopensource.labpypremium

We decided then to add the Cython extension to speed up script execution
through the notebook for instance.

Our app bundle is covered by the Gnu GPL v3 licence.
Cython is covered by the Apache Licence version 2.0 which is compatible
with the Gnu GPL v3 licence.

Our question concerns the Pyrex licence on which Cython is based. It is on
OSI approved licence.

>From your point of view, is the Pyrex licence GPL v3 compatible ?

Thanks for your help.

Apps Embedded team.
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


[Cython] bug in typed memoryviews (memoryviewslice)

2015-01-27 Thread Richard Hansen
Hi all,

If I create foo.pyx with the following contents:

cpdef object foo():
cdef unsigned char[:] s = "012345"
return s

I notice the following behavior:

$ python -c '
import foo
m=foo.foo()
print repr(memoryview(m.base).tobytes())
print repr(memoryview(m).tobytes())
'
'012345'
'123450'

Notice how the bytes are printed in the wrong order unless I use the
original buffer object via the typed memoryview object's base attribute.

-Richard
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] IPython with Cython support on Android

2015-01-27 Thread William Stein
On Tue, Jan 27, 2015 at 6:12 AM, Apps Embedded  wrote:
> Hi,
>
> We have developped an android app which makes it possible to use the IPython
> shell through Android.
>
> https://play.google.com/store/apps/details?id=com.appsopensource.labpy
> https://play.google.com/store/apps/details?id=com.appsopensource.labpypremium
>
> We decided then to add the Cython extension to speed up script execution
> through the notebook for instance.
>
> Our app bundle is covered by the Gnu GPL v3 licence.
> Cython is covered by the Apache Licence version 2.0 which is compatible with
> the Gnu GPL v3 licence.
>
> Our question concerns the Pyrex licence on which Cython is based. It is on
> OSI approved licence.

Can you provide a link or copy of precisely what you mean by "the
Pyrex licence on which Cython is based"?

7 years ago, when I forked Pyrex to create SageX, which I renamed
"Cython" a little later, I think I remember the official Pyrex license
being I think "do anything you want with this".   That would be the
relevant license for this question, not the license Pyrex might have
today.That said, my memory of what happened with licensing 7 years
ago is admittedly hazy.

William

>
> From your point of view, is the Pyrex licence GPL v3 compatible ?
>
> Thanks for your help.
>
> Apps Embedded team.
>
> ___
> cython-devel mailing list
> cython-devel@python.org
> https://mail.python.org/mailman/listinfo/cython-devel
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel