Re: [IronPython] Speed test

2006-04-20 Thread Dino Viehland
The speed improvements you're seeing here are likely the usage of our Reflect Optimizer for all C# methods now. This gives a huge speed improvement in the time it takes to call arbitrary C# code (previously we only optimized methods in IronPython, as the optimizer was not able to handle a large

Re: [IronPython] Speed test

2006-04-20 Thread JoeSox
ok, retested using beta6: C# previously referenced in this thread button4_Click() test: {.1875, .078125, .078125, .062500, .078125} sum = 0.484375 beats the previous beta5 sum of .608 IronPythonConsole test(file): {.03, .06, .05, .14, .05}* sum = .33 2nd run (new IronPythonConsole instance) {.17

Re: [IronPython] System.Windows.Serialization

2006-04-20 Thread Vamshi Raghu
Yay! The calc.xaml loads with Beta 6. I think the EID issue maybe something else altogether.Thanks!-VamshiOn 4/20/06, Martin Maly < [EMAIL PROTECTED]> wrote: The WinFX is still undergoing changes that often result in the tutorial not working. We are actually resolving all these incomp

Re: [IronPython] IronPython 1.0 Beta 6

2006-04-20 Thread Dino Viehland
Yeah, that's part of the FxCop cleanup - internally all of our methods should be named using the .NET naming guidelines, and we expose them out to Python via a PythonName attribute that gives it the name "append". Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.c

Re: [IronPython] IronPython 1.0 Beta 6

2006-04-20 Thread JoeSox
Ok, looks like its now .Append? lol :) On 4/20/06, JoeSox <[EMAIL PROTECTED]> wrote: > Dino, > > When I rebuild my project referencing beta6 dll I received > Error 6 'IronPython.Runtime.List' does not contain a definition for > 'append' > > > -- > Joseph __

Re: [IronPython] IronPython 1.0 Beta 6

2006-04-20 Thread JoeSox
Dino, When I rebuild my project referencing beta6 dll I received Error 6 'IronPython.Runtime.List' does not contain a definition for 'append' -- Joseph ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/

[IronPython] IronPython 1.0 Beta 6

2006-04-20 Thread Dino Viehland
Hello IronPython Community,   We have just released IronPython 1.0 Beta 6. This release focuses primarily on fixing bugs and improving compatibility with CPython.  Major cleanups includes supporting __metaclass__ at the module level, using __mro__ for new-style class method resolution, a

Re: [IronPython] Speed test

2006-04-20 Thread JoeSox
I completed one more IronPythonConsole.exe test. I added the below method to CNUDB.py === def test(self,thefile): time1=time.time() self.load_predicates_file(thefile) time2=time.time() print "-- test took",str(round(time2-time1,2)),'seconds. --\n' === The resul

Re: [IronPython] COM Interop / Dispose wierdness

2006-04-20 Thread Dino Viehland
Nope, no guaranteed order... The problem here is it could be a problem w/ the order of two unmanaged objects which are being "finalized" in some arbitrary order because the GC is cleaning them up. Another possibility that occurred to me is that there could be a violation of COM rules by WMF wh

Re: [IronPython] Speed test

2006-04-20 Thread JoeSox
It was late for me when I composed this last night. So some corrections are in order... > On 4/19/06, JoeSox <[EMAIL PROTECTED]> wrote: > > Results from IDLE 1.1.2 > > ran 5 times = {.03, .03, .03, .05, .03} seconds > > sum = .008 > > sum = .17 > > Results from Wing IDE 2.1 > > r

Re: [IronPython] Speed test

2006-04-20 Thread JoeSox
Ok, I had enough time to test this in IronPythonConsole.exe IronPython 1.0.2280 (Beta) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> import sys,time >>> sys.path.append('E:\\') >>> import CNUDB >>> file = 'E:\\machine_All.txt' >>> def test(thefile): ...

Re: [IronPython] COM Interop / Dispose wierdness

2006-04-20 Thread Dan Shechter
OK, I pretty much get what you're aiming for. You are saying that since there is no deterministic order for Finalization the COM object (which implements IWMMetaDataEditor) may be disposed of BEFORE my "Wrapper" Finalizer get's called. But shouldn't the order be enforced by someone (CLR that is) s

Re: [IronPython] Multiple-inheritance with builtin types

2006-04-20 Thread Dino Viehland
Thanks for the report. This is another issue we've already fixed for beta 6 - inheriting from a mix of new-style classes as well as old-style classes. This was part of a large cleanup around __metaclass__ defined at the module scope, support for __metaclass__ being a function, support for __mro

Re: [IronPython] System.Windows.Serialization

2006-04-20 Thread Martin Maly
The WinFX is still undergoing changes that often result in the tutorial not working. We are actually resolving all these incompatibilities right now to make sure that the tutorial released with Beta 6 works with the February CTP of WinFX. As for possible differences between Feb CTP of WinFX

[IronPython] Line counter/ stop interpretation

2006-04-20 Thread Stute, Detlef ALRT/EEG4
Hi, I'd like to use IP to run test sequences on a machine. My C# program will start a python file, which will do the tests. When the tests are running I'd like to update the program's desktop. So I'm looking for two features: - is it possible to get the current line counter from the python engine?

[IronPython] System.Windows.Serialization

2006-04-20 Thread Vamshi Raghu
Hello,Just wanted to let you know that LoadXaml in avalon.py in 1.0 Beta 5 imports System.Windows.Serialization, but this has been renamed from the Feb CTP of WinFX onwards to System.Windows.Markup.Had some trouble figuring it out! Still having trouble using LoadXaml though. It seems there is some

[IronPython] Multiple-inheritance with builtin types

2006-04-20 Thread Sanghyeon Seo
Example code: class CompatMixin: def __getattr__(self, attr): if attr == 'string': return self else: raise AttributeError, attr class CompatString(str, CompatMixin): pass s = CompatString('abc') print s print s.string s.error The intent is to prov