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" <trinderj...@dsl.pipex.com <mailto:trinderj...@dsl.pipex.com>> wrote:
If I try to compile a .pyc file doing the following, I get:

>>> import py_compile as p
>>> p.compile('dummy.py')
Traceback (most recent call last):
  File "<string>", line 1, in <module>
File "D:\Programming\IronPython 2.7\Lib\py_compile.py", line 126, in compile
    marshal.dump(codeobject, fc)
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.
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to