Hi,

I wonder why this function declaration

    cpdef str cf_sd(str s='spam'):
        return s

leads to this embedded signature:

    >>> cf_sd.__doc__
    "cf_sd(str s='spam') -> str"

The return value follows PEP 3107 style annotations, but wouldn't it make
sense to use PEP 3107 style annotations also for the parameter types like this:

    >>> cf_sd.__doc__
    "cf_sd(s : str = 'spam') -> str"

?

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to