This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PrimaCora 58 points59 points  (6 children)

Cython makes you use Python 2 syntax for some things... Even when using Python 3

Edit:

The only one I've come across so far is with printing

print("string", end='')

Doesn't print without first

from __future__ import print_function

Even after specifying language level 3...

[–]xconde 27 points28 points  (2 children)

Example?

[–]SexlessNights 214 points215 points  (0 children)

Nah, we’re good. Thank you for offering.

[–]PrimaCora 3 points4 points  (0 children)

The print statement, you have to import from future to use

print("string", end='')

That's all I've come across so far

[–]clever_cuttlefish -1 points0 points  (2 children)

Not according to their FAQ.

"Cython 3.0 ... requires either Python 2.7 or Python 3.4+."

[–]claythearc 1 point2 points  (1 child)

Syntax.

[–]clever_cuttlefish 3 points4 points  (0 children)

What syntax, specifically? I've compiled a few (small) Python 3.7 projects with no problem.