Discussion:
Cython 0.21.1 released
Stefan Behnel
2014-10-18 14:10:56 UTC
Permalink
Hi everyone,

I uploaded Cython 0.21.1. It adds a few minor new features and some bug
fixes and corrections.

Downloads:

https://pypi.python.org/pypi/Cython/0.21.1

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

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

Changelog:

https://github.com/cython/cython/blob/862b7869ac95e786475fcf8ac216a7c0c3378dc2/CHANGES.rst

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

Stefan


Features added
--------------

* New ``cythonize`` option ``-a`` to generate the annotated HTML source
view.

* Missing C-API declarations in ``cpython.unicode`` were added.

* Passing ``language='c++'`` into cythonize() globally enables C++ mode for
all modules that were not passed as Extension objects (i.e. only source
files and file patterns).

* ``Py_hash_t`` is a known type (used in CPython for hash values).

* ``PySlice_*()`` C-API functions are available from the ``cpython.slice``
module.

* Allow arrays of C++ classes.

Bugs fixed
----------

* Reference leak for non-simple Python expressions in boolean and/or
expressions.

* To fix a name collision and to reflect availability on host platforms,
standard C declarations [ clock(), time(), struct tm and tm* functions ]
were moved from posix/time.pxd to a new libc/time.pxd. Patch by Charles
Blake.

* Rerunning unmodified modules in IPython's cython support failed.
Patch by Matthias Bussonier.

* Casting C++ ``std::string`` to Python byte strings failed when
auto-decoding was enabled.

* Fatal exceptions in global module init code could lead to crashes
if the already created module was used later on (e.g. through a
stale reference in sys.modules or elsewhere).

* ``cythonize.py`` script was not installed on MS-Windows.

Other changes
-------------

* Compilation no longer fails hard when unknown compilation options are
passed. Instead, it raises a warning and ignores them (as it did
silently before 0.21). This will be changed back to an error in a
future release.
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Martin Bammer
2014-10-20 04:57:14 UTC
Permalink
When I try to execute a file (without compiling) which contains:

@cython.returns(cython.unicode)

It will fail with an error that unicode is not defined in module cython.
But compiling the source file and executing the compiled file succeeds.
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...