Re: [IronPython] Python Standard Library in IronPython

2008-11-18 Thread Kenneth Miller
u. =) ~js -Original Message- From: [EMAIL PROTECTED] [mailto:users- [EMAIL PROTECTED] On Behalf Of Dan Eloff Sent: Friday, October 31, 2008 2:06 PM To: Discussion of IronPython Subject: Re: [IronPython] Python Standard Library in IronPython On Fri, Oct 31, 2008 at 3:05 PM, Kenneth Mil

Re: [IronPython] How do I test if a variable is defined?

2008-11-05 Thread Kenneth Miller
Can't you just do.. 'variable_name' in locals() or 'variable_name' in dir() Regards, Ken On Nov 5, 2008, at 4:07 AM, Michael Foord wrote: Tony Meyer wrote: On Wed, Nov 5, 2008 at 8:06 AM, Michael Foord <[EMAIL PROTECTED] > wrote: Marty Nelson wrote: How do I test in Iron Python (in py

Re: [IronPython] Loading Python modules from Silverlight Isolated Storage

2008-11-04 Thread Kenneth Miller
Thanks for the reply. Would you mind elaborating? Regards, Ken On Nov 4, 2008, at 8:47 AM, Michael Foord wrote: Kenneth Miller wrote: All, The problem is illustrated here: This code will work properly: http://paste.pocoo.org/show/90071/ This code produces an error: http

Re: [IronPython] Loading Python modules from Silverlight Isolated Storage

2008-11-04 Thread Kenneth Miller
All, The problem is illustrated here: This code will work properly: http://paste.pocoo.org/show/90071/ This code produces an error: http://paste.pocoo.org/show/90072/ Regards, Ken On Nov 4, 2008, at 4:42 AM, Michael Foord wrote: Kenneth Miller wrote: It was proven to me that while exec

Re: [IronPython] Loading Python modules from Silverlight Isolated Storage

2008-11-03 Thread Kenneth Miller
>>> exec 'a = 1' in foo.__dict__ >>> foo.a 1 >>> There's probably a better ("more Pythonic") way to do this, but I'm sleepy... On Mon, Nov 3, 2008 at 11:40 PM, Kenneth Miller <[EMAIL PROTECTED]> wrote: All, Is it possible to hav

[IronPython] Loading Python modules from Silverlight Isolated Storage

2008-11-03 Thread Kenneth Miller
All, Is it possible to have python load modules from the silverlight isolated storage? My app needs to dynamically generate and import python code to run. Regards, Ken ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.co

Re: [IronPython] Python Standard Library in IronPython

2008-10-31 Thread Kenneth Miller
30, 2008 at 5:27 PM, Kenneth Miller <[EMAIL PROTECTED]> wrote: So, Before I get to into this, does this project hold merit for anyone but myself? Would anyone outside of Seo and I like to see it move forward. I like to spend my time on worthwhile adventures. Like I said before, the m

Re: [IronPython] Python Standard Library in IronPython

2008-10-30 Thread Kenneth Miller
library operations (even if mapped to .NET) in Silverlight apps without having to include the python standard library itself. Regards, Ken On Oct 30, 2008, at 3:48 PM, Michael Foord wrote: Seo Sanghyeon wrote: 2008/10/31 Michael Foord <[EMAIL PROTECTED]>: Kenneth Miller wrote:

Re: [IronPython] Python Standard Library in IronPython

2008-10-30 Thread Kenneth Miller
, Seo Sanghyeon wrote: 2008/10/30 Kenneth Miller <[EMAIL PROTECTED]>: Seo, Can you give me access to this code? I signed up on bitbucket as xkenneth. Done. -- Seo Sanghyeon ___ Users mailing list Users@lists.ironpython.com http://lists.iro

Re: [IronPython] Python Standard Library in IronPython

2008-10-29 Thread Kenneth Miller
ited to work on a joint project. Regards, Ken On Oct 29, 2008, at 2:19 AM, Seo Sanghyeon wrote: 2008/10/29 Kenneth Miller <[EMAIL PROTECTED]>: How would these modules be structured, I'd simply just recreate what we need out of the standard library using .NETs classes. So for

Re: [IronPython] Python Standard Library in IronPython

2008-10-29 Thread Kenneth Miller
Seo, Can you give me access to this code? I signed up on bitbucket as xkenneth. Regards, Ken On Oct 29, 2008, at 2:19 AM, Seo Sanghyeon wrote: 2008/10/29 Kenneth Miller <[EMAIL PROTECTED]>: How would these modules be structured, I'd simply just recreate what we need

Re: [IronPython] Python Standard Library in IronPython

2008-10-29 Thread Kenneth Miller
Would have used it had I known about it, but it doesn't provide as python of an interface as I'd like, so I think I'll stick with my work for now. Regards, Ken On Oct 29, 2008, at 1:16 AM, Seo Sanghyeon wrote: 2008/10/29 Kenneth Miller <[EMAIL PROTECTED]>: http://git

Re: [IronPython] Python Standard Library in IronPython

2008-10-28 Thread Kenneth Miller
All, This is a good idea, and I actually planned to do this for path manipulation some time ago, named "clipath" (analogy to "ntpath", "posixpath", etc.). Another obvious candidate is "clidom", reusing .NET's DOM classes. How would these modules be structured, I'd simply just recreate what

[IronPython] Python Standard Library in IronPython

2008-10-28 Thread Kenneth Miller
All, I know I can access just about everything in the python standard library by simply adding it to the ironpython path, however this is not a good solution when writing dynamic applications in Silverlight. I can include the standard library with my silverlight application, but this b

[IronPython] Current working directory in Silverlight?

2008-10-27 Thread Kenneth Miller
All, Trying to execute this code in Silverlight: from System.IO import Directory Directory.GetCurrentDirectory() How do I handle directories in silveright? I know it's a bit different since they're packaged. I need to be able to keep track of a file's location inside the p

[IronPython] Getting started with IronPython and Silverlight

2008-10-23 Thread Kenneth Miller
All, I'm just getting started with IronPython and Silverlight, and to be honest I have not experience with C#. Are there are any basic tutorials or material that would kick me off on both of these subjects? I've been fiddling with the the SDL-SDK for a little while and I've written so

Re: [IronPython] XML Support in IronPython

2008-10-20 Thread Kenneth Miller
Seo, It's throwing an import error. I downloaded the latest version of mono and ironpython. "mono ipy.exe test.py" test.py simply reads.. "import xml.dom.minidom" Regards, Ken On Oct 20, 2008, at 1:51 PM, Seo Sanghyeon wrote: 2008/10/21 Kenneth

Re: [IronPython] XML Support in IronPython

2008-10-20 Thread Kenneth Miller
10/20 Kenneth Miller <[EMAIL PROTECTED]>: I've just built my project on top of minidom, for which there is no support in IronPython, so I'm wondering if there are any compatibility abstractions and/or what are my options for XML processing under ironpython? Yes there is.

[IronPython] XML Support in IronPython

2008-10-19 Thread Kenneth Miller
All, I've just built my project on top of minidom, for which there is no support in IronPython, so I'm wondering if there are any compatibility abstractions and/or what are my options for XML processing under ironpython? Regards, Ken ___ Users