jf...@ms4.hinet.net wrote:
> There are two modules (say model.py and piece.py) which has methods need
> to refer to each other module's methods. I saw in a book using the way
> below, by assigning one (the Model) object to an attribute of the other
> (the Piece) bject. -
> ##model.py
There are two modules (say model.py and piece.py) which has methods need to
refer to each other module's methods. I saw in a book using the way below, by
assigning one (the Model) object to an attribute of the other (the Piece) bject.
-
##model.py
import piece
...
class Model(dict):