Message151755
On Sat, Jan 21, 2012 at 17:40, Giampaolo Rodola' <report@bugs.python.org> wrote:
>
> Given the different opinions about the API, I think it's best to expose the lowest
> level functionality as-is, and let the user decide what to do (read env vars first,
> suppress the exception, use a fallback, etc.).
As a Python user (and not a committer), I disagree.
As an user, I don't care too much where the function should be placed
(although I believe os or sys are sensible choices). What I do care is
that I want a extremely simple function that will "just work". Don't
make me add code for handling all the extra cases, such code should be
inside the function.
All this discussion about the API made me remember this presentation:
http://python-for-humans.heroku.com/
Also, I see no downside of using a Named Tuple. Issue 4285 actually
added a named tuple to the sys.version_info. |
|
Date |
User |
Action |
Args |
2012-01-22 00:20:02 | denilsonsa | set | recipients:
+ denilsonsa, loewis, amaury.forgeotdarc, pitrou, vstinner, giampaolo.rodola, eric.araujo, Arfrever, zbysz, neologix, rosslagerwall |
2012-01-22 00:20:02 | denilsonsa | link | issue13609 messages |
2012-01-22 00:20:01 | denilsonsa | create | |
|