On Fri, Oct 23, 2015 at 3:05 PM, Terry Reedy <tjre...@udel.edu> wrote: > Indeed, whether 'pass' should be compiled to 'NOP' or nothing depends on > one's view of the meaning of pass and whether it must be executed (by going > though the ceval loop once and doing nothing) or not.
Hmm. I thought 'pass' was a syntactic element, not an executable statement. For instance, these functions all contain the same code: def f1(): pass def f2(): """docstring""" def f3(): return None def f4(): global foo Or is there something I'm misunderstanding here? ChrisA _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com