Embedded comments in Python?

Tonio notarangelotonio at tiscali.it
Fri May 7 16:12:06 EDT 2004


"Ernie" <eadorio at yahoo.com> ha scritto nel messaggio
news:5b42ae4.0405030330.5bba90f5 at posting.google.com...
> 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


Thanks Arkon, i'm a italian student and i need your tutorial.
If you have a example, can you send me in my email?
Thanks.






More information about the Python-list mailing list