mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] def


Chronological Thread 
  • From: Henri Girard <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] def
  • Date: Sat, 05 Oct 2013 10:21:30 +0200

Le 05/10/2013 10:20, Henri Girard a écrit :
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


OK I found the problem no interline.


  • [TeXmacs] def, Henri Girard, 10/05/2013
    • Re: [TeXmacs] def, Henri Girard, 10/05/2013

Archive powered by MHonArc 2.6.19.

Top of page