[Pyrex] Possible bug with """

Edward C. Jones edcjones at erols.com
Tue Apr 29 15:21:47 CEST 2003


Greg Ewing wrote:

>If you're trying to use it as a multi-line comment,
>you're out of luck, I'm sorry. Use a real comment.
>  
>
cdef class A_Struct:
    """ A doc string """
    cdef int c_i
    """ This comment gets the message
        "Executable statement not allowed here"
    """
    def twiddle(self):
        pass
    """ This comment gets the message
        "Executable statement not allowed here"
    """
In Python, triple quoted comments _are_ real comments. This difference 
between Python and Pyrex (and all other differences) needs to be documented.

Thanks,
Ed Jones






More information about the Pyrex mailing list