Dear Dino,
Thanks for the support.
The workaround you provided is quite OK for me.
The only thing I wanted to know is how to inherit "file" classs in IPY 1.1.
Regards,


2008/1/3, Dino Viehland <[EMAIL PROTECTED]>:
> FYI this one is already fixed in the v2.0 tree, but I'll look at fixing it in 
> v1.1.1 as well - it's a little more invasive than I'd usually want but it 
> shouldn't be too bad.
>
> But if you want to work around it for the time being you can replace __init__ 
> w/ __new__:
>
> class TESTINGwrite(file):
>     def __new__(cls, fname):
>         return file.__new__(cls,fname,"w",1)
>     def writesomething(self):
>         self.write("Hi there\n")
>
> x = TESTINGwrite("testing_TMP.txt")
> x.writesomething()
>
> We just have the functionality of __init__ in __new__ currently.  And if you 
> want to always work regardless of version it looks like you can just define 
> both __new__ and __init__.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of HEMMI, Shigeru
> Sent: Sunday, December 23, 2007 4:00 AM
> To: Discussion of IronPython
> Subject: Re: [IronPython] IronPython 1.1.1 wish-list?
>
> Hello,
>
> If the bug,
> http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2007-February/004500.html
> is fixed or somebody shows me a good example how to inherit "file"
> class in IronPython
> 1.1,  I will be happy.
>
> 2nd, please provide quit() function, which eases my interactive
> IronPython  session.
>
> Regards,
>
>
>
>
> 2007/12/18, Dino Viehland <[EMAIL PROTECTED]>:
> >
> >
> >
> >
> > Are there any particular bugs you'd like to see fixed in IronPython 1.1.1?
> >
> >
> >
> > We're planning on updating the 1.1 release w/ a targeted set of bug fixes.
> > Unfortunately we've started to use the CodePlex bug list to track primarily
> > 2.0 bugs.  We can still use this to find the highest ranked bugs that aren't
> > fixed in v1.1 and target those to be back ported - but it's possible we
> > might miss something important.  So I'd thought I'd ask: what do you want
> > fixed?
> >
> >
> >
> > Note the idea here is to keep these fixes small and keep the release stable,
> > so please no fix "type(type) is type" J.  And of course if you don't know
> > how bad it'll be feel free to suggest it anyway.  Thanks!
> > _______________________________________________
> > Users mailing list
> > Users@lists.ironpython.com
> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> >
> >
> _______________________________________________
> Users mailing list
> Users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to