Message154472
| 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:01 | eric.araujo | set | recipients:
+ eric.araujo, barry, pitrou, tarek, alexis |
| 2012年02月27日 12:50:01 | eric.araujo | set | messageid: <1330347001.54.0.914425209717.issue13167@psf.upfronthosting.co.za> |
| 2012年02月27日 12:50:00 | eric.araujo | link | issue13167 messages |
| 2012年02月27日 12:50:00 | eric.araujo | create |
|