A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-February/085805.html below:

[Python-Dev] pprint(iterator)

[Python-Dev] pprint(iterator) [Python-Dev] pprint(iterator)Walter Dörwald walter at livinglogic.de
Mon Feb 2 09:33:00 CET 2009
Paul Moore wrote:
> 2009/1/30 Walter Dörwald <walter at livinglogic.de>:
>> Paul Moore wrote:
>>
>>> [...]
>>> In all honesty, I think pkgutil.simplegeneric should be documented,
>>> exposed, and moved to a library of its own[1].
>> http://pypi.python.org/pypi/simplegeneric
> 
> Thanks, I was aware of that.

I wasn't aware of the fact that simplegeneric is part of the stdlib, 
albeit in a strange spot.

> I assume that the barrier to getting this
> into the stdlib will be higher than to simply exposing an
> implementation already available in the stdlib.

At least we'd need documentation and tests. And of course the code must 
be stable and there must be someone willing to maintain it (then again 
it's less than 40 lines of code).

There should be enough third-party module that use it to justify making 
simplegeneric an official part of the stdlib.

The best spot for generic() is probably in the functools module.

> To be honest, all I
> would like is for these regular "let's have another special method"
> discussions to become unnecessary...

Me too.

Servus,
    Walter



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4