[Python-Dev] range objects in 3.x

Antoine Pitrou solipsis at pitrou.net
Fri Sep 23 23:06:24 CEST 2011


Le Fri, 23 Sep 2011 13:23:26 -0700,
Ethan Furman <ethan at stoneleaf.us> a écrit :
> 
> So the question becomes, Why does it implement the Sequence ABC? 

Because these operations are trivial to implement and it would be
suboptimal to have to instantiate the full list to run them?





More information about the Python-Dev mailing list