Are circular dependencies possible in Python?
Tim Tyler
tim at tt1lock.org
Sun Apr 10 03:34:02 EDT 2005
Marc 'BlackJack' Rintsch <bj_666 at gmx.net> wrote or quoted:
> In <IEosBE.GtB at bath.ac.uk>, Tim Tyler wrote:
> > Like C, Python seems to insist I declare functions before calling
> > them - rather than, say, scanning to the end of the current script
> > when it can't immediately find what function I'm referring to.
>
> They don't have to be declared but to be *defined* in Python before you
> can call them. [...]
That makes three of you who have called me on my use of "declare".
AFAICT, I was using the standard dictionary definition of this word:
http://dictionary.reference.com/search?q=declare
The term "declare" doesn't have the same meaning as the term "predeclare".
--
__________
|im |yler http://timtyler.org/ tim at tt1lock.org Remove lock to reply.
More information about the Python-list
mailing list