Re: [Cython] Cython 3.0 alpha 4 released

2020-05-06 Thread Jakub Wilk
Hi Stefan! Could you push the 3.0a4 tag to GitHub? -- Jakub Wilk ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] can we deprecate for-from loops?

2015-10-15 Thread Jakub Wilk
builtin_range, __pyx_tuple_, NULL); ... ... (The problem goes away if cdef the iteration variables, which I should do anyway, so it's not a big deal for me.) -- Jakub Wilk def for_from(): for i from 0 <= i < 10: for j from 0 <= j < 10: print(i

Re: [Cython] DEF converts byte strings to unicode

2015-09-12 Thread Jakub Wilk
the documentation[0]. You might want to fix them, or add appropriate warnings. [0] $ grep -r "DEF.*=.*['\"]" docs/ docs/src/reference/language_basics.rst:DEF FavouriteFood = "spam" docs/src/userguide/language_basics.rst:DEF Favouri

Re: [Cython] DEF converts byte strings to unicode

2015-09-12 Thread Jakub Wilk
I think something is still not quite right in Cython 0.23.2. Consider this code: DEF FOO = 'foo' print type('foo') print type(FOO) In Python 3, I get: -- Jakub Wilk ___ cython-devel mailing list cython-devel@python.org htt

[Cython] array->memoryview typecast causes compiler crash in AnalyseExpressionsTransform

2015-09-02 Thread Jakub Wilk
tension], include_path=cython_include_dirs, quiet=quiet) File "/home/jwilk/.local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 877, in cythonize cythonize_one(*args) File "/home/jwilk/.local/lib/python2.7/site-packages/Cython/Build/Dependenci

[Cython] DEF converts byte strings to unicode

2015-08-30 Thread Jakub Wilk
DEF silently converts byte strings to Unicode strings: $ cat testcase.pyx DEF ABYTE = b'a' print type(ABYTE) $ python --version Python 2.7.10 $ python -c 'import pyximport as p; p.install(); import testcase' Tested with Cython 0.

[Cython] Compiler crash in MarkOverflowingArithmetic

2015-08-30 Thread Jakub Wilk
(value, 0) ValueError: invalid literal for int() with base 0: '2166136261L' -- Jakub Wilk DEF X = 0x811C9DC5 cdef void f(): cdef unsigned int x = X ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Cython 0.23: long + int == int

2015-08-20 Thread Jakub Wilk
is not entirely correct, but does it pose any problems in practice? It broke my test suite, which is how I noticed; but yeah, I don't think it's a big deal. -- Jakub Wilk ___ cython-devel mailing list cython-devel@python.org https://mail.py

[Cython] Cython 0.23: long + int == int

2015-08-15 Thread Jakub Wilk
be a long. This works correctly in Python 2.7: $ python2.7 -c 'import pyximport as p; p.install(); import testlong; print type(testlong.f(42))' It also worked correctly in Cython 0.22.1 + Python 2.6. -- Jakub Wilk ___ cython-devel mailing lis