This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients nedbat, sdeibel, terry.reedy
Date 2011-12-12.23:20:05
SpamBayes Score 0.0032908951
Marked as misclassified No
Message-id <1323732006.24.0.867011016938.issue13548@psf.upfronthosting.co.za>
In-reply-to
Content
(Snippet examples can be made 2/3 agnostic with 
from __future__ import print_function)

3.2.2 on win7, IDLE, gives me
F:\Python\mypy\tem.py 7 call
F:\Python\mypy\tem.py 8 line
F:\Python\mypy\tem.py 10 line
F:\Python\mypy\tem.py 11 line
F:\Python\mypy\tem.py 13 line
F:\Python\mypy\tem.py 13 return
...
Commenting out else:pass or changing pass to r=2 changes the output to
F:\Python\mypy\tem.py 7 call
F:\Python\mypy\tem.py 8 line
F:\Python\mypy\tem.py 10 line
F:\Python\mypy\tem.py 11 line
F:\Python\mypy\tem.py 11 return

Looking as the dis outputs of the three versions, I find the difference of behavior somewhat puzzling.
History
Date User Action Args
2011-12-12 23:20:06terry.reedysetrecipients: + terry.reedy, sdeibel, nedbat
2011-12-12 23:20:06terry.reedysetmessageid: <1323732006.24.0.867011016938.issue13548@psf.upfronthosting.co.za>
2011-12-12 23:20:05terry.reedylinkissue13548 messages
2011-12-12 23:20:05terry.reedycreate