[Tutor] Defining "bit" type

Vicent vginer at gmail.com
Sat Jan 24 16:38:29 CET 2009


On Sat, Jan 24, 2009 at 15:42, Vicent <vginer at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090124/a00fcc3c/attachment-0001.htm>


More information about the Tutor mailing list