提交 eecd12bf authored 作者: abalkin's avatar abalkin

Initial version of the compatibility guide.

上级 69e23761
===================================
Compatibility with Python versions.
===================================
Theano is compatible with Python versions >= 2.4 including 3.x series.
This guide provides coding guidelines on how to maintain
comnpatibility.
Installation (2to3 and setup.py)
--------------------------------
Compatibility package (theano.compat)
-------------------------------------
Compatibility between 2.x and 3.x is implemented using six_, a Python
2 and 3 compatibility library by Benjamin Peterson. A copy of six_
library is included in theano.compat package, but it should not be
called directly. Instead, use symbols exposed at the package level.
Correct:
::
from theano.compat import b
Incorrect:
::
from theano.compat.six import b
::
from six import b
References
----------
.. _six: http://pythonhosted.org/six
.. _[What's new in Python 2.5]: http://docs.python.org/2/whatsnew/2.5.html
.. _[What's new in Python 2.6]: http://docs.python.org/2/whatsnew/2.5.html
.. _[What's new in Python 2.7]: http://docs.python.org/2/whatsnew/2.5.html
.. _[What's new in Python 3.0]: http://docs.python.org/2/whatsnew/3.0.html
.. _[What's new in Python 3.1]: http://docs.python.org/2/whatsnew/3.1.html
.. _[What's new in Python 3.2]: http://docs.python.org/2/whatsnew/3.2.html
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论