Re: [IronPython] Logging module error

2008-12-02 Thread Deepali Abhyankar
Thanks Seo For Logging Module to work, I added the code in '__Init__.py', suggested at URL, given by you Code added in __Init__.py file of Logging module if not hasattr(sys, "_getframe"): _srcfile = None if sys.platform == 'cli': _srcfile = None Thanks and Regards Deepali -Original M

[IronPython] Data Binding with DLR Languages

2008-12-02 Thread Dan Eloff
I'm posting this here, for lack of a better place, but anyone using dynamic languages on silverlight, really feels the lack of support for ICustomTypeDescriptor in data binding (i.e. there isn't any) Just trying to raise awareness of this *cough* Jimmy *cough* -Dan P.S. Harry Pierson wrote a grea

Re: [IronPython] Does IronPython 2.0 not recognize packages?

2008-12-02 Thread Dan Eloff
On Tue, Dec 2, 2008 at 8:26 AM, Yash Ganthe <[EMAIL PROTECTED]> wrote: > I still get the error: >> Traceback (most recent call last): >> File "Program.py", line 22, in Program.py >> File "mscorlib", line unknown, in get_Item >> File "mscorlib", line unknown, in ThrowKeyNotFoundException >> KeyError

Re: [IronPython] Event unhooking and IPy2

2008-12-02 Thread Michael Foord
Dino Viehland wrote: We don't always remember what we've wired up though. If you give us a delegate which matches the type exactly we'll just go ahead and hook it up (to avoid adding an extra level of indirection). Only if you give us some random callable object will we remember it. It'd be

Re: [IronPython] Event unhooking and IPy2

2008-12-02 Thread Dino Viehland
We don't always remember what we've wired up though. If you give us a delegate which matches the type exactly we'll just go ahead and hook it up (to avoid adding an extra level of indirection). Only if you give us some random callable object will we remember it. It'd be easy enough for us to

Re: [IronPython] Event unhooking and IPy2

2008-12-02 Thread Michael Foord
Marty Nelson wrote: We've had probably with memory leaks on Windows Form subscribed menu item clicks, just with plain vanilla C#. Ok - it may well not be the fault of IronPython. (Certainly some event handlers don't cause us problems whilst others do). On the other hand, as IronPython *is*

Re: [IronPython] Event unhooking and IPy2

2008-12-02 Thread Marty Nelson
We've had probably with memory leaks on Windows Form subscribed menu item clicks, just with plain vanilla C#. Check out this link http://www.bobpowell.net/eventsubscribers.htm (There are some additional steps for System.Windows.Forms.Component), and here's some sample code I wrote in C# that you

Re: [IronPython] Logging module error

2008-12-02 Thread Vernon Cole
Seo: Yes, please, make a new release as soon as you can. I have uploaded the IPy-compatible version of adodbapi to the trunk, and it needs 2.0 to work correctly. The 2.0 installer from MS is nice, but the "batteries included" version from FePy will be nicer. -- Vernon On Tue, Dec 2, 2008 at 6:0

Re: [IronPython] Does IronPython 2.0 not recognize packages?

2008-12-02 Thread Yash Ganthe
>Michael Foord wrote This will cause Python to expect the name 'Authentication' to exist in the '__init__.py' file itself - which it won't unless that module imports it. > I am pretty new to Python. I put the following in __init__.py import Authentication __all__ = ["Authentication"] I st

Re: [IronPython] Status ctypes and IronPython or Alternative?

2008-12-02 Thread Dan Eloff
On Tue, Dec 2, 2008 at 8:09 AM, Uwe Mueller <[EMAIL PROTECTED]> wrote: > Does anybody know about the status of ctypes for IronPython? Best we have is in FEPY right now. > It would be very helpful to have a version that supports function calls to > unmanaged code with parameter being a pointer to

Re: [IronPython] Does IronPython 2.0 not recognize packages?

2008-12-02 Thread orip
If you have the following structure: Program.py PI /__init__.py /Authentication.py an empty __init__.py will allow you to do: import PI.Authentication from PI import Authentication If your __init__.py contains: import Authentication Then you can do: from PI import * and imp

[IronPython] Status ctypes and IronPython or Alternative?

2008-12-02 Thread Uwe Mueller
Does anybody know about the status of ctypes for IronPython? It would be very helpful to have a version that supports function calls to unmanaged code with parameter being a pointer to modifiable byte buffer. I have tried the version from FEPY on sourceforge. It implements only some numeric ty

Re: [IronPython] Logging module error

2008-12-02 Thread Michael Foord
Seo Sanghyeon wrote: 2008/12/2 Deepali Abhyankar <[EMAIL PROTECTED]>: (logging and _getframe) Please suggest solution to resolve this https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/patches/stdlib/2.4.4/patch-stdlib-logging-getframe Seo - you're still alive! How about an updat

Re: [IronPython] Logging module error

2008-12-02 Thread Seo Sanghyeon
2008/12/2 Deepali Abhyankar <[EMAIL PROTECTED]>: > (logging and _getframe) > Please suggest solution to resolve this https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/patches/stdlib/2.4.4/patch-stdlib-logging-getframe -- Seo Sanghyeon ___ Users maili

Re: [IronPython] Logging module error

2008-12-02 Thread Michael Foord
Deepali Abhyankar wrote: Hi Michael, This is the only code am writing in ipy.exe and getting error I am using inbuilt logging module provided by Iron Python. The logging module is not inbuilt to IronPython - it is part of the Python standard library. As you can see from the traceback the Pyt

Re: [IronPython] Logging module error

2008-12-02 Thread Michael Foord
Hello Deepali, sys._getframe is not available in IronPython. If you post the relevant section of code from the logging module we may be able to suggest a patch / workaround (disabling some functionality may be the way forward - but often getframe is used to find a trivial bit of information th

[IronPython] Logging module error

2008-12-02 Thread Deepali Abhyankar
Hi I am using Iron Python 2.0 release candidate 2. I am using logging module Code is: Import logging logger = logging.getLogger("Trial") logger.setLevel(logging.INFO) hdlr = logging.FileHandler("data.txt","w") hdlr.setLevel(logging.INFO) formatter = logging

Re: [IronPython] Does IronPython 2.0 not recognize packages?

2008-12-02 Thread Michael Foord
Yash Ganthe wrote: I am using IronPython 2.0 Release Candidate 2 Packages work fine with IronPython 2. >ipy Program.py Traceback (most recent call last): File "Program.py", line 22, in Program.py File "mscorlib", line unknown, in get_Item File "mscorlib", line unknown, in ThrowKeyNotFoundEx

[IronPython] Does IronPython 2.0 not recognize packages?

2008-12-02 Thread Yash Ganthe
I am using IronPython 2.0 Release Candidate 2 >ipy Program.py Traceback (most recent call last): File "Program.py", line 22, in Program.py File "mscorlib", line unknown, in get_Item File "mscorlib", line unknown, in ThrowKeyNotFoundException KeyError: The given key was not present in the dictiona