[Python-ideas] [Suspected Spam]Re: Access (ordered) dict by index; insert slice

2020-07-11 Thread Stephen J. Turnbull
Christopher Barker writes: > > d.keys()[-1] vs list(d.keys())[-1] > > > > Should be compared with `next(reversed(d.keys()))`, or `next(reversed(d))`. > > > > Same point - the idea is to have indexing syntax. I'm a-gonna make you REAALLY MAAD. You can have it. d.popitem()[0] :-)

[Python-ideas] [Suspected Spam]Re: Access (ordered) dict by index; insert slice

2020-07-02 Thread Stephen J. Turnbull
Stestagg writes: > Having said that, it's a 70-line change, so fixing that up should be > trivial once the change has some agreement behind it. I still don't see a plausible use case that isn't well served by list(view). The OP's "addressing database columns" is superficially plausible, but th