Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Tracebacks when using gevent and psycopg2 go "missing?"
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Denis Bilenko  
View profile  
 More options Sep 8 2012, 5:51 pm
From: Denis Bilenko <denis.bile...@gmail.com>
Date: Sun, 9 Sep 2012 01:51:26 +0400
Local: Sat, Sep 8 2012 5:51 pm
Subject: Re: [gevent] Re: Tracebacks when using gevent and psycopg2 go "missing?"

On Fri, Sep 7, 2012 at 2:20 PM, Denis Bilenko <denis.bile...@gmail.com>wrote:

> eventlet seemingly does not have it because it completely ignores the fact
> that all greenlets share PyThreadState (and thus exc_info()) and leaks
> sys.exc_info() into unrelated contexts.

I was wrong about eventlet - it does clean up exc_info. It never restores
it, so you get:

denis@ubuntu:~/test_greenlet$ cat eventlet_test.py
import eventlet
try:
    1/0
except:
    eventlet.sleep()
    raise

denis@ubuntu:~/test_greenlet$ bin/python eventlet_test.py
Traceback (most recent call last):
  File "eventlet_test.py", line 7, in <module>
    raise
TypeError: exceptions must be old-style classes or derived from
BaseException, not NoneType


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.