[Python-es] Encender bits individuales en variable

Jose Caballero jcaballero.hep en gmail.com
Vie Jun 25 20:29:14 CEST 2010


>
>
>
>        b_1Shot= 1
>        b_Pol= 2
>        b_R0= 4
>        b_R1= 8
>        b_TLF= 32
>        b_THF= 64
>        byt_Configuracion= 0
>
> UnboundLocalError: local variable 'bit_Configuracion' referenced before
> assignment
>



byt_Configuracion != bit_Configuracion
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20100625/489b8aeb/attachment.html>


Más información sobre la lista de distribución Python-es