[Pyrex] Error on string default argument(Pyrex 0.9.2.1)

Atsuo Ishimoto ishimoto at gembook.org
Thu May 6 08:43:39 CEST 2004


Hi,

Following Pyrex code generates invalid C code:

class C:
    def xxx(self, p="a b"):
        pass

Pyrex doesn't generate __pyx_k2p declaration, so C compiler reports
undefined symbol error.  Default arguments string with non-keyword
characters(such as "a b" or "") cause this error.

Regards,
--------------------------
Atsuo Ishimoto
ishimoto at gembook.org
Homepage:http://www.gembook.jp





More information about the Pyrex mailing list