from future import pass_function

Ethan Furman ethan at stoneleaf.us
Wed Jul 25 18:28:29 CEST 2012


Ulrich Eckhardt wrote:
> I just had an idea, it occurred to me that the pass statement is pretty 
> similar to the print statement, and similarly to the print() function, 
> there could be a pass() function that does and returns nothing.
> 
> Example:
>    def pass():
>        return
> 
>    try:
>        do_something()
>    except:
>        pass()

Do you have a use case where `pass()` works but `pass` doesn't?

~Ethan~



More information about the Python-list mailing list