![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: triple quoted strings as comments
From: Duncan Booth <duncan.booth@invalid.invalid>
Date: Tue Jan 31 2006 - 09:26:44 CET
dmh2000 wrote:
> example
How to find out for yourself:
>>> def fun(self):
x = 1
"""does this triple quoted string used as a comment
7 6 LOAD_CONST 2 (2)
14 12 LOAD_FAST 2 (x)
Further inspection shows that it hasn't even saved that second string as a
>>> print fun.func_code.co_consts
|