from future import pass_function

Nicholas Cole nicholas.cole at gmail.com
Wed Jul 25 06:33:24 EDT 2012


On Wed, Jul 25, 2012 at 9:40 AM, Ulrich Eckhardt
<ulrich.eckhardt at dominolaser.com> wrote:
> What do you think?
>

I enjoyed the question, but actually I don't think this is a good idea.

1.  If you really needed something like this, you could define it easily.

def do_nothing(*args, **keywords):
   return None

2. If it were a built-in function, you would be able to override it,
and then there would be chaos.

Best,

Nicholas



More information about the Python-list mailing list