Python 2.6 Deprecation Warnings with __new__ Can someone explain why?
Dieter Maurer
dieter at handshake.de
Sun Oct 25 01:53:57 EDT 2009
Terry Reedy <tjreedy at udel.edu> writes on Fri, 23 Oct 2009 03:04:41 -0400:
> Consider this:
>
> def blackhole(*args, **kwds): pass
>
> The fact that it accept args that it ignores could be considered
> misleading or even a bug.
Maybe, it could. But, it is by no means necessary.
In mathematics, there is a set of important functions which behave precisely
as described above (there ignore their arguments); they are called
"constant functions"....
More information about the Python-list
mailing list