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
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
> >>>
> >> 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
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
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
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
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
> > 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
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
---