[Python-ideas] PEP 428 - object-oriented filesystem paths

Antoine Pitrou solipsis at pitrou.net
Sun Oct 14 14:13:21 CEST 2012


Le dimanche 14 octobre 2012 à 14:04 +0200, Yuval Greenfield a écrit :
> 
> Steven realized what currently happens and was suggesting doing it
> differently.
> 
> 
> Personally I really dislike the idea that
> 
> 
>     [i for i in p][0] != p[0]
> 
> 
> It makes no sense to have this huge surprise.

Again, p[0] just raises TypeError.

Regards

Antoine.






More information about the Python-ideas mailing list