Getting method name from within the class method
yellowalienbaby at gmail.com
yellowalienbaby at gmail.com
Wed Oct 18 18:14:20 EDT 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