Skip to content
  • Christoph Reiter's avatar
    Add pygi_gschar_from_py/pygi_guchar_from_py; add tests · 19943e1d
    Christoph Reiter authored
    The gvalue code had special code for handling G_TYPE_CHAR/UCHAR
    allowing as input roughly what u/int8 allows plus unicode.
    
    Since GI maps g(u)char to u/int8 it's a good idea that both support
    the same input ranges for numbers/bytes so that there is no difference
    between gtype/GI.
    
    pygi_gschar_from_py is a superset of gint8 + unicode.
    pygi_guchar_from_py is a superset of guint8 + unicode.
    19943e1d