read a password protected xls file

2009-01-12 Thread thomas . steffen75
Hello,
how can I read (and parse) a password protected xls file, perhaps with
the package xlrd?
Thanks for your hints, Thomas
--
http://mail.python.org/mailman/listinfo/python-list


the name of a method

2009-01-15 Thread thomas . steffen75
Hello,

I have a Class:

class myClass:
def __init__(self):
# do something
print "name of class = " +  self.__class__.__name__

def myMethod(self):
# do something
print "name of method = " + "myMethod"
return

...

I print the name of the class with self.__class__.__name__ in
__init__.
I want to print also in every method of myClass the name of the
method.
How can I get the name? I would not like to write e.g. "myMethod". Is
there a variable like self.__class__.__name__ for this?
Thanks for your hints, Thomas
--
http://mail.python.org/mailman/listinfo/python-list