Using __repr__ or __str__ for own printable class?

Irmen de Jong irmen at -NOSPAM-REMOVE-THIS-xs4all.nl
Mon Apr 14 13:42:57 EDT 2003


[offtopic]

Erik Max Francis wrote:

>>>>Course(lowEarthOrbit, lowMarsOrbit).transfers()
> 
> [<ExtractionTransfer @ 0x82893ac (out of `low orbit around `Earth'')>,
> <HohmannTransfer @ 0x812cef4 (Hohmann from `Earth' to `Mars')>,
> <InsertionTransfer @ 0x82adb64 (into `low orbit around `Mars'')>]
> 

Is this actual code? What does this do? I'm interested.

--Irmen





More information about the Python-list mailing list