Subject: mailing-list for TeXmacs Users
List archive
From : Henri Girard <address@hidden>- To: address@hidden
- Subject: [TeXmacs] def
- Date: Sat, 05 Oct 2013 10:20:01 +0200
Hi,
I have problem to def a class in sage, it's working in a sage notebook :
Sage] class Obwod(object):
def __init__(this, z):
this.z = z
def __add__(this, that):
return Obwod(this.z + that.z)
def __mul__(this, that):
return Obwod(1/(1/this.z + 1/that.z))
Traceback (most recent call last):
File "tm_sage", line 4
def __add__(this, that):
^
IndentationError: unindent does not match any outer indentation level
Any help ?
regards
Henri
- [TeXmacs] def, Henri Girard, 10/05/2013
- Re: [TeXmacs] def, Henri Girard, 10/05/2013
Archive powered by MHonArc 2.6.19.