Re: [IronPython] Looping in IronPython - should it be linear?

2007-02-15 Thread Stanislas Pinte
regardless of versioning, I am trying to understand >> the >> mechanism. Thanks for any thoughts, and my apologies if this turns out to >> be a silly post. >> >> Sincerely, >> >> Steve Chadwick >> >> >> >> > --

[IronPython] API doc ref

2006-09-11 Thread Stanislas Pinte
thanks a lot for that documentation...A must-have!! Stan. -- - Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions http://www.ertmssolutions.com Rue de l'Autonomie, 1

Re: [IronPython] [ANN] IronPython 1.0 released today!

2006-09-06 Thread Stanislas Pinte
gt; > > Giles > -- ----- Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions http://www.ertmssolutions.com Rue de l'Autonomie, 1 Tel:+ 322 - 522.06.63 1070Bruxel

Re: [IronPython] [Simpy-users] RE: SimPy on IronPython timing test

2006-08-22 Thread Stanislas Pinte
d of range and post your results. > ___ > users mailing list > users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______ > users mailing list > users@lists.ironpython.com > http://lists.

Re: [IronPython] console startup time: 7s

2006-08-22 Thread Stanislas Pinte
r if its 1st or 20th time. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stanislas Pinte > Sent: Saturday, August 19, 2006 7:20 AM > To: Discussion of IronPython > Subject: [IronPython] console startup time: 7s > > I

Re: [IronPython] Code broken in RC2

2006-08-21 Thread Stanislas Pinte
(Exception)args.ExceptionObject), Style.Error); } Can anyone from the team confirm this? Thanks a lot, Stan. Stanislas Pinte a écrit : > Hello, > > I was using the Console class to get a more or less clean dump of > exceptions in my embedded scripting engine: > > DummyCons

[IronPython] engine.ImportSite(); broken in RC2

2006-08-21 Thread Stanislas Pinte
hello, could you please tell me what happened to engine.ImportSite();, and what should I change in my code to get same behaviour? thanks, Stan. -- - Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions

[IronPython] Code broken in RC2

2006-08-21 Thread Stanislas Pinte
value = stringBuilder.ToString(); stringBuilder = new StringBuilder(); return value; } } -- - Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions http://www.ertmssolutions.com

Re: [IronPython] [Simpy-users] RE: SimPy on IronPython timing test

2006-08-21 Thread Stanislas Pinte
y slower than CPython >> on this benchmark. >> >> Clearly, it is early days for IronPython (this was run under >> beta release 2) and its developers will surely still optimize >> its performance a lot. >> >> If Microsoft actually support IronPython, this will be an >&g

[IronPython] console startup time: 7s

2006-08-19 Thread Stanislas Pinte
040s [ironpython]> -- ----- Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions http://www.ertmssolutions.com Rue de l'Autonomie, 1 Tel:+ 322 - 522.06.63 1070Bruxelles

Re: [IronPython] profiling ipy apps

2006-08-19 Thread Stanislas Pinte
05 Team Suite? > > Thanks, > -arman > ___ > users mailing list > users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -- ----- Stanislas Pinte

Re: [IronPython] very strange dictionnary bug

2006-08-19 Thread Stanislas Pinte
gt; where both CPython and IronPython print 2 and 4 (there is a snapshot of keys > saved after the call to x.keys() and any modifications that don't alter the > size of the dictionary aren't caught). > > > IronPython prints > _

Re: [IronPython] very strange dictionnary bug

2006-08-18 Thread Stanislas Pinte
strange). > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stanislas Pinte > Sent: Friday, August 18, 2006 7:38 AM > To: Discussion of IronPython > Subject: Re: [IronPython] very strange dictionnary bug > > By the way, the env

Re: [IronPython] bug with str.encode() (diff with GNU python)

2006-08-18 Thread Stanislas Pinte
hat one too :). > > -Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stanislas Pinte > Sent: Friday, August 18, 2006 6:08 AM > To: Discussion of IronPython > Subject: Re: [IronPython] bug with str.encode() (diff with GNU python) > > mo

Re: [IronPython] very strange dictionnary bug

2006-08-18 Thread Stanislas Pinte
By the way, the environment in which the bug shows up is single-threaded, so I do not suspect any concurrent access problem. Stan. Stanislas Pinte a écrit : > Hello, > > We are just seeing a very strange bug in the following code: > > myDictionnary = {} > . > for key

[IronPython] very strange dictionnary bug

2006-08-18 Thread Stanislas Pinte
1, "two": 2, "three": 3} >>> a["one"] 1 >>> a.pop("one") 1 >>> a {'two': 2, 'three': 3} >>> a.keys() ['two', 'three'] >>> for k in a.keys(): .. print k .. t

Re: [IronPython] bug with str.encode() (diff with GNU python)

2006-08-18 Thread Stanislas Pinte
ction 4.9.2. > New in version 2.0. Changed in version 2.3: Support for 'xmlcharrefreplace' > and 'backslashreplace' and other error handling schemes added. Stanislas Pinte a écrit : > Hello, > > [sim-ironpython]> python > Python 2.4.2 (#67, Sep 28 20

[IronPython] bug with str.encode() (diff with GNU python)

2006-08-18 Thread Stanislas Pinte
Z [sim-ironpython]> ironpython/ipy.exe IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> "a".encode() Traceback (most recent call last): File , line 0, in ##86 TypeError: encode() takes at least 1 argument (0 given) >>&g

Re: [IronPython] expose some namespaces of own application

2006-08-16 Thread Stanislas Pinte
Dino Viehland a écrit : > FYI we're going to fix this in 1.0 RC2 which should be out this week. Damn cool. Thanks a lot. Stan. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stanislas Pinte > Sent: Wednesday, August 1

Re: [IronPython] expose some namespaces of own application

2006-08-16 Thread Stanislas Pinte
Dino Viehland a écrit : > This is actually a bug - ReflectedPackage.TryGetAttr is looking at all types, > not just exported types. I've opened CodePlex bug 2199 to track this. > > I've tentatively set it for 1.01 but we'll need to triage the bug properly to > decide what release it goes in. g

Re: [IronPython] expose some namespaces of own application

2006-08-16 Thread Stanislas Pinte
Stanislas Pinte a écrit : > Shri Borde a écrit : >> Could you use mark the types as internal and public depending on whether you >> wanted to prevent or allow access from IronPython? IronPython code will not >> be able to access types or methods marked as internal in your

Re: [IronPython] expose some namespaces of own application

2006-08-16 Thread Stanislas Pinte
> print test.abc > > You can do this w/o giving IronPython the reference to your assembly. Just > load the assembly, and from Python you can access the namespaces/types > directly off the assembly object. > > -Original Message- > From: [EMAIL PROTECTED] [mai

[IronPython] expose some namespaces of own application

2006-08-15 Thread Stanislas Pinte
Is this currently possible? I have the impression that it is an all-or-nothing situation...and I would like to avoid having to split my classes in several assemblies. Thanks for all input, Kind regards, Stan. -- --------- Stan

Re: [IronPython] who is using ironpython in projects ?

2006-04-21 Thread Stanislas Pinte
customers can write their own custom filtering/processing extensions. The product is in use today by several customers. Stanislas Pinte. -- - Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions

Re: [IronPython] Compatibility with .NET 1.1

2006-03-09 Thread Stanislas Pinte
Hi Todd, you may want to use PythonDotNet...still in 1.1, and working nicely. http://www.zope.org/Members/Brian/PythonNet/ Stan. Selon "Todd M. Chapman" <[EMAIL PROTECTED]>: > I'm doing quite a bit of work with Microsoft CRM. CRM is based on .NET 1.1 > and there's not much chance of that cha

Re: [IronPython] Bug in engine.LoadAssembly(...) -> PythonImportError

2006-02-26 Thread Stanislas Pinte
Selon Martin Maly <[EMAIL PROTECTED]>: > Your TestOther class is not public so IronPython can't access it, hence the > exception. > > Martin Indeed. Thanks for the help! Stan. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

Re: [IronPython] clr.AddRefernce* woes

2006-02-24 Thread Stanislas Pinte
Selon Dan Shechter <[EMAIL PROTECTED]>: > Perhaps I wasn't being clear: > I have been able to use your suggested workaround to load .NET "Core" > assemblies such as System.Xml etc. I am able to do that with the following code: (don't know if it is the recommended way) ClrModule.AddAssembly(Asse

Re: [IronPython] Question (Novice) on using Microsoft Excel via IronPython

2006-02-13 Thread Stanislas Pinte
> specific data in the Microsoft Excel file, preferably using the > most recent beta of Microsoft IronPython effectively 'exploiting' > its .Net capabilities. > > Concrete suggestions for or pointers to (similar) solutions are > appreciated. > > Sincerely yo

[IronPython] Bug in engine.LoadAssembly(...) -> PythonImportError

2006-02-10 Thread Stanislas Pinte
Hello, I have troubles importing classes defined in my own assembly: [Release]> ./TestImport.exe Unhandled Exception: IronPython.Runtime.PythonImportError: No module named Other at IronPython.Runtime.ReflectedMethodBase.Invoke(MethodBinding binding) .. at TestAccessOtherNamespace.Initiali

Re: [IronPython] Simpy working under IronPython1.0beta2

2006-01-31 Thread Stanislas Pinte
Selon Sanghyeon Seo <[EMAIL PROTECTED]>: > 2006/1/31, Stanislas Pinte <[EMAIL PROTECTED]>: > > Hello, > > > > I have the pleasure to say that a (quasi unmodified) version of simpy passed > > all its unit tests running IronPython: > > Wow. >

Re: [IronPython] [Simpy-users] Simpy working under IronPython1.0beta2

2006-01-31 Thread Stanislas Pinte
way to do it however...(like setting the PYTHONPATH to PYTHON24/Libs/) haven't tried it though. Stan. > > Klaus Müller > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Stanislas Pinte >

[IronPython] Simpy working under IronPython1.0beta2

2006-01-30 Thread Stanislas Pinte
Hello, I have the pleasure to say that a (quasi unmodified) version of simpy passed all its unit tests running IronPython: [SimPy-1.6.1]> ../IronPython-1.0-Beta2/IronPythonConsole.exe SimPy/testSimPy.py

[IronPython] Simpy not working on IronPython because of type(generator) problem

2005-12-21 Thread Stanislas Pinte
Hello, Internally we use a wonderful simulation framework written in python: http://simpy.sourceforge.net/ I cannot make it work on python because it rests on generators... the main loop of simpy uses type(myFunction) == types.GeneratorType) to determine if it is a generator or not... > if no

Re: [IronPython] [Simpy-users] Simpy under IronPython 0.96

2005-12-16 Thread Stanislas Pinte
Selon Klaus Muller <[EMAIL PROTECTED]>: > Good work! What type does IronPython actually return for a generator? a generated type... not looking like a generator... Stan. > > Klaus Müller > > > -Original Message----- > > From: Stanislas Pinte [mail

Re: [IronPython] [Simpy-users] Simpy under IronPython 0.96

2005-12-16 Thread Stanislas Pinte
Selon Klaus Muller <[EMAIL PROTECTED]>: > Stan, > Your assertion must be: > assert type(gentest()) == types.GeneratorType, > > _not_: > assert type(gentest) == types.GeneratorType. > > The call of a generator function generates a generator object. You are right, sorry!! there we are: [bin]> p

Re: [IronPython] [Simpy-users] Simpy under IronPython 0.96

2005-12-16 Thread Stanislas Pinte
honConsole.exe test.py > > Could you check what e.g. the type of a generator is? > > Klaus Müller > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Stanislas Pinte > > Sent: Friday, Decembe

Re: [IronPython] [Simpy-users] Simpy under IronPython 0.96

2005-12-16 Thread Stanislas Pinte
I think I have the first idea why the tests are failing: [bin]> ./IronPythonConsole.exe IronPython 0.9.6 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> def testgenerator(): .. for i in range(0,10): .. yield i .. >>> testgenerator >>> type(testge

[IronPython] Simpy under IronPython 0.96

2005-12-16 Thread Stanislas Pinte
Hello, I am trying to start unit testing Simpy under IronPython, and make a state of current affairs... 1: I had to comment out all the from __future__ import statements. 2: I had to copy the following standard CPython modules in IronPythonConsole.exe directory: [bin]> ls *.py bisect.py* n

Re: [IronPython] Stack Traces in IronPython 0.96 do not contain python stack trace

2005-12-15 Thread Stanislas Pinte
Object sender, EventArgs e) in > D:\Ip\IronPython\Presentations\Editor\Editor.cs:line 45 > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stanislas Pinte > Sent: Wednesday, December 14, 2005 1:17 AM > To: users@lists.ironpython.com >

Re: [IronPython] Live usage?

2005-12-15 Thread Stanislas Pinte
Ryan Davis wrote: > Hello, > > I'm considering adding some scripting to one of my applications using > the IronPython engine, we are integrating it today in our product. (http://www.ertmssolutions.com/sniffer.html). By the way, thanks a lot to the IP team! Stan. and I before I do, I know the

[IronPython] Get the line number for a PythonException

2005-12-14 Thread Stanislas Pinte
Hello, I am using IronPython as embedded scripting engine. I am invoking python functions defined in a script like that: engine.AddToPath(Path.GetDirectoryName(scriptPath)); engine.Import(moduleName); f = engine.Evaluate(moduleName + "." + functionName) as Function; .. later: .. f.Call(...) --

[IronPython] Stack Traces in IronPython 0.96 do not contain python stack trace

2005-12-14 Thread Stanislas Pinte
hello, Has anyone an idea of the following: I have a script: > #ScriptingLoopTest python code > > def init_session(settings, fileNamePrefix): > pass > > def handle_message(message): > passmmm and I use IronPython 0.96 as embedded scripting engine. private PythonEngine engine = new Python

Re: [IronPython] IronPython IDE

2005-12-09 Thread Stanislas Pinte
sts.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -- - Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions http://www.ertmssolutions.com Rue de l'Autonomie, 1

Re: [IronPython] Next release question. [WAS: Re: Debugging]

2005-12-08 Thread Stanislas Pinte
oming release. > > Martin > > -- --------- Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions http://www.ertmssolutions.com Rue de l'Autonomie, 1 Tel:+ 322 - 522.06.63 1070Brux

[IronPython] Next release question. [WAS: Re: Debugging]

2005-12-07 Thread Stanislas Pinte
Martin Maly wrote: > Jacques, thank you for more details about the issues you are having with > IronPython, > > The reason you see the 'report an error to MS' dialog is our change in > exception handling that I described earlier. We are going to fix it for > the next release and display the excep

[IronPython] sys.path.append("c:/Python24/Lib") throw SyntaxError

2005-12-06 Thread Stanislas Pinte
ntaxError: unexpected token bad character '“' at :1 >>> -- --------- Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solutions http://www.ertmssolutions.com Rue de l'Autonomie, 1

[IronPython] Solved: Re: PythonEngine bug

2005-12-06 Thread Stanislas Pinte
Hello, my apologies for the false warning: actually, engine.AddToPath(Environment.CurrentDirectory); will add the directory of the assembly we are running, not the current directory. I don't know if it is the expected behavior or not. Thanks, Stan. Quoting Stanislas Pinte &l

Re: [IronPython] PythonEngine bug

2005-12-02 Thread Stanislas Pinte
Hello, my apologies for the false warning: actually, engine.AddToPath(Environment.CurrentDirectory); will add the directory of the assembly we are running, not the current directory. I don't know if it is the expected behavior or not. Thanks, Stan. Quoting Stanislas Pinte &l

[IronPython] PythonEngine bug

2005-12-02 Thread Stanislas Pinte
hello, I am having problems importing modules in the PythonEngine: PythonEngine engine = new PythonEngine(); engine.AddToPath(Environment.CurrentDirectory); engine.Import("hop"); Function inc = engine.Evaluate("hop.increment") as Function; whith hop.py being in the current directory, I get: 1)

[IronPython] IronPython HTML documentation

2005-12-01 Thread Stanislas Pinte
hello, It would be very nice to have an HTML documentation of IronPython's engine classes. Has anyone done that? Thanks a lot, Stan. -- - Stanislas Pinte e-mail: [EMAIL PROTECTED] ERTMS Solu