[Cython] Cython 0.18 released

Stefan Behnel stefan_ml at behnel.de
Tue Jan 29 07:32:17 CET 2013


Hi all,

Cython 0.18 is out of the door. This is a feature release that adds some
long requested language features (const!), better Python compatibility and
optimisations.

You can get it from here:

http://cython.org/release/Cython-0.18.tar.gz

http://cython.org/release/Cython-0.18.zip

Release notes: https://github.com/cython/cython/blob/0.18/CHANGES.rst

Documentation: http://docs.cython.org/


The major new features are:

* A new directive ``overflowcheck`` which raises an OverflowException
  when arithmetic with C ints overflows.  This has a modest performance
  penalty, but is much faster than using Python ints.

* C ``const`` declarations are supported in the language.

* Calls to nested Python functions are resolved at compile time.

* Type inference works across nested functions.

* ``py_bytes_string.decode(...)`` is optimised.

* Named Unicode escapes ("\N{...}") are supported.

* Python functions/classes provide the special attribute "__qualname__"
  as defined by PEP 3155.


Have fun,

Stefan


More information about the cython-devel mailing list