Commit d810e8b2 authored by Robert Bradshaw's avatar Robert Bradshaw

Support __version__ attribute in pure compiled mode.

parent 3e8fe971
......@@ -2413,6 +2413,9 @@ class TransformBuiltinMethods(EnvTransform):
if attribute:
if attribute == u'compiled':
node = ExprNodes.BoolNode(node.pos, value=True)
if attribute == u'__version__':
import Cython
node = ExprNodes.StringNode(node.pos, value=EncodedString(Cython.__version__))
elif attribute == u'NULL':
node = ExprNodes.NullNode(node.pos)
elif attribute in (u'set', u'frozenset'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment