Tuples !?!?

2007-12-11 Thread aaragao
Hi, Is the tuple comparison brooked in python ?!?!? Thanks. Try this and you will see funny things: # -*- coding: cp1252 -*- import random import csv import struct import array def gera_string(res): # acampo3 acampo3=((0,5,'muito reduzidos'),(6,20,'reduzidos'), (21,32,'satisfa

Re: Tuples !?!?

2007-12-11 Thread aaragao
Ok. This is small code. The problem is '2' != 2 there is a way of converting 'some number' in number ? Thanks. # -*- coding: cp1252 -*- import random import csv import struct import array # resultados para colocar nos campos def gera_string(res): # acampo3 acampo1=((0,5,'muito

Re: Tuples !?!?

2007-12-11 Thread aaragao
On 11 Dez, 22:02, [EMAIL PROTECTED] wrote: > Ok. This is small code. > > The problem is '2' != 2 there is a way of converting 'some number' in > number ? > > Thanks. > > # -*- coding: cp1252 -*- > import random > import csv > import struct > import array > > # resultados para colocar nos campos > d

Re: Tuples !?!?

2007-12-12 Thread aaragao
Ok people. No more discussions about this. I tought the conversion occurs automatic but it is not case. I'm a newbie on python. Thanks to everybody. ;-) On 12 Dez, 19:43, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Bjoern Schliessmann a écrit : > > > > > Bruno Desthuilliers wrote: > > >>[EMAI