From no_reply at codeplex.com Fri Mar 1 09:47:20 2013 From: no_reply at codeplex.com (CodePlex) Date: 1 Mar 2013 00:47:20 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 2/28/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Conversion from Ironpython's Decimal to System.Decimal loses precision. ---------------------------------------------- ISSUES 1. [New issue] Conversion from Ironpython's Decimal to System.Decimal loses precision. http://ironpython.codeplex.com/workitem/33830 User ruxo has proposed the issue: "For example: import decimal import System x = decimal.Decimal('12.34') y = System.Decimal(x) # No error print y # however, y is 12.00, not 12.34" ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Sat Mar 2 09:33:48 2013 From: no_reply at codeplex.com (CodePlex) Date: 2 Mar 2013 00:33:48 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 3/1/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] TypeError on joining strings with byte array 2. [New comment] Conversion from Ironpython's Decimal to System.Decimal loses precision. ---------------------------------------------- ISSUES 1. [New comment] TypeError on joining strings with byte array http://ironpython.codeplex.com/workitem/33807 User CurtHagenlocher has commented on the issue: "In IronPython, strings are unicode by default and by design. If you run the same code in Python3 (where strings are also unicode), you'll get basically the same error message."----------------- 2. [New comment] Conversion from Ironpython's Decimal to System.Decimal loses precision. http://ironpython.codeplex.com/workitem/33830 User CurtHagenlocher has commented on the issue: "I suspect this is an overload resolution issue. decimal.Decimal has conversions to double and int, and System.Decimal has constructors for each of those. If that is indeed the problem, then it could be very hard to change the behavior without breaking something else. A conversion path through double isn't ideal either, of course, as you may end up losing precision there, too. But it's probably the best automatic possibility given that the Python decimal is a pure Python type that IronPython doesn't (and shouldn't) know the details of. You should be able to manually say System.Decimal(float(decimal.Decimal('12.34'))" ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Mon Mar 4 21:57:11 2013 From: doug.blank at gmail.com (Doug Blank) Date: Mon, 4 Mar 2013 15:57:11 -0500 Subject: [Ironpython-users] IronPython localization? In-Reply-To: References: Message-ID: Ok, thanks for the info. If anyone starts to tackle that, it would be nice to make it somehow have a mapping between gettext language names (eg, es_ES.utf8) and Windows-based names (eg, "german") so that the right language could be selected. -Doug On Wed, Feb 27, 2013 at 4:21 PM, Jeff Hardy wrote: > On Wed, Feb 27, 2013 at 5:13 AM, Doug Blank wrote: >> What support does IronPython have for localization for itself? In >> other words, what support does it have for showing, say, Python error >> messages in another human language? Could it use CPython's locale, >> gettext files? > > There's nothing, as far as I know. .NET has pretty good localization > support, but it would have to be plumbed all through IronPython. > > - Jeff From doug.blank at gmail.com Mon Mar 4 22:01:11 2013 From: doug.blank at gmail.com (Doug Blank) Date: Mon, 4 Mar 2013 16:01:11 -0500 Subject: [Ironpython-users] Latest status on ctypes? Message-ID: Wondering what the status is on ctypes with IronPython. I had an older version of ctypes.py that was referencing a previous dll: ImportError: No module named IronPython.Runtime.Calls The CPython 2.7 ctypes directory doesn't load: python>>> import ctypes Traceback (most recent call last): File "", line 1, in File "/home/dblank/Calico/trunk/bin/Lib/ctypes/__init__.py", line 441, in File "/home/dblank/Calico/trunk/bin/Lib/ctypes/__init__.py", line 353, in __init__ OSError: IronPython.Runtime.Exceptions.OSException: cannot load library at IronPython.Modules.CTypes.LoadLibrary (System.String library, Int32 mode) [0x00000] in :0 at IronPython.Modules.CTypes.dlopen (System.String library, Int32 mode) [0x00000] in :0 at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in :0 at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in :0 Any info would be useful; thanks! -Doug From jdhardy at gmail.com Mon Mar 4 22:47:02 2013 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 4 Mar 2013 13:47:02 -0800 Subject: [Ironpython-users] Latest status on ctypes? In-Reply-To: References: Message-ID: On Mon, Mar 4, 2013 at 1:01 PM, Doug Blank wrote: > Wondering what the status is on ctypes with IronPython. I had an older > version of ctypes.py that was referencing a previous dll: > > ImportError: No module named IronPython.Runtime.Calls > > The CPython 2.7 ctypes directory doesn't load: > > python>>> import ctypes > Traceback (most recent call last): > File "", line 1, in > File "/home/dblank/Calico/trunk/bin/Lib/ctypes/__init__.py", line > 441, in > File "/home/dblank/Calico/trunk/bin/Lib/ctypes/__init__.py", line > 353, in __init__ > OSError: IronPython.Runtime.Exceptions.OSException: cannot load library > at IronPython.Modules.CTypes.LoadLibrary (System.String library, > Int32 mode) [0x00000] in :0 > at IronPython.Modules.CTypes.dlopen (System.String library, Int32 > mode) [0x00000] in :0 > at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run > (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in > :0 > at Microsoft.Scripting.Interpreter.Interpreter.Run > (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in > :0 > > Any info would be useful; thanks! It looks like you're on a Unix box. I'm pretty sure IronPython ctypes has only ever been tested on Windows, so it could have some platform-specific dependencies. If you could figure out what library it's failing to load, that might help sort it out. Make sure you're using IronPython's copy of the stdlib as well, since it may have some modifications to make it work. - Jeff From no_reply at codeplex.com Tue Mar 5 09:24:29 2013 From: no_reply at codeplex.com (CodePlex) Date: 5 Mar 2013 00:24:29 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 3/4/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] TrySetMember called when attaching handler to event ---------------------------------------------- ISSUES 1. [New issue] TrySetMember called when attaching handler to event http://ironpython.codeplex.com/workitem/33838 User MichaelBaker has proposed the issue: "#---------------------------------------------------------------------------------------------------- IP VERSION AFFECTED: 2.7 BUILD TYPE: All FLAGS PASSED TO IPY.EXE: None OPERATING SYSTEM: 64 & 32-bit Windows 7 CLR VERSION: .NET 4.0 #---------------------------------------------------------------------------------------------------- BRIEF DESCRIPTION: Under IronPython 2.6.1 RC1 if a C# class implements both DynamicObject, and INotifyPropertyChanged when attaching to the PropertyChange event from IronPython _TrySetMember_ is not called. Under IronPython 2.7.3 _TrySetMember_ is called. In both cases the event is attached to, but 2.7.3 incurs the additional call to TrySetMember. Is this by design? #---------------------------------------------------------------------------------------------------- REPRODUCTION SNIPPET See attached. Output under __IronPython 2.6.1 RC1__ ``` ipy.exe attach.py_ Done ``` Output under __IronPython 2.7.3__ ``` ipy.exe attach.py TrySetMember PropertyChanged Property changed PropertyChanged Done ```" ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Tue Mar 5 15:12:31 2013 From: doug.blank at gmail.com (Doug Blank) Date: Tue, 5 Mar 2013 09:12:31 -0500 Subject: [Ironpython-users] Latest status on ctypes? In-Reply-To: References: Message-ID: Looks like there are at least two issues: one where the platform is not known (and doesn't know what low level library to open), but the lower level issue seems to be: $ mono ./ipy64.exe IronPython 2.7.3 (2.7.0.40) on Mono 4.0.30319.1 (64-bit) Type "help", "copyright", "credits" or "license" for more information. >>> from ctypes import dlopen Traceback (most recent call last): File "", line 1, in File "/home/dblank/Desktop/IronPython-2.7.3/Lib/ctypes/__init__.py", line 441, in File "/home/dblank/Desktop/IronPython-2.7.3/Lib/ctypes/__init__.py", line 353, in __init__ OSError: IronPython.Runtime.Exceptions.OSException: cannot load library at IronPython.Modules.CTypes.LoadLibrary (System.String library, Int32 mode) [0x00000] in :0 at IronPython.Modules.CTypes.dlopen (System.String library, Int32 mode) [0x00000] in :0 at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in :0 at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in :0 >>> from _ctypes import dlopen >>> dlopen("/usr/lib/libpython2.7.so") Traceback (most recent call last): File "", line 1, in OSError: IronPython.Runtime.Exceptions.OSException: cannot load library /usr/lib/libpython2.7.so at IronPython.Modules.CTypes.LoadLibrary (System.String library, Int32 mode) [0x00000] in :0 at IronPython.Modules.CTypes.dlopen (System.String library, Int32 mode) [0x00000] in :0 at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in :0 at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in :0 libpython2.7.so does exist, but LoadLibrary doesn't appear to be able to deal with it. Am I using this correctly? -Doug On Mon, Mar 4, 2013 at 4:47 PM, Jeff Hardy wrote: > On Mon, Mar 4, 2013 at 1:01 PM, Doug Blank wrote: >> Wondering what the status is on ctypes with IronPython. I had an older >> version of ctypes.py that was referencing a previous dll: >> >> ImportError: No module named IronPython.Runtime.Calls >> >> The CPython 2.7 ctypes directory doesn't load: >> >> python>>> import ctypes >> Traceback (most recent call last): >> File "", line 1, in >> File "/home/dblank/Calico/trunk/bin/Lib/ctypes/__init__.py", line >> 441, in >> File "/home/dblank/Calico/trunk/bin/Lib/ctypes/__init__.py", line >> 353, in __init__ >> OSError: IronPython.Runtime.Exceptions.OSException: cannot load library >> at IronPython.Modules.CTypes.LoadLibrary (System.String library, >> Int32 mode) [0x00000] in :0 >> at IronPython.Modules.CTypes.dlopen (System.String library, Int32 >> mode) [0x00000] in :0 >> at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run >> (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in >> :0 >> at Microsoft.Scripting.Interpreter.Interpreter.Run >> (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in >> :0 >> >> Any info would be useful; thanks! > > It looks like you're on a Unix box. I'm pretty sure IronPython ctypes > has only ever been tested on Windows, so it could have some > platform-specific dependencies. If you could figure out what library > it's failing to load, that might help sort it out. Make sure you're > using IronPython's copy of the stdlib as well, since it may have some > modifications to make it work. > > - Jeff From jdhardy at gmail.com Tue Mar 5 21:41:30 2013 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 5 Mar 2013 12:41:30 -0800 Subject: [Ironpython-users] Latest status on ctypes? In-Reply-To: References: Message-ID: On Tue, Mar 5, 2013 at 6:12 AM, Doug Blank wrote: > Looks like there are at least two issues: one where the platform is > not known (and doesn't know what low level library to open), but the > lower level issue seems to be: > > $ mono ./ipy64.exe > IronPython 2.7.3 (2.7.0.40) on Mono 4.0.30319.1 (64-bit) > Type "help", "copyright", "credits" or "license" for more information. >>>> from ctypes import dlopen > Traceback (most recent call last): > File "", line 1, in > File "/home/dblank/Desktop/IronPython-2.7.3/Lib/ctypes/__init__.py", > line 441, in > File "/home/dblank/Desktop/IronPython-2.7.3/Lib/ctypes/__init__.py", > line 353, in __init__ > OSError: IronPython.Runtime.Exceptions.OSException: cannot load library > at IronPython.Modules.CTypes.LoadLibrary (System.String library, > Int32 mode) [0x00000] in :0 > at IronPython.Modules.CTypes.dlopen (System.String library, Int32 > mode) [0x00000] in :0 > at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run > (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in > :0 > at Microsoft.Scripting.Interpreter.Interpreter.Run > (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in > :0 >>>> from _ctypes import dlopen >>>> dlopen("/usr/lib/libpython2.7.so") > Traceback (most recent call last): > File "", line 1, in > OSError: IronPython.Runtime.Exceptions.OSException: cannot load > library /usr/lib/libpython2.7.so > at IronPython.Modules.CTypes.LoadLibrary (System.String library, > Int32 mode) [0x00000] in :0 > at IronPython.Modules.CTypes.dlopen (System.String library, Int32 > mode) [0x00000] in :0 > at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run > (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in > :0 > at Microsoft.Scripting.Interpreter.Interpreter.Run > (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in > :0 > > libpython2.7.so does exist, but LoadLibrary doesn't appear to be able > to deal with it. Am I using this correctly? It shouldn't even be trying to load libpython, since IronPython won't be able to do anything sensible with it. That said, it should still load, but I have no idea why it's not. Which OS are you using? And which version of Mono? - Jeff From no_reply at codeplex.com Wed Mar 6 09:38:42 2013 From: no_reply at codeplex.com (CodePlex) Date: 6 Mar 2013 00:38:42 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 3/5/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Conversion from Ironpython's Decimal to System.Decimal loses precision. ---------------------------------------------- ISSUES 1. [New comment] Conversion from Ironpython's Decimal to System.Decimal loses precision. http://ironpython.codeplex.com/workitem/33830 User ruxo has commented on the issue: "Thank you. Now I'm using System.Decimal.Parse( str( decimal.Decimal('12.34') ) ). String conversion supposes to be more accurate, IMHO." ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Wed Mar 6 16:12:56 2013 From: doug.blank at gmail.com (Doug Blank) Date: Wed, 6 Mar 2013 10:12:56 -0500 Subject: [Ironpython-users] Latest status on ctypes? In-Reply-To: References: Message-ID: On Tue, Mar 5, 2013 at 3:41 PM, Jeff Hardy wrote: > On Tue, Mar 5, 2013 at 6:12 AM, Doug Blank wrote: >> Looks like there are at least two issues: one where the platform is >> not known (and doesn't know what low level library to open), but the >> lower level issue seems to be: >> >> $ mono ./ipy64.exe >> IronPython 2.7.3 (2.7.0.40) on Mono 4.0.30319.1 (64-bit) >> Type "help", "copyright", "credits" or "license" for more information. >>>>> from ctypes import dlopen >> Traceback (most recent call last): >> File "", line 1, in >> File "/home/dblank/Desktop/IronPython-2.7.3/Lib/ctypes/__init__.py", >> line 441, in >> File "/home/dblank/Desktop/IronPython-2.7.3/Lib/ctypes/__init__.py", >> line 353, in __init__ >> OSError: IronPython.Runtime.Exceptions.OSException: cannot load library >> at IronPython.Modules.CTypes.LoadLibrary (System.String library, >> Int32 mode) [0x00000] in :0 >> at IronPython.Modules.CTypes.dlopen (System.String library, Int32 >> mode) [0x00000] in :0 >> at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run >> (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in >> :0 >> at Microsoft.Scripting.Interpreter.Interpreter.Run >> (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in >> :0 >>>>> from _ctypes import dlopen >>>>> dlopen("/usr/lib/libpython2.7.so") >> Traceback (most recent call last): >> File "", line 1, in >> OSError: IronPython.Runtime.Exceptions.OSException: cannot load >> library /usr/lib/libpython2.7.so >> at IronPython.Modules.CTypes.LoadLibrary (System.String library, >> Int32 mode) [0x00000] in :0 >> at IronPython.Modules.CTypes.dlopen (System.String library, Int32 >> mode) [0x00000] in :0 >> at Microsoft.Scripting.Interpreter.FuncCallInstruction`3[System.String,System.Int32,System.Object].Run >> (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in >> :0 >> at Microsoft.Scripting.Interpreter.Interpreter.Run >> (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in >> :0 >> >> libpython2.7.so does exist, but LoadLibrary doesn't appear to be able >> to deal with it. Am I using this correctly? > > It shouldn't even be trying to load libpython, since IronPython won't > be able to do anything sensible with it. That said, it should still > load, but I have no idea why it's not. Which OS are you using? And > which version of Mono? I'm using Mono 2.10.8.1 on Ubuntu. With your hints above, I'm guessing that there is an error in ctypes/__init__.py line 352: - if handle is None: + if handle is None and self._name: self._handle = _dlopen(self._name, mode) else: self._handle = handle because handle and self.name are both None. That gives: >>> import ctypes Traceback (most recent call last): File "", line 1, in File "/home/dblank/Calico/trunk/bin/Lib/ctypes/__init__.py", line 478, in SystemError: LocalAlloc The first offending line is: memmove = CFUNCTYPE(c_void_p, c_void_p, c_void_p, c_size_t)(_memmove_addr) Those values are: >>> print(CFUNCTYPE, c_void_p, c_void_p, c_void_p, c_size_t, _memmove_addr) .c_void_p'> .c_void_p'> .c_void_p'> .c_ulonglong'> 1100039664 I have a libdl.so (even copied it next to exe). Perhaps there is something wrong with LocalAlloc, or contract: [DllImport("kernel32.dll"), ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] private static extern IntPtr LocalAlloc(uint flags, IntPtr size); -Doug > - Jeff From jdhardy at gmail.com Wed Mar 6 17:04:53 2013 From: jdhardy at gmail.com (Jeff Hardy) Date: Wed, 6 Mar 2013 08:04:53 -0800 Subject: [Ironpython-users] Latest status on ctypes? In-Reply-To: References: Message-ID: On Wed, Mar 6, 2013 at 7:12 AM, Doug Blank wrote: >> It shouldn't even be trying to load libpython, since IronPython won't >> be able to do anything sensible with it. That said, it should still >> load, but I have no idea why it's not. Which OS are you using? And >> which version of Mono? > > I'm using Mono 2.10.8.1 on Ubuntu. > > With your hints above, I'm guessing that there is an error in > ctypes/__init__.py line 352: > > - if handle is None: > + if handle is None and self._name: > self._handle = _dlopen(self._name, mode) > else: > self._handle = handle > > because handle and self.name are both None. That gives: > >>>> import ctypes > Traceback (most recent call last): > File "", line 1, in > File "/home/dblank/Calico/trunk/bin/Lib/ctypes/__init__.py", line > 478, in > SystemError: LocalAlloc > > The first offending line is: > > memmove = CFUNCTYPE(c_void_p, c_void_p, c_void_p, c_size_t)(_memmove_addr) > > Those values are: > >>>> print(CFUNCTYPE, c_void_p, c_void_p, c_void_p, c_size_t, _memmove_addr) > .c_void_p'> > .c_void_p'> .c_void_p'> '.c_ulonglong'> 1100039664 > > I have a libdl.so (even copied it next to exe). Perhaps there is > something wrong with LocalAlloc, or contract: > > [DllImport("kernel32.dll"), > ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] > private static extern IntPtr LocalAlloc(uint flags, IntPtr size); > The first major issue is that LocalAlloc is a Windows function, so unless Mono provides a shim (which I doubt), there's no way it can be loaded. I don't have the code handy to check *why* it's trying to use LocalAlloc, but I have a feeling there's an assumption that "IronPython == Windows" somewhere. Where does _memmove_addr come from? I'm afraid you're breaking trail, Doug. When Dino wrote ctypes I doubt he tested it on Linux, and I don't think anyone else has tried in the meantime. - Jeff From no_reply at codeplex.com Thu Mar 7 09:57:37 2013 From: no_reply at codeplex.com (CodePlex) Date: 7 Mar 2013 00:57:37 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 3/6/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Conversion from Ironpython's Decimal to System.Decimal loses precision. ---------------------------------------------- ISSUES 1. [New comment] Conversion from Ironpython's Decimal to System.Decimal loses precision. http://ironpython.codeplex.com/workitem/33830 User vernondcole has commented on the issue: "This sounds a lot like issue 18220 -- proposed by me 2008-08-20 and marked as fixed by jdhardy 2012-03-10 for release 2.7.2.1. -- except that this is going in the other direction. Jeff fixed: d = System.Decimal(12345.67891) dd = decimal.Decimal(d) TypeError: Cannot convert to Decimal The workaround for that was: dd=decimal.Decimal(str(d)) A similar workaround should work here. Hopefully, the fix can be done in less than five years, this time. :-) " ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Fri Mar 8 04:07:35 2013 From: dinov at microsoft.com (Dino Viehland) Date: Fri, 8 Mar 2013 03:07:35 +0000 Subject: [Ironpython-users] ANN: Python Tools for Visual Studio 2.0 Alpha Message-ID: We're pleased to announce the release of Python Tools for Visual Studio 2.0 Alpha. Python Tools for Visual Studio (PTVS) is an open-source plug-in for Visual Studio which supports programming with the Python language. PTVS supports a broad range of features including CPython/IronPython, Edit/Intellisense/Debug/Profile, Cloud, HPC, IPython, and cross platform debugging support. For a quick overview of the general IDE experience, please watch this video There are a number of exciting improvement in this release compared to 1.5, all based on your feedback & suggestions. Here's a summary: NOTE - this is an Alpha release which is primarily meant for feedback purposes and has not been tested as much as the 1.5.x RTM releases! This release works with both VS2010 and VS2010. Alpha limitations are noted in the corresponding docs for each feature. Please try these bits and let us know what you think! IDE [*] Vastly improved analysis and intellisense - you can now get much deeper and extensive intellisense. Please refer to the documentation or this video for an overview. [*] Remote Debugging! PTVS already supported "attach" style debugging locally and on clusters, now you do full remote debugging, even on Linux and Macs! Please refer to the docs or this video for an overview. [*] Code formatting - now you can format code based on various standards & parameters. See https://pytools.codeplex.com/wikipage?title=Code%20Formatting for an overview. [*] Virtual Env - PTVS has early support for virtual envs. Overview or video. [*] Debug Script - you can now debug a python script without first setting up a VS project for it. Just right click & debug away. Docs or video. [*] Navigate To - this feature provide a convenient way to navigate around your code. Docs [*] Support for zip files - you can include zip file in your project. Support is preliminary. [*] lots of bug fixes & smaller enhancements Cloud [*] Azure Web Sites - you can now publish a Django site to Azure with minimum number of clicks. Azure provides free hosting to kick the tires. See an overview. [*] Simplified deployment (Python 2.7 is now preconfigured on Azure servers). [*] Various bug fixes to the Azure SDK. We'd like to thank the following people who took the time to report the issues and feedback for this release: hfoffani , mjklaim, sopelt, ThiefMaster, Vilhelmenator -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Dower at microsoft.com Mon Mar 11 17:03:53 2013 From: Steve.Dower at microsoft.com (Steve Dower) Date: Mon, 11 Mar 2013 16:03:53 +0000 Subject: [Ironpython-users] Website Updates Message-ID: <280baebc199e430c9b524a9abb3477bd@BLUPR03MB035.namprd03.prod.outlook.com> I'm not entirely sure who's responsible for updating the website right now, but we'd like to get http://www.ironpython.net/tools/ updated (mostly to avoid having to update it every time we release). That page deep links into one of our pre-1.0 releases and a documentation page ("Walkthrough")that is probably going to be retired. Linking directly to http://pytools.codeplex.com/ and http://pytools.codeplex.com/documentation would be better. And feel free to steal any of the screenshots we have up (or I can make an IronPython-specific one for you) though I do quite like the one that's already there. Cheers, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From vernondcole at gmail.com Mon Mar 11 18:52:31 2013 From: vernondcole at gmail.com (Vernon D. Cole) Date: Mon, 11 Mar 2013 11:52:31 -0600 Subject: [Ironpython-users] Website Updates In-Reply-To: <280baebc199e430c9b524a9abb3477bd@BLUPR03MB035.namprd03.prod.outlook.com> References: <280baebc199e430c9b524a9abb3477bd@BLUPR03MB035.namprd03.prod.outlook.com> Message-ID: I was going to offer to fix that right away, but I cannot seem to find what you are talking about. I am probably looking at the wrong web site. What is the URL of the page you need fixed? (and which link is wrong?) -- Vernon Cole On Mon, Mar 11, 2013 at 10:03 AM, Steve Dower wrote: > I?m not entirely sure who?s responsible for updating the website right > now, but we?d like to get http://www.ironpython.net/tools/ updated > (mostly to avoid having to update it every time we release).**** > > ** ** > > That page deep links into one of our pre-1.0 releases and a documentation > page (?Walkthrough?)that is probably going to be retired. Linking directly > to http://pytools.codeplex.com/ and > http://pytools.codeplex.com/documentation would be better.**** > > ** ** > > And feel free to steal any of the screenshots we have up (or I can make an > IronPython-specific one for you) though I do quite like the one that?s > already there.**** > > ** ** > > Cheers,**** > > Steve**** > > ** ** > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Dower at microsoft.com Mon Mar 11 18:56:47 2013 From: Steve.Dower at microsoft.com (Steve Dower) Date: Mon, 11 Mar 2013 17:56:47 +0000 Subject: [Ironpython-users] Website Updates In-Reply-To: References: <280baebc199e430c9b524a9abb3477bd@BLUPR03MB035.namprd03.prod.outlook.com> Message-ID: http://www.ironpython.net/tools/ is the page. The two "Download" links should go straight to http://pytools.codeplex.com/ and the two "Walkthrough" links should be removed. The "Documentation" link is still correct. Thanks, Steve From: Vernon D. Cole [mailto:vernondcole at gmail.com] Sent: Monday, March 11, 2013 1053 To: Steve Dower Cc: ironpython-users at python.org; Shahrokh Mortazavi Subject: Re: [Ironpython-users] Website Updates I was going to offer to fix that right away, but I cannot seem to find what you are talking about. I am probably looking at the wrong web site.? What is the URL of the page you need fixed? (and which link is wrong?) -- Vernon Cole On Mon, Mar 11, 2013 at 10:03 AM, Steve Dower wrote: I'm not entirely sure who's responsible for updating the website right now, but?we'd like to?get?http://www.ironpython.net/tools/?updated (mostly to avoid having to update it every time we release). ? That page deep links into one of our pre-1.0 releases and a documentation page ("Walkthrough")that is probably going to be retired. Linking directly to http://pytools.codeplex.com/?and http://pytools.codeplex.com/documentation?would be better. ? And feel free to steal any of the screenshots we have up (or I can make?an IronPython-specific one?for you) though I do quite like the one that's already there. ? Cheers, Steve ? _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users From jdhardy at gmail.com Mon Mar 11 20:26:19 2013 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 11 Mar 2013 12:26:19 -0700 Subject: [Ironpython-users] Website Updates In-Reply-To: <280baebc199e430c9b524a9abb3477bd@BLUPR03MB035.namprd03.prod.outlook.com> References: <280baebc199e430c9b524a9abb3477bd@BLUPR03MB035.namprd03.prod.outlook.com> Message-ID: On Mon, Mar 11, 2013 at 9:03 AM, Steve Dower wrote: > I?m not entirely sure who?s responsible for updating the website right now, > but we?d like to get http://www.ironpython.net/tools/ updated (mostly to > avoid having to update it every time we release). > > > > That page deep links into one of our pre-1.0 releases and a documentation > page (?Walkthrough?)that is probably going to be retired. Linking directly > to http://pytools.codeplex.com/ and > http://pytools.codeplex.com/documentation would be better. > > > > And feel free to steal any of the screenshots we have up (or I can make an > IronPython-specific one for you) though I do quite like the one that?s > already there. I can take care of it, but probably not for a couple of days. The website deployment process is pretty messy. - Jeff From linuxsw at gmail.com Thu Mar 14 20:09:20 2013 From: linuxsw at gmail.com (Seungweon Park) Date: Thu, 14 Mar 2013 12:09:20 -0700 Subject: [Ironpython-users] SSH/Telnet connection module to configure Ethernet switches both in IronPython and CPython? Message-ID: Hi, Our Linux team uses CPython 2.6 to run the test scripts which configure switches by SSH/Telnet (Exscript/Crypto/Paramiko modules). I'd like to have same environment in Windows team without a lot of changes. So installed CPython 2.6.2 on the Windows machine(W2K8 R2) and installed above modules, then I can run the test scripts same as done in Linux environment. However, I'd like to use .Net feature(calling PS script/calling C# methods) in Windows environment so installed IronPython 2.6.2 with Ironclad to use CPython library from IronPython. In the meantime, I got following errors. It looks like having a compatibility issue when importing multiprocessing module used by Exscript. Would you tell me how to fix this issue(any multiprocessing module for IronPython, any alternatives?) or any workaround to use SSH/Telnet connection from IronPython? Thank you, Seungweon. C:\Users\Administrator>ipy -X:Frames IronPython 2.6.2 (2.6.10920.0) on .NET 4.0.30319.1 Type "help", "copyright", "credits" or "license" for more information. >>> import os,sys >>> print sys.path ['.', 'C:\\Users\\Administrator', 'C:\\Users\\Administrator', 'C:\\IronPython26\\Lib', 'C:\\IronPython26\\DLLs', 'C:\\IronPython26', C:\\IronPython26\\lib\\site-packages', 'c:\\python26\\lib'] >>> import ironclad >>> sys.path.append("c:\\python26\\lib") >>> sys.path.append("c:\\python26\\lib\\site-packages") >>> sys.path.append("c:\\python26\\dlls") >>> import Crypto >>> import paramiko >>> os.chdir("c:\\temp") >>> import cisco Traceback (most recent call last): File "", line 1, in File "c:\temp\brocade.py", line 28, in File "c:\python26\lib\site-packages\Exscript\__init__.py", line 26, in File "c:\python26\lib\site-packages\Exscript\Queue.py", line 25, in File "c:\python26\lib\multiprocessing\__init__.py", line 63, in File "c:\python26\lib\multiprocessing\process.py", line 17, in ImportError: No module named signal >>> import Exscript Traceback (most recent call last): File "", line 1, in File "c:\python26\lib\site-packages\Exscript\__init__.py", line 26, in File "c:\python26\lib\site-packages\Exscript\Queue.py", line 25, in File "c:\python26\lib\multiprocessing\__init__.py", line 63, in File "c:\python26\lib\multiprocessing\process.py", line 17, in ImportError: No module named signal -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Thu Mar 14 20:18:32 2013 From: slide.o.mix at gmail.com (Alex Earl) Date: Thu, 14 Mar 2013 12:18:32 -0700 Subject: [Ironpython-users] SSH/Telnet connection module to configure Message-ID: <1552548139430233016@unknownmsgid> Ethernet switches both in IronPython and CPython? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0036000188==" --===============0036000188== Content-Type: multipart/alternative; boundary=f46d042de92584ae0e04d7e742fb --f46d042de92584ae0e04d7e742fb Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sadly, ironclad has been dead for some time, so there are probably many issues trying to use it with any recent releases of ironpython. Sent from my Windows Phone From: Seungweon Park Sent: 3/14/2013 12:10 To: ironpython-users at python.org Subject: [Ironpython-users] SSH/Telnet connection module to configure Ethernet switches both in IronPython and CPython? Hi, Our Linux team uses CPython 2.6 to run the test scripts which configure switches by SSH/Telnet (Exscript/Crypto/Paramiko modules). I'd like to have same environment in Windows team without a lot of changes. So installed CPython 2.6.2 on the Windows machine(W2K8 R2) and installed above modules, then I can run the test scripts same as done in Linux environment. However, I'd like to use .Net feature(calling PS script/calling C# methods) in Windows environment so installed IronPython 2.6.2 with Ironclad to use CPython library from IronPython. In the meantime, I got following errors. It looks like having a compatibility issue when importing multiprocessing module used by Exscript. Would you tell me how to fix this issue(any multiprocessing module for IronPython, any alternatives?) or any workaround to use SSH/Telnet connection from IronPython? Thank you, Seungweon. C:\Users\Administrator>ipy -X:Frames IronPython 2.6.2 (2.6.10920.0) on .NET 4.0.30319.1 Type "help", "copyright", "credits" or "license" for more information. >>> import os,sys >>> print sys.path ['.', 'C:\\Users\\Administrator', 'C:\\Users\\Administrator', 'C:\\IronPython26\\Lib', 'C:\\IronPython26\\DLLs', 'C:\\IronPython26', C:\\IronPython26\\lib\\site-packages', 'c:\\python26\\lib'] >>> import ironclad >>> sys.path.append("c:\\python26\\lib") >>> sys.path.append("c:\\python26\\lib\\site-packages") >>> sys.path.append("c:\\python26\\dlls") >>> import Crypto >>> import paramiko >>> os.chdir("c:\\temp") >>> import cisco Traceback (most recent call last): File "", line 1, in File "c:\temp\brocade.py", line 28, in File "c:\python26\lib\site-packages\Exscript\__init__.py", line 26, in File "c:\python26\lib\site-packages\Exscript\Queue.py", line 25, in File "c:\python26\lib\multiprocessing\__init__.py", line 63, in File "c:\python26\lib\multiprocessing\process.py", line 17, in ImportError: No module named signal >>> import Exscript Traceback (most recent call last): File "", line 1, in File "c:\python26\lib\site-packages\Exscript\__init__.py", line 26, in File "c:\python26\lib\site-packages\Exscript\Queue.py", line 25, in File "c:\python26\lib\multiprocessing\__init__.py", line 63, in File "c:\python26\lib\multiprocessing\process.py", line 17, in ImportError: No module named signal --f46d042de92584ae0e04d7e742fb Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Sadly, ironclad has been dead for some time, so there are= probably many issues trying to use it with any recent releases of ironpyth= on.

Sent from my Windows Phone

From: Seungw= eon Park
Sent: 3/14/2013 12:10
To: ironpyth= on-users at python.org
Subject: [Ironpython-users] SSH/Telnet = connection module to configure Ethernet switches both in IronPython and CPy= thon?

Hi,

Our Linux team uses CPython 2.6 to run the test scr= ipts which configure switches by SSH/Telnet (Exscript/Crypto/Paramiko modul= es). I'd like to have same=C2=A0environment=C2=A0in Windows team withou= t a lot of changes.=C2=A0

So installed =C2=A0CPy= thon 2.6.2 on the Windows machine(W2K8 R2) and installed above modules, the= n I can run the test scripts same as done in Linux environment.=C2=A0

However, I'd like = to use .Net feature(calling PS script/calling C# methods) in Windows=C2=A0e= nvironment=C2=A0so installed IronPython 2.6.2 with Ironclad to use CPython = library from IronPython. In the meantime, I got following errors. It looks = like having a compatibility issue when importing multiprocessing module use= d by Exscript.=C2=A0

Would you tell me how = to fix this issue(any multiprocessing module for IronPython, any alternativ= es?) or any workaround to use SSH/Telnet connection from IronPython?

Thank you,
Seungweon.

C= :\Users\Administrator>ipy -X:Frames
IronPython 2.6.2 (2.6.1092= 0.0) on .NET 4.0.30319.1
Type "help", "copyright&q= uot;, "credits" or "license" for more information.
>>> import os,sys
>>> print sys.path
=
['.', 'C:\\Users\\Administrator', 'C:\\Users\\Admi= nistrator', 'C:\\IronPython26\\Lib', 'C:\\IronPython26\\DLL= s', 'C:\\IronPython26', C:\\IronPython26\\lib\\site-packages= 9;, 'c:\\python26\\lib']
>>> import ironclad
>>> sys.path.append(&q= uot;c:\\python26\\lib")
>>> sys.path.append("c= :\\python26\\lib\\site-packages")
>>> sys.path.appe= nd("c:\\python26\\dlls")
>>> import Crypto
>>> import paramiko
>>> os.chdir("c:\\temp")
>>> im= port cisco
Traceback (most recent call last):
=C2=A0 Fi= le "<stdin>", line 1, in <module>
=C2=A0 File "c:\temp\brocade.py", line 28, in <module>=
=C2=A0 File "c:\python26\lib\site-packages\Exscript\__init_= _.py", line 26, in <module>
=C2=A0 File "c:\pytho= n26\lib\site-packages\Exscript\Queue.py", line 25, in <module>
=C2=A0 File "c:\python26\lib\multiprocessing\__init__.py", l= ine 63, in <module>
=C2=A0 File "c:\python26\lib\multi= processing\process.py", line 17, in <module>
ImportErr= or: No module named signal
>>> import Exscript
Traceback (most recent call las= t):
=C2=A0 File "<stdin>", line 1, in <module&= gt;
=C2=A0 File "c:\python26\lib\site-packages\Exscript\__in= it__.py", line 26, in <module>
=C2=A0 File "c:\python26\lib\site-packages\Exscript\Queue.py"= ;, line 25, in <module>
=C2=A0 File "c:\python26\lib\m= ultiprocessing\__init__.py", line 63, in <module>
=C2= =A0 File "c:\python26\lib\multiprocessing\process.py", line 17, i= n <module>
ImportError: No module named signal

--f46d042de92584ae0e04d7e742fb-- --===============0036000188== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users --===============0036000188==-- From no_reply at codeplex.com Tue Mar 19 08:23:20 2013 From: no_reply at codeplex.com (CodePlex) Date: 19 Mar 2013 00:23:20 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 3/18/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Problem with ssl.py 2. [New issue] can't compile IronPython solution configuration "Win8Release" 3. [New issue] using IronPython in .Net 4.5 applications - Homogenous appdomain error ---------------------------------------------- ISSUES 1. [New issue] Problem with ssl.py http://ironpython.codeplex.com/workitem/33892 User EduardRakov has proposed the issue: "Hello! I have installed IronPython (version = '2.7.3 (IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.17929 (32-bit))'). When I wanted to use API DropBox (dropbox-python-sdk-1.5.1, https://www.dropbox.com/developers/core/setup#python ) I couldn't do it. StackTrace is attached (see section "StackTrace DropBox API" in StackTrace.txt file). After I'd got this error I downloaded tests for IronPython from https://ironpython.svn.codeplex.com/svn/IronPython_Main/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/test/ and ran it. After I'd run it I got exceptions (see section "StackTrace test_ssl.py" in StackTrace.txt file). Could you help me with this issue please?"----------------- 2. [New issue] can't compile IronPython solution configuration "Win8Release" http://ironpython.codeplex.com/workitem/33893 User RoelBSS has proposed the issue: "We are having trouble compiling IronPython in the solution configuration "Win8Release". Following errors occur: Error 276 The type name 'TypeBuilder' could not be found. This type has been forwarded to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Consider adding a reference to that assembly. C:\swo\main-ipy-2.7.3\Runtime\Microsoft.Scripting\Utils\ReflectionUtils.cs 74 44 Microsoft.Scripting Error 277 Metadata file 'C:\swo\main-ipy-2.7.3\bin\Win8Release\Microsoft.Scripting.dll' could not be found C:\swo\main-ipy-2.7.3\Runtime\Microsoft.Dynamic\CSC Microsoft.Dynamic Error 278 Metadata file 'C:\swo\main-ipy-2.7.3\bin\Win8Release\Microsoft.Dynamic.dll' could not be found C:\swo\main-ipy-2.7.3\Languages\IronPython\IronPython\CSC IronPython Error 279 Metadata file 'C:\swo\main-ipy-2.7.3\bin\Win8Release\Microsoft.Scripting.dll' could not be found C:\swo\main-ipy-2.7.3\Languages\IronPython\IronPython\CSC IronPython Error 280 Metadata file 'C:\swo\main-ipy-2.7.3\bin\Win8Release\IronPython.dll' could not be found C:\swo\main-ipy-2.7.3\Languages\IronPython\IronPython.Modules\CSC IronPython.Modules Error 281 Metadata file 'C:\swo\main-ipy-2.7.3\bin\Win8Release\Microsoft.Dynamic.dll' could not be found C:\swo\main-ipy-2.7.3\Languages\IronPython\IronPython.Modules\CSC IronPython.Modules Error 282 Metadata file 'C:\swo\main-ipy-2.7.3\bin\Win8Release\Microsoft.Scripting.dll' could not be found C:\swo\main-ipy-2.7.3\Languages\IronPython\IronPython.Modules\CSC IronPython.Modules Error 383 The type or namespace name 'TypeBuilder' could not be found (are you missing a using directive or an assembly reference?) C:\swo\main-ipy-2.7.3\Runtime\Microsoft.Scripting\Utils\ReflectionUtils.cs 74 44 Microsoft.Scripting Help is much appreciated.."----------------- 3. [New issue] using IronPython in .Net 4.5 applications - Homogenous appdomain error http://ironpython.codeplex.com/workitem/33894 User RoelBSS has proposed the issue: "When we try to use a .Net 4.5 compiled version of IronPython in an application, we get the following error in our development environment: "Dynamic operations can only be performed in homogenous AppDomain." The few threads in forums that seem to exist about this topic are either unanswered or refer to the setting an app setting in the app.config file, like this: This however does not fix our problem. Any ideas would be greatly appreciated!" ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Wed Mar 20 08:22:48 2013 From: no_reply at codeplex.com (CodePlex) Date: 20 Mar 2013 00:22:48 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 3/19/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] PythonDictionary.Contains(KeyValuePair) doesn't check value ---------------------------------------------- ISSUES 1. [New issue] PythonDictionary.Contains(KeyValuePair) doesn't check value http://ironpython.codeplex.com/workitem/33904 User rumzeus has proposed the issue: "PythonDictionary implements ICollection> which has a method bool Contains(KeyValuePair kvp). The current implementation only checks if the key is contained. In contrast the System.Collections.Generic.Dictionary implementation checks both the key and the value. Is this intentional? There is already a ContainsKey(TKey key) method that can be used if the current behaviour is desired. Tthe documentation says: "Implementations can vary in how they determine equality of objects". So I guess this is not strictly wrong. It seems quite surprising though. http://msdn.microsoft.com/en-us/library/k5cf1d56.aspx" ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From leapingidiots at gmail.com Fri Mar 22 03:48:07 2013 From: leapingidiots at gmail.com (Andrew Evans) Date: Thu, 21 Mar 2013 19:48:07 -0700 Subject: [Ironpython-users] Using Silverlight 5 in IronPython Message-ID: Hello I am wondering if it is possible to import the json module into a Silverlight 5 application. Would I need to compile it into a xap? If so how can I do this I am having no luck running a XAP file in Chiron Can I do this the other way Silverlight Application
cell table 1 cell table 2 cell table 3 cell table 4 cell table 5
cell table 1
service
2
cell table 3 cell table 5
cell table 1 cell table 4 cell table 5 cell table 5
cell table 2 cell table 4
cell table 1 cell table 2 cell table 3 cell table 4
cell table 1 cell table 2 cell table 3 cell table 4 cell table 5
==================================================== biblg.zip -> __init__.py , evgood.py , reggood.py ==================================================== registr_UI.js --> function registerDlrFn1(fn) { DlrFn1 = fn; } function registerDlrFn2(fn) { DlrFn2 = fn; } function registerDlrFn3(fn) { DlrFn3 = fn; } =============================================== __init__.py --> # kkkk pass =============================================== evgood.py --> # -*- coding: utf-8 -*- from System.Windows.Browser import HtmlPage def ctl_sbutton1_onclick(s,e): HtmlPage.Window.Alert(str(s.Id)) def ctl_sbutton2_onclick(s,*e): HtmlPage.Document.my_cell_9.innerHTML=str(s.screenX) def ctl_sbutton3_onclick(s,e): HtmlPage.Window.Alert("ctl_sbutton3_onclick") =============================================== reggood.py --> # -*- coding: utf-8 -*- from System import EventHandler from System.Windows.Browser import HtmlPage, HtmlEventArgs import biblg.evgood as event HtmlPage.Document.say_hello.AttachEvent('onclick', EventHandler[HtmlEventArgs](event.ctl_sbutton1_onclick)) # another option HtmlPage.Window.Invoke("registerDlrFn1", EventHandler[HtmlEventArgs](event.ctl_sbutton1_onclick)) HtmlPage.Window.Invoke("registerDlrFn2", EventHandler[HtmlEventArgs](event.ctl_sbutton2_onclick)) HtmlPage.Window.Invoke("registerDlrFn3", EventHandler[HtmlEventArgs](event.ctl_sbutton3_onclick)) =============================================== From sepatan at sibmail.com Fri Mar 22 05:10:45 2013 From: sepatan at sibmail.com (sepatan at sibmail.com) Date: Fri, 22 Mar 2013 11:10:45 +0700 (NOVT) Subject: [Ironpython-users] Using Silverlight 5 in IronPython In-Reply-To: References: Message-ID: <50282.83.172.33.173.1363925445.squirrel@www.sibmail.com> > Hello I am wondering if it is possible to import the json module into a > Silverlight 5 application. Would I need to compile it into a xap? > > If so how can I do this I am having no luck running a XAP file in Chiron > > Can I do this the other way > >