This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Current gdb python errors on python-2.4


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]