[Python-Dev] PEP 376 - get_egginfo_files

P.J. Eby pje at telecommunity.com
Sun Jul 5 20:32:48 CEST 2009


At 05:26 PM 7/5/2009 +0100, Paul Moore wrote:
>def get_distribution(name):
>     for d in get_distributions():
>         if d.name == name:
>             return d
>     return None

Btw, this is broken code anyway, because it's not handling 
case-insensitivity or name canonicalization.  (I've mentioned these 
issue previously on the distutils-sig.)



More information about the Python-Dev mailing list