On November 15, 2009 10:54:16 pm William Stein wrote:
On Sun, Nov 15, 2009 at 10:23 PM, kstueve kevin.stu...@gmail.com wrote:
An alternative to adding/removing/commenting out/uncommenting print
statements through your code may be to use decorators. A decorator is
a a function that is
On Mon, Nov 16, 2009 at 8:22 AM, James Youngquist
james.youngqu...@gmail.com wrote:
On November 15, 2009 10:54:16 pm William Stein wrote:
On Sun, Nov 15, 2009 at 10:23 PM, kstueve kevin.stu...@gmail.com wrote:
An alternative to adding/removing/commenting out/uncommenting print
statements
On 15-Nov-09, at 9:08 PM, James Youngquist wrote:
Hello,
I'm new at the whole python/sage thing. Is there a better way to
debug
pieces of code we're working on other than to insert print statements?
Something where we can step through the code a line at a time or
generate
An alternative to adding/removing/commenting out/uncommenting print
statements through your code may be to use decorators. A decorator is
a a function that is passed your function whenever it is called. A
decorator can do whatever you want. Some of the possibilities are
caching values of the
On Sun, Nov 15, 2009 at 9:08 PM, James Youngquist
james.youngqu...@gmail.com wrote:
Hello,
I'm new at the whole python/sage thing. Is there a better way to debug
pieces of code we're working on other than to insert print statements?
Something where we can step through the code a line at a
On Sun, Nov 15, 2009 at 10:23 PM, kstueve kevin.stu...@gmail.com wrote:
An alternative to adding/removing/commenting out/uncommenting print
statements through your code may be to use decorators. A decorator is
a a function that is passed your function whenever it is called. A
decorator can
4. I plan to implement a debugger like pdb in the notebook. Something
very similar has already been done by the Pylons project, which should
give an idea of how to do it for Sage.
This would be all kinds of awesome. If you are not familiar with the
Smalltalk debugger, may I suggest you
On Sun, Nov 15, 2009 at 10:59 PM, Nick Alexander ncalexan...@gmail.com wrote:
4. I plan to implement a debugger like pdb in the notebook. Something
very similar has already been done by the Pylons project, which should
give an idea of how to do it for Sage.
This would be all kinds of