[issue8011] traceback tb_lineno example needs correction for Python3

2010-03-13 Thread Michael Newman
Michael Newman added the comment: No problem. Please note its actually fixed in r78895 (trunk), r78896 (py3k) and r78897 (release31-maint). Your previous message had the svn revision numbers off by 1000. -- ___ Python tracker

[issue8011] traceback tb_lineno example needs correction for Python3

2010-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r77895 (trunk), r77896 (py3k) and r77897 (release31-maint), thanks for the report! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue8011] traceback tb_lineno example needs correction for Python3

2010-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: I think this can be changed on 2.x as well, since the traceback.tb_lineno function "has no use in versions past 2.3" (so maybe it should be deprecated too, at least in the doc). Also the except should catch an IndexError. -- assignee: georg.brandl -> ez

[issue8011] traceback tb_lineno example needs correction for Python3

2010-02-24 Thread Michael Newman
New submission from Michael Newman : In the second example given in "27.8.1. Traceback Examples" at: http://docs.python.org/3.1/library/traceback.html http://docs.python.org/py3k/library/traceback.html which has the lumberjack: The last line won't work in Python 3.1 and 3.2: print("*** tb_linen