Gabriel Genellina wrote:
> At Wednesday 18/10/2006 18:59, Mitko Haralanov wrote:
>
> > > >>> class test(object):
> > > ... def a_method(self,this,that):
> > > ... print self.a_method.__name__
> >
> >Doing the above will obviously work!
> >
> >However, I don't want to have to use the name of the
> for f in $(ls)
> do
> sed -e "s/print self.a_method.__name__/print self.new_name.__name/g"
> done
thats a terrible bit of broken shell code, sorry !
--
http://mail.python.org/mailman/listinfo/python-list
Mitko Haralanov wrote:
> On 18 Oct 2006 14:38:12 -0700
> [EMAIL PROTECTED] wrote:
>
> > >>> class test(object):
> > ... def a_method(self,this,that):
> > ... print self.a_method.__name__
>
> Doing the above will obviously work!
>
> However, I don't want to have to use the name of the function i
Mitko Haralanov wrote:
> I need to be able to get the name of the currently executed method
> within that method. I know that the method object does have the
> __name__ attribute but I know know how to access it from withing the
> method.
>
> Something like this:
>
> class A:
>
> def a_me
Hi,
I'm trying to get bicycle repair man to work with idle. I have
installed repair man, and pasted the few entries needed into the
config-extensions.def, but when i edit a module with idle i see no
bicycle repair man menu. Am I missing anything else I should be doing?
Thanks,
Matt.
--
http:/
Fredrik Lundh wrote:
> Matthew Warren wrote:
>
> > I have the following code that implements a simple recursive tree like
> > structure.
> >
> > The trouble is with the GetTreeBranch function, the print statement
> > prints a valid value but the return immediatley afterward doesn't return
> > anyt