07.02.20 20:41, Antoine Pitrou пише:
What you call "quite a bit of boilerplate" is just an additional line
of code.  If you are frequently being bothered by this (I'm curious
what the context is?), it's easy to add the desired helper function to
your own library.

In general, I don't think adding tons of trivial convenience helpers
is good API design, it ends up making the API more difficult to
discover and digest.

Concur with Antoine.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/HQ54BHXFVBTWZ6ATVJVCUIXFRWBKASZX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to