[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)
TrinderJohn at dsl.pipex.com
Mon Jul 21 14:32:56 CEST 2014
What do you mean 'save off assemblies'? I looked at 'ipy -h' as you
suggested but couldn't find anything of ehlp. I tried 'ipy -O file.py'
but no optimised file (file.pyo) was generated.
Thanks for the response btw.
[Re] IronPython doesn't support pyc files. There is a way to save off
assemblies, if you run ipy with -h it should tell you how.
On Jul 21, 2014 2:36 AM, "John Trinder" <TrinderJohn at dsl.pipex.com
<mailto:TrinderJohn at dsl.pipex.com>> wrote:
If I try to compile a .pyc file doing the following, I get:
>>> import py_compile as p
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Programming\IronPython 2.7\Lib\py_compile.py", line 126, in
ValueError: unmarshallable object
where 'dummy.py' is a simple test file consisting of:
a = 1
I seem to have noticed that whenever files are imported in a session
that no .pyc files are automatically generated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users