On Tue, Sep 29, 2020 at 12:09 PM Sebastian Kreft <skreft@gmail.com> wrote:
On Tue, Sep 29, 2020 at 6:56 PM David Mertz <mertz@gnosis.cx> wrote:
I still think it would improve the PEP significantly if it added one case of mixed positional/keyword indexing. Lots of suggestions have floated by, and I don't care which one is used, but something to demonstrate that within the PEP.
I agree, that use case should ideally be one that could have get, set and delete semantics. As most of the examples provided seem to only be meant for accessing the data.
Both the units and source examples I gave would be very natural with set and del semantics; enough that I just assumed those were understood. Probably units moreso. internally_inches[4:6, 8:10, unit="meters"] = [[4, 2], [1, 3]] # Stores [[157.48, ...], [..., ...]] in block internally_cm[4:6, 8:10, unit="metres"] = [[4, 2], [1, 3]] # apparently allow two spellings del internally_inches[1, unit="furlong"] # Delete one row, unit ignored -- The dead increasingly dominate and strangle both the living and the not-yet born. Vampiric capital and undead corporate persons abuse the lives and control the thoughts of homo faber. Ideas, once born, become abortifacients against new conceptions.