[issue16417] Integer converted in tuple without request

Rosa Maria report at bugs.python.org
Tue Nov 6 15:53:45 CET 2012


Rosa Maria added the comment:

Thanks Thanks Thanks Thanks Thanks Thanks Thanks you very much,

You are going to go to heaven with your shoes included.

Best regards and have a nice year end.

Rosa María

 
"Cuídate de la Ciencia que no Llora, de la Filosofía que no Ríe y de la Grandeza que no se inclina ante los niños"

"Madre es el nombre de dios en los labios y en los corazones de todos los niños"

>________________________________
> De: R. David Murray <report at bugs.python.org>
>Para: rosemeer at yahoo.com.mx 
>Enviado: Lunes, 5 de noviembre, 2012 17:17:35
>Asunto: [issue16417] Integer converted in tuple without request
> 
>
>R. David Murray added the comment:
>
>You did request a tuple:
>
>  r = a - q * b,
>
>That is equivalent to
>
>  r = (a - q * b,)
>
>which is a single element tuple.
>
>I had to put in some print statements in your loop to find that, it wasn't obvious.  This is perhaps a disadvantage of Python's tuple notation, but the benefits of the notation outweigh this small disadvantage, I think.
>
>----------
>nosy: +r.david.murray
>resolution:  -> invalid
>stage:  -> committed/rejected
>status: open -> closed
>type: crash -> behavior
>
>_______________________________________
>Python tracker <report at bugs.python.org>
><http://bugs.python.org/issue16417>
>_______________________________________
>
>
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16417>
_______________________________________


More information about the Python-bugs-list mailing list