On Sat, Jan 24, 2009 at 15:42, Vicent <vgi...@gmail.com> wrote:

>
>
>
> I mean, being "a" a boolean variable, it works as if it was a number, but
> every time I want to update the value of "a", I must put "False" for 0 and
> "True" for 1, or it will change into an integer variable.
>
> So, maybe I can adapt the definition of "bool" type, I don't know...
> Anyway, I want to manage 0's and 1's, not "Falses" and "Trues".
>




I don't know if it is possible to define a "bit" class based on the "bool"
type. I mean, I don't know how to do those kind of things...



-- 
Vicent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to