homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients alexis, barry, eric.araujo, pitrou, tarek
Date 2012年02月27日.12:50:00
SpamBayes Score 1.2686864e-07
Marked as misclassified No
Message-id <1330347001.54.0.914425209717.issue13167@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012年02月27日 12:50:01eric.araujosetrecipients: + eric.araujo, barry, pitrou, tarek, alexis
2012年02月27日 12:50:01eric.araujosetmessageid: <1330347001.54.0.914425209717.issue13167@psf.upfronthosting.co.za>
2012年02月27日 12:50:00eric.araujolinkissue13167 messages
2012年02月27日 12:50:00eric.araujocreate

AltStyle によって変換されたページ (->オリジナル) /