Can a function be called within a function ?
Peter Moscatt
pgmoscatt at optushome.com.au
Mon Apr 18 17:33:28 EDT 2005
Thanks Guys,
I didn't think it was calling the function so I will put some test code and
print something to the screen just to ensure it's entering the function.
Thanks for all ya help.
Pete
Peter Moscatt wrote:
>
> Is it possible to write code and allow a function to be called within
> another like I have shown below ?
>
> Pete
>
>
>
> def populatelist():
> f=open(_globals.appath + "dxcluster.svr","r")
> while true:
> text = f.readline()
> if text =="":
> break
> _list.append(string.strip(text))
> f.close()
>
>
> def serversettings():
> servers.main(root)
> if _globals.refresh=="yes":
> populatelist() <----------------------- calling function
> above.
More information about the Python-list
mailing list