[issue10172] code block has no syntax coloring
New submission from Winston C. Yang <winston@cs.wisc.edu>: The following code block in http://docs.python.org/tutorial/errors.html has no syntax coloring: import sys try: f = open('myfile.txt') s = f.readline() i = int(s.strip()) except IOError as (errno, strerror): print "I/O error({0}): {1}".format(errno, strerror) except ValueError: print "Could not convert data to an integer." except: print "Unexpected error:", sys.exc_info()[0] raise ---------- assignee: docs@python components: Documentation messages: 119382 nosy: docs@python, wcyang priority: normal severity: normal status: open title: code block has no syntax coloring type: behavior versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10172> _______________________________________
Terry J. Reedy <tjreedy@udel.edu> added the comment: 2.7 only (verified); 3.1 and 3.2 are fine. ---------- nosy: +terry.reedy _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10172> _______________________________________
Georg Brandl <georg@python.org> added the comment: This is because the Python used to render doesn't recognize the new-style exception catching; this will be fine once the system is upgraded to 2.6. ---------- nosy: +georg.brandl resolution: -> later status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10172> _______________________________________
participants (3)
-
Georg Brandl -
Terry J. Reedy -
Winston C. Yang