From: Peter V. <ve...@em...> - 2003-05-06 12:51:50
|
Hi, In the numarray source code Bool is defined as a typedef to char. Does th= e=20 Bool array type correspond to the Int8, or the UInt8 type? If I recall=20 correctly, the char type may be signed or unsigned. Can I make any=20 assumptions about the C type used to implement Bool at all? I guess at the Python level it does not matter what actual C type is used= to=20 implement bool arrays as it only represents boolean values. However, at t= he=20 level of C extensions I would like to deal with Bool arrays by calling=20 existing functions written for the appropiate C type. That would be somew= hat=20 simpler if Bool is always garantueed to be either a unsigned or a signed = char=20 type.=20 Cheers, Peter. --=20 Dr. Peter J. Verveer Cell Biology and Cell Biophysics Programme EMBL Meyerhofstrasse 1 D-69117 Heidelberg Germany Tel. : +49 6221 387245 Fax : +49 6221 387242 Email: Pet...@em... |