How did python handle forward declaration?

Steve Purcell stephen_purcell at yahoo.com
Tue Feb 20 08:16:34 EST 2001


javalist wrote:
> 
>         in c/c++ we can use class xxx or struct xxx to forward declared what we really implement
>         later,how python work this out?
> 

Answer 1: There is no way to do this in Python

Answer 2: Write good documentation for your Python code; it has the same effect


-Steve

-- 
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Get servlets at http://pyserv.sourceforge.net/
"Even snakes are afraid of snakes." -- Steven Wright




More information about the Python-list mailing list