Using __repr__ or __str__ for own printable class?
Irmen de Jong
irmen at -NOSPAM-REMOVE-THIS-xs4all.nl
Mon Apr 14 14:14:45 EDT 2003
Peter Hansen wrote:
> Irmen de Jong wrote:
>
>>[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.
>
>
> Given that Python is an "agile language", it seems very likely that
> it must be an implementation of Robert Zubrin's XP-style "Mars Direct"
> program for a manned mission to Mars.
>
> <0.9 wink but I wish it were lower-ly y'rs>
>
> -Peter
I *was* serious...
If it is real code I suspect it somehow determines a path for a
free moving object in space to transfer from one orbit to another
orbit around different bodies in the solar system.
At least that is what a quick google for "Hohmann orbit transfer"
tells me. And I'm still interested ;-)
--Irmen
More information about the Python-list
mailing list