[Python-es] Encender bits individuales en variable

Jose Caballero jcaballero.hep en gmail.com
Vie Jun 25 21:37:37 CEST 2010


El 25 de junio de 2010 15:23, Jesús Genicio <jgenicio en gmail.com> escribió:

> El vie, 25-06-2010 a las 14:29 -0400, Jose Caballero escribió:
> >
> >
> >                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
>
> Si eso ya me dí cuenta de ello al poco de enviar el mensaje, pero aún
> así me da el mismo fallo.
>
> Traceback (most recent call last):
>   File "ds1631.py", line 258, in cambio_grupo_resolucion
>    bit_Conf ^= b_R0
> UnboundLocalError: local variable 'bit_Conf' referenced before
> assignment
>



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


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