Thanks Szymon for the reply and I have looked at your proposed solution.
I already can achieve reading the resource files using StreamReader.
If it's easy to surface it into PythonEngine so it appears to already
been imported, then I am asking for more clarity because I do not see
what method I nee
This is working except two of the embedded .py files import each
other, so no matter which one I place first, it errors out. So I
guess I can catch it. lol. It's going to end up being about 60+ lines
of code to import 9 modules into the engine.
Or, I could modify the .py files some more but I pref
I'm a batch file guy too but not a Python (or IronPython) expert. You need to
make a key decision: are you planning to re-write a particular batch file as a
single Python program, or are you hoping to be able to simplify your batch file
by invoking Python to do something that's a pain in batch
Martin Maly wrote:
> Wheee! indeed. Are you using Beta 8? Apparently, this is already fixed on
> the daily build, sources of which are on codeplex.
I see Haibo said the same thing. I'll update if I actually need either. I
wanted to use these to debug my previous problem.
Thanks
--
Jonathan
___
Wheee! indeed. Are you using Beta 8? Apparently, this is already fixed on the
daily build, sources of which are on codeplex.
M.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Jacobs
Sent: Monday, July 03, 2006 3:01 PM
To: Discussion of IronPyth
This has been fixed by Dino last week. Please download from codeplex if you
need the fix.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Jacobs
Sent: Monday, July 03, 2006 3:01 PM
To: Discussion of IronPython
Subject: [IronPython] globals() and
IronPython 1.0.60619 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> globals()
Process is terminated due to StackOverflowException.
IronPython 1.0.60619 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> locals()
Hi,
I just found some incredibly strange behaviour when using nested C# classes.
Here's the repro:
Test.cs:
namespace Test {
public class Aye {
public class AyeBee {
}
}
}
hax/__init__.py:
import clr
clr.AddReferenceToFile('Test.dll')
>>> import hax
>>> import Tes
Yep, my apologies it was some errant code that was tripping me up - nothing
to do with IP in the end (thankfully :)
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:users-
> [EMAIL PROTECTED] On Behalf Of Shri Borde
> Sent: Tuesday, 4 July 2006 5:10 a.m.
> To: Discussion of IronPytho
I don't know of any tools or documentation written specifically for
people converting from batch files to Python scripts. However, there are
a number of useful references available for getting started with Python.
Once you have a basic understanding of Python, the conversion will
(hopefully) be pre
There should be nothing special about the default scope, other than the fact
that all the PythonEngine APIs like Evaluate, Execute have an overload that
implicitly operate on the default scope. The DefaultScope is created just like
any other scope.
Is it possible that you are executing some cod
IronPython doesn't support _getframe yet. It is something that is on our list
of things to investigate, but we may not be able to implement it before the
next release.
Martin
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Culver
Sent: Monday, July
Greetings all,
As a new user of IronPython, but an old programmer of batch files, I'd like
to find some kind of equivalency of sorts to aid in the conversion of an old
batch file to scripting, so I can bring an old app into the present.
Thanks!
Stephen Goodman
*
* Cartoons about DVDs and Stuff
Let me know if you get this working. IPython is an incredible shell,
and combining it with IronPython would be wonderful.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Krell
Sent: Monday, July 03, 2006 8:14 AM
To: users@lists.ironpython.com; [EMAIL
"You got your peanut butter on my chocolate!"
"You got your chocolate in my peanut butter!"
"Hey, they're two great tastes that taste great together!"
What would it take to get IronPython to work well with the IPython shell?
A quick google on this topic revealed this message
http://www.scipy.net
JoeSox napisaĆ(a):
> I can get the resources as a string so I'll have to play around with
> that. Thanks good idea.
>
Hi,
From the source code I can see that the FromFile method on Parser class
reads the file contents to byte array and later uses MemoryStream to
create StreamReader for actua
On 7/3/06, Michael Foord <[EMAIL PROTECTED]> wrote:
> JoeSox wrote:
> > On 7/2/06, Sanghyeon Seo <[EMAIL PROTECTED]> wrote:
> >
> >> 2006/7/3, JoeSox <[EMAIL PROTECTED]>:
> >>
> >>> What is the correct way to import an embedded module file(s) into a
> >>> PythonEngine? (snip)
> >>>
> >> This is an
JoeSox wrote:
> On 7/2/06, Sanghyeon Seo <[EMAIL PROTECTED]> wrote:
>
>> 2006/7/3, JoeSox <[EMAIL PROTECTED]>:
>>
>>> What is the correct way to import an embedded module file(s) into a
>>> PythonEngine? (snip)
>>>
>> This is an interesting use case that could be done with PEP 302 im
On 7/2/06, Sanghyeon Seo <[EMAIL PROTECTED]> wrote:
> 2006/7/3, JoeSox <[EMAIL PROTECTED]>:
> > What is the correct way to import an embedded module file(s) into a
> > PythonEngine? (snip)
>
> This is an interesting use case that could be done with PEP 302 import
> hooks. In CPython it was introduc
This can be very confusing.
>>> from System import Array, Object
>>> o = Array[Object]([0])
>>> str(o)
'System.Object[]'
>>> repr(o)
'System.Object[](0)'
Seo Sanghyeon
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinf
Having an extensible mechanism for importing files would be very useful. I
would like to be able to import python files stored in a database.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo
Sent: Monday 3 July 2006 8:27
To: Discussion of Iron
Hi,
Currently, IronPython's Issue Tracker has following Components: Code
Generator, Compiler, Module, Runtime.
I would like to have Console as another component.
Does anyone have another suggestion?
Seo Sanghyeon
___
users mailing list
users@lists.iro
I'm getting an exception in IronPython which I don't get in CPython.From the CPython console window:>>> import time, datetime>>> d = time.strptime("July 3, 2006 At 0724 GMT", "%B %d, %Y At %H%M GMT")
>>> print d(2006, 7, 3, 7, 24, 0, 0, 184, -1)From IronPython, a similar set of statements:engine.Ex
23 matches
Mail list logo