Op 29-07-16 om 13:14 schreef D'Arcy J.M. Cain: > On Fri, 29 Jul 2016 10:58:35 +0200 > Antoon Pardon <antoon.par...@rece.vub.ac.be> wrote: >> As BartC already mentions it happens fairly often during debugging. >> Something like. >> >> try: >> Some code >> except Some_Exception: >> # Commented code for when I am debugging <Some code> >> pass > I realize that that's a simplified example but really, isn't this just > as easy? > > try: > Some code > # except Some_Exception: > # Commented code for when I am debugging <Some code>
That code doesn't behave the same. > If your code block really is one line is "pass #" really so much more > of a hardship than "#"? If it is a large block use "pass #@#" which is > easy to remove with a search and replace. Whose talking about hardschip? I don't trouble my self with removing the pass statement when the debugging code is active. But Chris seemed to suggest a situation like above was really rare, so I answered his question. -- Antoon. -- https://mail.python.org/mailman/listinfo/python-list