This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author isandler
Recipients
Date 2006-06-25.18:54:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=971153

I have looked at what's happening in a bit more detail and
now I agree that the current behaviour seems wrong.

Apparently, when one passes a nonstring to bdb's run(), bdb
sets tracing first and only then throws an exception...
Leaving tracing on seems like a bad thing to do 

Would calling settrace() a couple lines later be the
simplest solution then?

so relevant fragment of  bdb.py's run() becomes:
        if not isinstance(cmd, types.CodeType):
            cmd = cmd+'\n'
        sys.settrace(self.trace_dispatch)

This should prevent bdb from turning tracing too early.
What do you think?
History
Date User Action Args
2007-08-23 14:39:31adminlinkissue1472251 messages
2007-08-23 14:39:31admincreate