Getting method name from within the class method

yellowalienbaby at gmail.com yellowalienbaby at gmail.com
Thu Oct 19 00:14:20 CEST 2006


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




More information about the Python-list mailing list