traceback Questions

3

So I have a class method with which I would like to draw out the dictionary and it's values: def __repr__ (self): for row in zip(*([ky]+map(str,val) for ky,val in (self.slovar.items()))): pri...
Alloy asked 5/12, 2012 at 14:33

3

Solved

The title pretty much says it all. Here's my code: from urllib2 import urlopen as getpage print = getpage("www.radioreference.com/apps/audio/?ctid=5586") and here's the traceback error I get: T...
Gause asked 30/11, 2012 at 8:54

1

Solved

I can parse out the paths to the files of a Python traceback, and I can then send those on to Vim using -p on the command line, so that they are opened one file per tab. So I end up with a command ...
Lomond asked 4/7, 2012 at 17:5

1

Solved

I develop with Python on Linux and have never really seen this sort of problem with Windows. I'm using the multiprocessing library to speed up computations, which works very well for me on Linux. ...
Embolus asked 12/3, 2012 at 16:26

3

Solved

In python you can compile() string to be executed faster with exec(). But as soon as i use it, we lost information when an exception happen in the exec. For example, here is a code snippet that ca...
Nomism asked 18/11, 2011 at 11:17

2

Solved

Using: traceback.print_stack() I can get: File "x.py", line 20, in <module> y(x) File "x.py", line 11, in y fun(x) File "x.py", line 8, in fun traceback.print_stack() I there any ...
Thera asked 19/5, 2011 at 16:24

2

Solved

try: print blah except KeyError: traceback.print_exc() I used to debug like this. I'd print to the console. Now, I want to log everything instead of print, since Apache doesn't allow printing. ...
Alcala asked 29/1, 2011 at 22:7

2

Solved

Possible Duplicate: How do I force a stack backtrace for all fatal errors in Perl? One of the things I like about Python, is that when a script exits because of an error, it spits out...
Whitted asked 22/2, 2010 at 2:24

3

Solved

Can I get the parameters of the last function called in traceback? How? I want to make a catcher for standard errors to make readable code, yet provide detailed information to user. In the follow...
Dhoti asked 30/10, 2009 at 16:2

1

Solved

I have IronPython hosted within my application, whenever I catch an exception thrown from a script, I get unhelpful gibberish like this: IronPython.NewTypes.System.Exception_1$1: Error occurred du...
Alenealenson asked 23/9, 2009 at 10:48

1

Here's the last few frames of a typical Ruby on Rails traceback: And here are the last few frames of a typical Nevow traceback in Python: It's not just the web environment either, you can make ...
Lieberman asked 20/9, 2008 at 3:15

© 2022 - 2024 — McMap. All rights reserved.