[Ironpython-users] Why is IP 3X slower than python 2.7?

2015-08-24 Thread John Trinder
I've been doing some work with python 2.7 having digressed from IronPython to which I shall be returning. The thing I notice most is that python 2.7 is roughly 3X faster at executing than IP. Why is this? I know python27 compiles scripts into 'C' code => .pyc files and that IP does not do thi

[Ironpython-users] How to direct print output to the Console in a windows standalone?

2014-11-16 Thread John Trinder
Hi, I didn't know whether this is the correct site for help from the IP community but here goes. I have a DLL written in C# that opens a Console window inside a Windows app. I am utilizing this for use with IronPython when creating a Windows app as a standalone that needs the Console window a

[Ironpython-users] problem incorporating namespace into Xaml

2014-07-24 Thread John Trinder
I'm new to FePy and after doing a fair bit of studying am embarking on transcoding a C# project to FePy. I'm encountering a problem incorporating a module that defines a subclass of Canvas and then trying to utilize this custom canvas in the Xaml code. My skeleton files/modules and contents ar

[Ironpython-users] couple of code completion suggestions

2014-07-23 Thread John Trinder
When doing: from Foo import foo2 (assuming for eg foo2 is a class) and then going on to do: a = foo2() it would be nice if intellisense could offer suggestions as I am typing out foo2 In the same vein, when doing: varname = 1 and then doing a = varname + etc it would be nice if intellis

[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread John Trinder
Thanks for your help anyway. Saves me time trying to manually compile .pyc files when they aren't available :( ___ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users

[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread John Trinder
Nope - nothing under -X remotely like it! In fact I can't see any options for saving anything. [Re] Should be an option -X:SaveAssemblies or something like that. IronPython doesn't support pyo files either. Both pyc and pyo files require support for Python bytecode, which IronPython does not h

[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread John Trinder
rt 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" <mailto:trinderj...@dsl.pipex.com>> wrote: If I try to compile a .pyc file doing the following, I get: >>> import py_compile as p

[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread John Trinder
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 "", line 1, in File "D:\Programming\IronPython 2.7\Lib\py_compile.py", line 126, in compile marshal.dump(codeobject, fc) ValueError: