[Pyrex] 8 bit integer VS. character
Sun Wei
ruoruo at 263.sina.com
Mon Sep 1 18:36:10 CEST 2003
When I define a extension type with a attribute like this:
cdef class Foo:
cdef public char value
I want to the attribute "value" act as a 8 bit signed integer, but I get a character.
foo = Foo()
foo.value = 0
will cause a exception.
Is there another C type Pyrex supports like "byte"?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20030902/d8764b70/attachment.html
More information about the Pyrex
mailing list