Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57738
| From | Dave Angel <davea@davea.name> |
|---|---|
| Subject | Re: Printing a drop down menu for a specific field. |
| Date | 2013-10-27 11:52 +0000 |
| References | (2 earlier) <l4hjcm$lf6$1@dont-email.me> <l4hkkn$qba$1@dont-email.me> <l4hlnc$tp9$1@dont-email.me> <ee80b72a-1c2f-4aa5-8172-f2a0a990bbe5@googlegroups.com> <l4iffs$uhb$1@dont-email.me> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1646.1382874775.18130.python-list@python.org> (permalink) |
On 27/10/2013 03:31, Nick the Gr33k wrote:
> Στις 27/10/2013 6:00 πμ, ο/η rurpy@yahoo.com έγραψε:
<snip>
>
> I read it thoroughly and tested it and it works as it should.
>
> I just wanted to mention that the definition of the function coalesce()
> must come prior of:
>
>> newdata = coalesce( data )
>> for row in newdata:
>
> because function must be defined first before we try to call it and pass
> data to ti, so i placed it just before that.
>
I found the above two lines in the function main(), in Rurpy's code. If
that's where you were talking about, the comment about order does not
apply.
If you are calling from one function into another (in this case from
main() into coalesce()), and the two functions are defined at global
scope, then the functions may be appear in either order.
it's only when you're calling a function from global scope, or sometimes
when nesting functions inside each other, that order of
definition of the two functions matters. Naturally, the call to main()
from top-level has to be after both functions are defined.
--
DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Printing a drop down menu for a specific field. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-26 17:10 +0300
Re: Printing a drop down menu for a specific field. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-26 18:40 +0300
Re: Printing a drop down menu for a specific field. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-26 16:09 +0000
Re: Printing a drop down menu for a specific field. rurpy@yahoo.com - 2013-10-26 11:33 -0700
Re: Printing a drop down menu for a specific field. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-27 02:31 +0300
Re: Printing a drop down menu for a specific field. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-27 02:52 +0300
Re: Printing a drop down menu for a specific field. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-27 02:11 +0200
Re: Printing a drop down menu for a specific field. rurpy@yahoo.com - 2013-10-26 21:00 -0700
Re: Printing a drop down menu for a specific field. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-27 09:31 +0200
Re: Printing a drop down menu for a specific field. Dave Angel <davea@davea.name> - 2013-10-27 11:52 +0000
Re: Printing a drop down menu for a specific field. rurpy@yahoo.com - 2013-10-27 22:22 -0700
csiph-web