Re: Current gdb python errors on python-2.4

Phil Muldoon <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 11/06/13 14:34, Phil Muldoon wrote:

> The only way (I know) to get exceptions to work for all versions of
> Python is to do something like:
> 
> except Exception:
>        e = sys.exc_info[1]
> 

Oops, typo.  I mean:

except Exception:
       e = sys.exc_info()[1]

Cheers,
	
Phil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.