Hi,
The following code is adapted from the Pygments library:
automod_test.py
import types
class _automodule(types.ModuleType):
"""Automatically import lexers."""
def __getattr__(self, name):
return "blah"
import sys
oldmod = sys.modules['automod_test']
newmod = _automodule('auto
Martin Maly wrote:
> Yes, Parser being internal definitely causes the error. It is a good question
> whether it is a permanent change because there are pros and cons going both
> ways. Let me open a bug on this since it is something we need to make
> decision on. In the meantime, as a temporary
Yes, Parser being internal definitely causes the error. It is a good question
whether it is a permanent change because there are pros and cons going both
ways. Let me open a bug on this since it is something we need to make decision
on. In the meantime, as a temporary workaround (emphasizing the
Hello,
The example at www.ironpython.info 'The IronPython 2 Parser' does not seem
to work anymore with IP2A6...fails with a NameError: name 'Parser' is not
defined. I think it fails because Parser is now 'internal'? The question
I have is: Is this a permanent change - or is there another way
Thanks! (I actually didn't get back until today, and lots of e-mail & meetings
so far today, so I just hadn't gotten the chance yet...)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Dubroy
Sent: Tuesday, November 27, 2007 11:29 AM
To: Discussio
We discussed this today and think mime type support is a good idea. Apparently
we briefly looked at the Java APIs a year ago but we'll plan to do another
review to compare and contrast the two.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon S
I didn't see a bug open, so I opened one:
http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=14104
Thanks,
Pat
On Nov 24, 2007 3:54 PM, Dino Viehland <[EMAIL PROTECTED]> wrote:
> I think the construction w/ characters > 0x80 is a bug. But the returning of
> unicode vs. 8-bit stri
You're going to want to do something like (only compiled w/ Outlook, so there
may be some small compile errors here):
PythonEngine pe = new PythonEngine();
EngineModule mod = pe.CreateModule();
pe.Execute(File.ReadAllText("ArithmeticOperations.py"), mod);
object func = mod.Globals["ArithmeticOper