Hi,

I found this code in the struct_conversion.pyx test:

----------------------------------
    >>> test_constructor_kwds(1.25, 2.5, 128)
    {'y': 2.5, 'x': 1.25, 'color': 128}

...


def test_dict_construction(x, y, color):
    cdef Point p = {'color': color, 'x': x, 'y': y}
    return p

def test_constructor_kwds(x, y, color):
    cdef Point p = Point(x=x, y=y, color=color)
    return p
----------------------------------

Should we really base this feature on byte strings instead of unicode strings?

Note that the doctest at the top fails in Py3 anyway, as the repr() of a
byte string has a leading 'b'.

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

Reply via email to