2011/10/25 Diego Barrera <[email protected] non riesco ad impostare un test tipoif type(x) is IntType: faiqualcosa() return elif type(x) is LongType: faiqualcosaltro() return elif type(x) is FloatType: faiqualcosaltroancora() return
Python 3.1 sulla mia macchina >>type(1) is int True >>class a: ... pass >>b = a() >>type(b) == a True Questo ad una prima occhiata, può essere utile? -- Wyrmskull _______________________________________________ Python mailing list [email protected] http://lists.python.it/mailman/listinfo/python
