Re: Are circular dependencies possible in Python?

2005-04-10 Thread John Machin
On Sun, 10 Apr 2005 07:34:02 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote: >Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote or quoted: >> In <[EMAIL PROTECTED]>, Tim Tyler wrote: > >> > Like C, Python seems to insist I declare functions before calling >> > them - rather than, say, scanning to the

Re: Are circular dependencies possible in Python?

2005-04-10 Thread Tim Tyler
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote or quoted: > In <[EMAIL PROTECTED]>, 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

Re: Are circular dependencies possible in Python?

2005-04-09 Thread John Machin
On Sat, 9 Apr 2005 15:57:15 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote: >Like C, Python seems to insist I declare functions before calling >them One is left wondering what gave you that impression about Python. Nothing could be further from the truth. The only construct in Python that smells anyth

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, 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

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Tim Tyler
Tim Tyler <[EMAIL PROTECTED]> wrote or quoted: > 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. > > C lets you predeclare functions to allow for

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Dan Sommers
On Sat, 9 Apr 2005 15:57:15 GMT, Tim Tyler <[EMAIL PROTECTED]> 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. Python has no such restr

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Michael Spencer
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. C lets you predeclare functions to allow for the existence of functions with circular

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Dave Brueck
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. Yes and no. Yes, they have to exist before you can use them (that only makes sense),

Are circular dependencies possible in Python?

2005-04-09 Thread Tim Tyler
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. C lets you predeclare functions to allow for the existence of functions with circular dependencies. D