goto statement
Maxim Kasimov
kasimov at i.com.ua
Thu Apr 21 12:42:02 EDT 2005
pythonUser_07 wrote:
> Hi,
>
> Have you tried the triple quote comment technique?
>
> I am assuming you want to skip some code for the time being.
>
> Here is an example
>
> print "hello world"
> ''' COMMENT OUT FOR NOW
> someFunction()
> someOtherFunction()
> '''
> print "goodbye world"
>
> This means that you have only two locations to remove the blocked out
> code. This is identical to having to remove the goto statement and the
> marker.
>
> Hope that helps.
>
how do use this here:
print "hello world"
...
...
...
sql = '''
some long query
'''
...
...
...
sql = """
another query
"""
...
...
...
print "goodbye world"
--
Best regards,
Maxim Kasimov
mailto: kasimov at i.com.ua
More information about the Python-list
mailing list