Documentation string

sp00fD sp00fD at yahoo.com
Thu Aug 26 08:34:16 EDT 1999


Can someone tell me why the

def foo(self):
"""A method"""

won't work?

$ ./rcopy.py -p BACKUP ./foo /tmp
  File "./rcopy.py", line 18
    """A method"""
                 ^
SyntaxError: invalid syntax


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list