On Wed, Sep 30, 2020 at 11:03:28AM -0300, Sebastian Kreft wrote:

> Have you considered using matrix[row=3], matrix[col=3]? In that case it
> would be a keyword only access. What advantages do you see with your
> current API?

Yes I have considered it.

One possible advantage is that with axis='row', I don't have to 
worry about, or test for, mutually exclusive keywords:

    matrix[row=2, col=3]  
    # can't get both a row and a column at the same time

But it's too early for me to worry too much about the exact choice of 
keywords. The PEP isn't even accepted yet :-)


-- 
Steve
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2XNCLEURXI4XWHZSOO7XEBVFY6RDCDCE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to