Re: What is the common technique used to cross-reference in module's method?

2016-03-19 Thread Peter Otten
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

What is the common technique used to cross-reference in module's method?

2016-03-19 Thread jfong
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):