E
Ernie
Hi,
Whats the legal way in Python to embed comments in Python code?
Example:
def foo(a <:int>, b <:float>): <:array>
return [a, b]
Want the CPython interpreter to ignore the <:int>, <:float> and
<:array>(this one can be written as #array). Using triple quoted
strings would be longer and is invalid syntax. This would be
extremely useful for those who write tools for processing Python
scripts. In C/C++, this would be no problem with /* */.
Regards,
Ernie
Whats the legal way in Python to embed comments in Python code?
Example:
def foo(a <:int>, b <:float>): <:array>
return [a, b]
Want the CPython interpreter to ignore the <:int>, <:float> and
<:array>(this one can be written as #array). Using triple quoted
strings would be longer and is invalid syntax. This would be
extremely useful for those who write tools for processing Python
scripts. In C/C++, this would be no problem with /* */.
Regards,
Ernie