← Back to team overview

oship-dev team mailing list archive

Egg and chicken

 

Hi,

In datastructures.py, in the class IEvent, the attribute "parent" needs to
be defined as of type "IHistory".
But there is a catch because the class IHistory has some attributes that are
of type IEvent.

If I try to define "parent" with the correct type, the interpreter complains
that IHistory is not defined yet. If I exchange the order of the classes,
the interpreter complains that IEvent is not defined. Right now, "parent" is
defined of being of another type, for things to work.

I am wondering how I can solve this... someone has any hints?

Cheers
Eduardo

Follow ups