[Bf-python] Attribute casing

Ken Hughes khughes at pacific.edu
Fri Aug 26 18:50:33 CEST 2005


Stephen Swaney wrote:
> On Fri, Aug 26, 2005 at 09:12:53AM -0400, Joseph Gilbert wrote:
> 
>>Yehoshua Sapir wrote:
>>
>>
>>>>Obj.attriubte = TRUE  (or)
>>>
>>>I'd like to note that Python already has a 'True' built-in.
>>>
>>>
>>
>>Hehe good point Yehoshua. It was just a way for testing and returning 1 
>>or 0 (which is what a lot of our functions were throwing and taking). 
>>It's probably better to be using 'True' and 'False' for booleans! :)
> 
> Actually, I believe it is more correct to say "Python *now* has a
> 'True' built-in".  And yeah, we should use it.

I was just thinking about while work on the tp_getset stuff.  For the 
attributes which and getStuff()/setStuff() methods which takes 1 or  0, 
should we also have them use booleans (setters would accept both bools 
and ints)?

Ken





More information about the Bf-python mailing list