Re: [IronPython] catching WebException from OpenReadAsync

2007-06-27 Thread Benjamin West
caught. Or alternatively, use the > args.Exception property to determine if there was an error in the read. > > - John > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin West > Sent: Wednesday, June 27, 2007 5:22 PM > To

[IronPython] catching WebException from OpenReadAsync

2007-06-27 Thread Benjamin West
Is this a bug or am I doing something wrong? $ cat webclient.py import clr import System from System import Uri from System.Net import WebClient, WebException class Foo: def __init__(self, uri): self.setup(uri) def setup(self, uri): self.uri = Uri

Re: [IronPython] stack overflow issue

2007-06-19 Thread Benjamin West
> >>> > >> Hmm... well the super call isn't necessary with Form and __init__. Does > >> that help? > > > > Why not? This is just a test case. In my application, __init__ does > > other things that are required. I also like the way ironpython treats > > keyword arguments for controls. > > > The c

Re: [IronPython] stack overflow issue

2007-06-19 Thread Benjamin West
On 6/19/07, Michael Foord <[EMAIL PROTECTED]> wrote: > Benjamin West wrote: > > http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=6014 > > > > Anyone have guidelines on avoiding this kind of thing, or if there is > > a fix that will make this a n

[IronPython] stack overflow issue

2007-06-19 Thread Benjamin West
http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=6014 Anyone have guidelines on avoiding this kind of thing, or if there is a fix that will make this a non-issue? -Ben codeplex butchers the white space: import clr clr.AddReference("System.Windows.Forms") from System.Windows.Form

Re: [IronPython] how to apply guid

2007-05-23 Thread Benjamin West
On 5/23/07, Dino Viehland <[EMAIL PROTECTED]> wrote: > We don't yet support defining attributes from Python. It's a common feature > request. > > For that you'll need to go to a static language like C# :(. > > I'm not so interested in defining attributes as applying them. My C# book says attrib

[IronPython] how to apply guid

2007-05-23 Thread Benjamin West
How do I apply a GUID or other attributes to a class? All the examples I can find in C# use attributes. I haven't read much regarding using attributes in IronPython, except for a few messages in the archive. Is there some workaround? -Ben ___ users ma

Re: [IronPython] urllib.urlopen(url).read() problem

2007-05-22 Thread Benjamin West
> > Am I doing something wrong? urllib2 works. > > Thanks, > > Ben West > > I think this is an IronPython bug. > > The simplest solution is to use FEPY_OPTIONS=network, which lets IPCE > to use FePy's version of socket, select, and ssl module. More here: > > http://fepy.sourceforge.net/doc/fepy-op

[IronPython] urllib.urlopen(url).read() problem

2007-05-22 Thread Benjamin West
I was having trouble using urllib. I tried using IP 1.1, and IPCE-r6 and got the same results. I also tried pointing ipy at the stdlib in both a cygwin install and a windows install with similar results. Am I doing something wrong? urllib2 works. Thanks, Ben West ---