It looks like you forgot to indent the second line.

Also this list is for discussions regarding the development of Jython. For questions about using Jython, please use the jython-users@lists.sourceforge.net list.

On Mon, Apr 14, 2008 at 9:17 AM, srinivasan <sri_tnj@yahoo.com> wrote:
Hi

When i try to execute the following small program, i'm getting an error

>>> def fac(x):
... if x <= 1: return 1
Traceback (innermost last):
  (no code object) at line 0
  File "<console>", line 2
        if x <= 1: return 1

Can you help me to resolve

Thanks
Sri

 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Jython-dev mailing list
Jython-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-dev