Generally speaking """ ... """ is reserbed for multiline string constats and those whihc need to contain both single and double quotes - such asHi!
Suppose you're writing a module & writing the definition of each function in that module in " or """. for example: a) "This function does this & that" or: b) """This function does blah blah blah"""
What are the differences between " and """ ? I'm using gedit & I wanna know a bit about coding
style.
"""Python's quotes are "'" and '"'"""
or """\ This is a multiline string that has one newline in it."""
[Note that there is no starting newline in the second example, as I escaped it off with the \].
To be very honest: I have a very strict boss who looks for bugs in my codes & he insists to know exactly which 'CODING STYLE AUTHORITATIVE SOURCE' I've based my coding style on when using " or """.
Can anybody out there give me some hint? Can anybody tell me where to find a document on python coding style.
tnx, Sara
Sara:
Show your boss
http://python.org/peps/pep-0008.html
Be sure he understands that you are not responsible for the title :-)
regards Steve -- Steve Holden +1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/
-- http://mail.python.org/mailman/listinfo/python-list