pre-PEP for optional 'pass'
Andy Gimblett
gimbo at ftech.net
Wed Apr 17 04:13:22 EDT 2002
On Tue, Apr 16, 2002 at 11:28:44PM +0100, phil hunt wrote:
> On Tue, 16 Apr 2002 10:17:30 -0700, Russell E. Owen <owen at nospam.invalid> wrote:
> >The need for pass is a pain when commenting out entire blocks of code
> >(e.g. while debugging). Instead of just commenting out the code, one
> >must also add a "pass" statement, and then try to remember to take it
> >out again when re-enabling the code.
>
> That's true, and one that has happened to me.
But as has already been pointed out, you can simply wrap the entire
block up in """. Thus, this isn't a reason for getting rid of pass.
-Andy
--
Andy Gimblett - Programmer - Frontier Internet Services Limited
Tel: 029 20 820 044 Fax: 029 20 820 035 http://www.frontier.net.uk/
Statements made are at all times subject to Frontier's Terms and
Conditions of Business, which are available upon request.
More information about the Python-list
mailing list