tag:blogger.com,1999:blog-8699431508730375743.post7726273395197230422..comments2016-07-20T07:15:28.987-07:00Comments on The History of Python: How Exceptions Came to be ClassesGuido van Rossumhttp://www.blogger.com/profile/12821714508588242516noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8699431508730375743.post-28563417002479653472010-09-06T08:24:12.130-07:002010-09-06T08:24:12.130-07:00@Magnus: No, the syntax "raise exc, expr"...@Magnus: No, the syntax "raise exc, expr" specifically existed because exceptions were *not* classes. NameError was a string object at the time.Guido van Rossumhttps://www.blogger.com/profile/12821714508588242516noreply@blogger.comtag:blogger.com,1999:blog-8699431508730375743.post-13674399931815055172010-09-06T04:10:19.463-07:002010-09-06T04:10:19.463-07:00I thought class exceptions were already in the Pyt...I thought class exceptions were already in the Python version I first used (1.4), i.e. 1996.<br /><br />The Python 1.4 tutorial shows this example:<br /><br />raise NameError, 'HiThere'<br /><br />See http://docs.python.org/release/1.4/tut/node50.html#SECTION00940000000000000000Magnus Lyckåhttps://www.blogger.com/profile/03616305267649546599noreply@blogger.comtag:blogger.com,1999:blog-8699431508730375743.post-55746331690346571842009-06-24T20:35:23.194-07:002009-06-24T20:35:23.194-07:00Spanish translation here.
I wasn't allowed to...Spanish translation <a href="http://www.juanjoconti.com.ar/2009/06/25/la-historia-de-python-como-las-excepciones-llegaron-a-ser-clases/" rel="nofollow"> here</a>.<br />I wasn't allowed to paste the url in my prev comment. Don't know why...Juanjo Contihttps://www.blogger.com/profile/00311238789779841975noreply@blogger.comtag:blogger.com,1999:blog-8699431508730375743.post-54897013516716474092009-06-24T20:33:20.757-07:002009-06-24T20:33:20.757-07:00Spanish translation at juanjoconti.com.arSpanish translation at juanjoconti.com.arJuanjo Contihttps://www.blogger.com/profile/00311238789779841975noreply@blogger.comtag:blogger.com,1999:blog-8699431508730375743.post-65131044548145448612009-03-07T17:10:00.000-08:002009-03-07T17:10:00.000-08:00I used to think that exception objects were extrav...I used to think that exception objects were extravagant, but if you're writing a configurable parser, then it can be very useful to write a try...except where the actual parsing goes in the try block and the except block catches syntax errors, attaches the current line number to the exception, and re-raises it.Anonymoushttps://www.blogger.com/profile/11442714620753651697noreply@blogger.comtag:blogger.com,1999:blog-8699431508730375743.post-82605641857234166792009-03-07T02:18:00.000-08:002009-03-07T02:18:00.000-08:00at the end of the 4th paragraph, I think it shoul...at the end of the 4th paragraph, I think it should be "would automatically be “interned”"itsadokhttps://www.blogger.com/profile/09711309162103266425noreply@blogger.com