Re: attaching debugger to runinng python program

2006-07-15 Thread Nebur
You may try winpdb. I find it to be a comfortable debugger that also can attach to running programs. (You need to add a line in your code where the program should stop and wait for the debugger to attach.) I am satisfied with it, but I did not debug a multi theaded app. However, it can handle threa

AdaptionFailure: How to use Interfaces with PyProtocols ?

2006-02-10 Thread Nebur
Can't adapt", , ) *** Or is my Duck code wrong ? Anybody knowing how to use an Interface ? Thank you very much- Nebur Remark:There seems to be some windows stuff in PyProtocols ("C:\...") - a bug ? (I re-installed PyProtocols with option --without-speedups but nothing changed.) -- http://mail.python.org/mailman/listinfo/python-list

Re: AdaptionFailure: How to use Interfaces with PyProtocols ?

2006-02-10 Thread Nebur
Yes, I adapted the instance, and it's working.That's it. Thank you ! Nebur -- http://mail.python.org/mailman/listinfo/python-list

How can an Exception pass over an "except" clause ?

2007-05-30 Thread Nebur
I'm using the contract.py library, running Python 2.4.4. Now I'm confronted with the following exception backtrace: (...) File "/usr/lib/python2.4/site-packages/contract.py", line 1265, in _check_preconditions p = f.__assert_pre AttributeError: 'function' object has no attribute '__assert_p

Re: How can an Exception pass over an "except" clause ?

2007-05-30 Thread Nebur
> However by being *VERY* perverse, I was able to reproduce the above > error by overwriting AttributeError with some other exception class (say > SyntaxError): > AttributeError = SyntaxError > Then your code will be will produce a real AttributeError, but miss it > because (despite the spelli

Re: How can an Exception pass over an "except" clause ?

2007-05-30 Thread Nebur
> > @Tijs: I think when re-raising, the backtrace will always point to the > line where it was re-raised but not to line 1265. (Or can we re-raise > an exception so that it preserves the backtrace of the "original" > exception?) @Tijs: Because of distrusting my own text above, I've checked re- rai

Pydev/Eclipse: How to add filters for the navigator ?

2008-02-24 Thread Nebur
Running the latest version of pydev (1.3.13). I failed to figure out how to add a filter that excludes stuff like *.pyc from the file navigator. The "Filters..." dialogue allows to "Select All" and "Deselect All", but from an empty list :-( What's the trick ? Thanks ... -- http://mail.python.org/m

Re: redirecting stdout/err to mysql table

2008-11-20 Thread Nebur
I've had a similar requiredment and made a small tool for direct logging into databases (see: http://sourceforge.net/projects/rrlog/ ) It's origins are somewhat older than the Python 2.3 standard logging framework, so it can be used without that (but can also be simply integrated with it.) It even

Importer / module loader for filelike objects produces ugly stacktraces

2009-03-09 Thread Nebur
I've made an importer (experimental status) to load python modules from archives, especially from AES encrypted ones. ( http://sourceforge.net/projects/py-archimporter ) I've followed the PEP 302 recipe (http://www.python.org/dev/peps/ pep-0302/). The loader does set each modules __file__ attribut

*.py source file surprisingly deleted with Pydev/Eclipse. Who else experienced this ?

2008-04-04 Thread Nebur
nd seems to do nothing else? Myself beeing schizophrenic ??) Someone else already had this effect ? Nebur PS: Debian Etch 64Bit/JFS,Eclipse3.3,Pydev1.3.14. -- http://mail.python.org/mailman/listinfo/python-list

Re: *.py source file surprisingly deleted with Pydev/Eclipse. Who else experienced this ?

2008-04-04 Thread Nebur
) seem unplausible because when simply removing the file from file system, Eclipse would complain about the missing ressource. So I have 2 ideas only: A _very_ strange bug inside the Eclipse/Plugin process, or something with my brain ;-) Nebur -- http://mail.python.org/mailman/listinfo/python-list

Re: *.py source file surprisingly deleted with Pydev/Eclipse. Who else experienced this ?

2008-04-04 Thread Nebur
Yes. Linux viruses are rare but useful :-) Well, I don't think the problem a very dangerous one. The Pydev/ Eclipse was used for much more than a year nearly daily and intensively. The strange effect is very rare,obviously (plus the chance that it's in my brain, as I mentioned ;-D ) so you probably

Re: *.py source file surprisingly deleted with Pydev/Eclipse. Who else experienced this ?

2008-04-05 Thread Nebur
opinion, and (aside from this mystery here) it is perfectly stable for >>1 year now! This must be said, to correct any potential misimpression. Ciao, Nebur -- http://mail.python.org/mailman/listinfo/python-list

Re: *.py source file surprisingly deleted with Pydev/Eclipse. Who else experienced this ?

2008-04-05 Thread Nebur
> Implement what? The virus? I haven't said that I'm interested in virus, > I meant I'd like to know WHAT is this No, this was a misunderstanding. What we meant was: when you want to implement a virus, you should use a version control :- D Nebur -- http://mail.python.org/ma

PEP 343 == small-sized aspect orientation ?

2006-04-04 Thread Nebur
I started learning PEP 343 , and it made me feel unsure how much I really comprehend. Can somebody explain which benefit it provides, compared with usual Aspect Orientation ? The latter looks more generic to me (and doesn't need the "with" keyword). Do I miss something apparent ?

Re: DBHandler class for logging?

2009-09-25 Thread Nebur
, like rotation handling.) Regards, Nebur -- http://mail.python.org/mailman/listinfo/python-list