[Python-Dev] Keyword-only parameters (original) (raw)
Alexander Walters tritium-list at sdamon.com
Tue Apr 14 19:45:37 CEST 2015
- Previous message (by thread): [Python-Dev] Keyword-only parameters
- Next message (by thread): [Python-Dev] Keyword-only parameters
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Lacking anything anyone else says... the use case for keyword only arguments (where they actually make the code better rather than simply being different) is rather limited.
On 4/14/2015 13:40, Eric V. Smith wrote:
I'm working on adding a numericowner parameter to some tarfile methods (http://bugs.python.org/issue23193),
In a review, Berker suggested making the parameter keyword-only. I agree that you'd likely never want to pass just "True", but that "numericowner=True" would be a better usage. But, I don't see a lot of keyword-only parameters being added to stdlib code. Is there some position we've taken on this? Barring someone saying "stdlib APIs shouldn't contain keyword-only params", I'm inclined to make numericowner keyword-only. Is there anything stopping me from making it keyword-only? Thanks. Eric.
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/tritium-list%40sdamon.com
- Previous message (by thread): [Python-Dev] Keyword-only parameters
- Next message (by thread): [Python-Dev] Keyword-only parameters
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]