Éric Araujo <mer...@netwok.org> added the comment:

Thanks for the feedback.

> So, that would mean instead of
>   get_distribution(name).metadata['Version']
> you'd use
>   get_metadata(name)['Version']
> ?
> I'm not sure that's really buys you much.

Yeah.  At the moment we also have get_distribution(name).version, which I hope 
is not deemed ugly.

> I don't entirely remember my objections to the API, but I wonder if you 
> couldn't provide
> attribute access via properties on .metadata?  Or are there keys that can't 
> be mapped to
> identifiers (modulo typical dash-to-underscore mappings)?

In distutils1, the metadata fields were accessed as attributes.  I think using 
a mapping interface makes more sense and is nicer to use.

Rejecting for now.

----------
assignee: tarek -> eric.araujo
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13167>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to