内容简介:Cython 0.27 发布了。准确说Cython是单独的一门语言,专门用来写在Python里面import用的扩展库。实际上Cython的语法基本上跟Python一致,而 Cython有专门的“编译器”先将 Cython代码转变成C(自动加入...
Cython 0.27 发布了。准确说Cython是单独的一门语言,专门用来写在 Python 里面import用的扩展库。实际上Cython的语法基本上跟Python一致,而 Cython有专门的“编译器”先将 Cython代码转变成C(自动加入了一大堆的C-Python API),然后使用C编译器编译出最终的Python可调用的模块。
新特性:
Extension module initialisation follows PEP 489 in CPython 3.5+, which resolves several differences with regard to normal Python modules.
Asynchronous generators (PEP 525) and asynchronous comprehensions (PEP 530) have been implemented.
Variable annotations are now parsed according to PEP 526.
……
bug 修复:
Extension types that were cimported from other Cython modules could disagree about the order of fused cdef methods in their call table.
The exception state handling in generators and coroutines could lead to exceptions in the caller being lost if an exception was raised and handled inside of the coroutine when yielding. (Github issue #1731)
Loops over
range(enum)
were not converted into C for-loops.……
本次更新内容较多,请查看更新日志。
下载地址:
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- 嵌入式C语言自我修养(01):Linux 内核中的 C 语言语法扩展
- 我应该使用新的Haskell语言扩展来支持旧的吗?
- Qt Creator 4.9即将支持扩展语言服务器协议
- Arquillian Core 1.4.0.Final 发布,扩展表达式语言
- 扩展LLVM的Checked C使C语言的空间内存更安全
- Cilium 1.3:支持Envoy、Cassandra和Memcached的Go语言扩展
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
The Golden Ticket
Lance Fortnow / Princeton University Press / 2013-3-31 / USD 26.95
The P-NP problem is the most important open problem in computer science, if not all of mathematics. The Golden Ticket provides a nontechnical introduction to P-NP, its rich history, and its algorithmi......一起来看看 《The Golden Ticket》 这本书的介绍吧!