wow, many thanks for you guys great help!
<br /> 
<br />
<br />
<br />
<br />On Dec 19, 2008 4:06pm, Scott &lt;gorlins@mit.edu&gt; wrote:
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; Yaroslav Halchenko wrote:
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;&gt; plus, i find it easier to debug in an ide than to copy paste into the
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;&gt; prompt - copy paste into a script file, and pylint will tell you what&#39;s
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;&gt; wrong before you run it :)
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;&gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; thanks Scott!
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; would you recommend any particular Python tutorial?
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; i stumbled around python.org mostly - and playing with visionegg really
<br />&gt; 
<br />&gt; 
<br />&gt; helped too.  i don&#39;t learn much from tutorials though, mostly
<br />&gt; 
<br />&gt; 
<br />&gt; trial/error/sourcecode.
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; so, is wingide runs pylint automagically prior each run? that is cool.
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; yeah it works quite well.  actually i&#39;m not sure if its pylint proper,
<br />&gt; 
<br />&gt; 
<br />&gt; it may be it&#39;s own syntax checker - it runs much faster than spe or
<br />&gt; 
<br />&gt; 
<br />&gt; komodo, last i tried.  and it&#39;s not prior to each run, it&#39;s every 100ms
<br />&gt; 
<br />&gt; 
<br />&gt; - it feels much more like netbeans, which i love.
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; how well does it display docstrings for PyMVPA? do they come useful?
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; when you&#39;ve written them :)
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; there is one case where it hangs up-it does not display the docstring
<br />&gt; 
<br />&gt; 
<br />&gt; for a class when there is a docstring in the __init__ function for that
<br />&gt; 
<br />&gt; 
<br />&gt; class, and instead displays the __init__ docstring.  i haven&#39;t looked
<br />&gt; 
<br />&gt; 
<br />&gt; extensively into whether this is a wingide or more general bug, but it
<br />&gt; 
<br />&gt; 
<br />&gt; has a nice 1-click link to the class definition, so it&#39;s really easy to
<br />&gt; 
<br />&gt; 
<br />&gt; browse the source (with tabbed/paned editors come in super handy...)
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; As for debugging, indeed, that is what constantly raises a question for
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; me either to switch to some nice IDE. For now, for quick debugging I
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; just insert
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; import pydb
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; pydb.debugger()
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; at the place where I need to invoke debugger.
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; IPython on the other hand also comes with debugging &#39;magic&#39;, so just
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; pdb on
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; and then it would automagically bring a debugger at your hands whenever
<br />&gt; 
<br />&gt; 
<br />&gt; &gt; an exception is thrown
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; &gt;
<br />&gt; 
<br />&gt; 
<br />&gt; call me old fashioned, but i thrive on F5-&gt;debug current file
<br />&gt; 
<br />&gt; 
<br />&gt; F9-&gt;execute with -O flag.
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; debugging will, of course, stop when an exception is thrown.  but
<br />&gt; 
<br />&gt; 
<br />&gt; nicely, it gives you a gui call stack so you can instantly evaluate code
<br />&gt; 
<br />&gt; 
<br />&gt; at any point on the stack prior to where the exception is thrown (and
<br />&gt; 
<br />&gt; 
<br />&gt; autocomplete and source assistant work, too!).  Plus, you can add
<br />&gt; 
<br />&gt; 
<br />&gt; breakpoints, and even conditional breakpoints, though i haven&#39;t tried them.
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; just to add one more plug, they seem quite active - i get a new version
<br />&gt; 
<br />&gt; 
<br />&gt; every month or so, free.  and i submitted a feature request (to
<br />&gt; 
<br />&gt; 
<br />&gt; right-click evaluate a highlighted line of code in the debug shell with
<br />&gt; 
<br />&gt; 
<br />&gt; the current stack) which they did in about 2 weeks.
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; _______________________________________________
<br />&gt; 
<br />&gt; 
<br />&gt; Pkg-ExpPsy-PyMVPA mailing list
<br />&gt; 
<br />&gt; 
<br />&gt; Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org
<br />&gt; 
<br />&gt; 
<br />&gt; http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa
<br />&gt; 
<br />&gt; 
<br />&gt;