[pyar] Preguntas para saber si sabe Python

Roberto Alsina ralsina en netmanagers.com.ar
Vie Ago 24 13:55:42 ART 2012


On 08/24/2012 01:51 PM, Sebastian Bassi wrote:
> 2012/8/24 Roberto Alsina <ralsina en netmanagers.com.ar>:
>> En python 2.x no existe el tipo bytes, y lo que es el tipo bytes en python 3
>> es el tipo string. Era pregunta con trampa?
>
> En py2 son lo mismo (bytes y string).
>
>>>> bytes('s')=='s'
> True

En python >= 2.6, no en python 2.



More information about the pyar mailing list