à l'interprète,Python a = a.reverse rend la liste vide?
a = [1,2,3,4]
a = a.reverse()
Suivant lorsque je tape un à l'interprète, je reçois rien. Il semble donc que a = a.reverse() génère une liste vide. Est-ce par conception? J'utilise python 2.5 sur Windows XP.
Documentation ici: http://docs.python.org/tutorial/datastructures.html#more-on-lists et ici: http://docs.python.org/library/stdtypes.html#mutable -sequence-types –