#9146: relying on cpython's bug
---------------------------+------------------------------------------------
 Reporter:  fijal          |       Owner:  jacobkm   
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0       
 Keywords:  pypy obscure   |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 Example of code:

 {{{

 import sys
 try:
     raise 1/0
 except:
     try:
         stuff
     finally:
         print sys.exc_info()
 }}}


 I think it should print NameError inside print. CPython behaves
 differently. Anyway, it's very confusing. The same logic is in
 {{{handlers/base.py}}} around line 118, which indirectly calls
 sys.exc_info.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9146>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to