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
>>
>>
>>
>>
>
--
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
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
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.
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
(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
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
value = stringBuilder.ToString();
stringBuilder = new StringBuilder();
return value;
}
}
--
-
Stanislas Pinte e-mail: [EMAIL PROTECTED]
ERTMS Solutions http://www.ertmssolutions.com
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
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
05 Team Suite?
>
> Thanks,
> -arman
> ___
> users mailing list
> users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
--
-----
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
> _
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
> 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
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
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.
>
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
>
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
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
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
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
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
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
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
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
>
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
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(...)
--
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
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
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
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
ntaxError: unexpected token bad character '' at :1
>>>
--
---------
Stanislas Pinte e-mail: [EMAIL PROTECTED]
ERTMS Solutions http://www.ertmssolutions.com
Rue de l'Autonomie, 1
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
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
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)
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
50 matches
Mail list logo