[Pyobjc-dev] NSNumber doesn't seem to have a proxy for booleans
Brought to you by:
ronaldoussoren
From: Paul T. <spo...@ma...> - 2009-04-13 21:20:41
|
I have a category on NSNumber that I'm using and I can't access it from Python when the NSNumber holds a bool because I get a builtin bool rather than a proxy. for example: >>> type( NSNumber.numberWithInt_(1) ) <class 'objc._pythonify.OC_PythonInt'> >>> type( NSNumber.numberWithBool_(1) ) <type 'bool'> What gives? Is this intentional? Any idea how to work around it? Paul. |