lipaika a écrit :
Bonjour, Je voudrais savoir s'il est possible d'alléger mon expression : if str_table not in vect_new_tables and str_table not in vect_del_tables and str_table not in vect_tables_temp :
par exemple, du style : if str_table not in (vect_new_tables and vect_del_tables and vect_tables_temp) :
Autre petite question, est-il possible de couper une instruction pour qu'elle tienne sur 2 lignes, avec quel mot magique est-ce possible??
|
On peut savoir quelle est la logique du truc?
Genre que sont str_table, vect_new_tables, vect_del_tables et vect_tables_temp?
Et pourquoi ces noms à la con?
Et tu veux faire quoi exactement?
Sinon, tu peux tenter un truc du style
Code :
if str_table not in (set(vect_new_tables) | set(vect_del_tables) | set(vect_tables_temp))
|
En gardant à l'esprit que ça crée au moins 4 sets, sinon 5.
Message édité par masklinn le 01-08-2006 à 20:36:44
---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?