cython/cython

Always provide frame for module init function

Open

#536 建立於 2016年7月27日

在 GitHub 查看
 (0 留言) (1 反應) (0 負責人)Python (8,663 star) (1,517 fork)batch import
featurehelp wanted

描述

The namedtuple implementation accesses to the caller's frame to find the module that should define the class (for pickling). Cython does not provide frames by default for performance reasons. Performance is not an issue for the module init function, though, so always providing a frame at module init time would enable some use cases without any real drawbacks.

貢獻者指南