Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7238
| Date | 2011-06-08 10:27 -0400 |
|---|---|
| From | "D'Arcy J.M. Cain" <darcy@druid.net> |
| Subject | Re: Function declarations ? |
| References | <slrniuv00f.8s9.cheney@atc5.vermine.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.26.1307543256.11593.python-list@python.org> (permalink) |
On Wed, 8 Jun 2011 13:58:18 +0000 (UTC) Andre Majorel <cheney@halliburton.com> wrote: > Is there a way to keep the definitions of the high-level > functions at the top of the source ? I don't see a way to > declare a function in Python. You don't declare functions in Python. You simply define them. You could define all your functions first and then call them. This is probably not a bad idea anyway. However, I suspect it doesn't solve your problem but since you haven't articulated it I can't tell. Don't present a solution and ask how it could work. Tell us what problem you are trying to solve and maybe we can suggest a solution. -- D'Arcy J.M. Cain <darcy@druid.net> | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Function declarations ? Andre Majorel <cheney@halliburton.com> - 2011-06-08 13:58 +0000
Re: Function declarations ? Calvin Spealman <ironfroggy@gmail.com> - 2011-06-08 10:06 -0400
Re: Function declarations ? "D'Arcy J.M. Cain" <darcy@druid.net> - 2011-06-08 10:27 -0400
Re: Function declarations ? Asen Bozhilov <asen.bozhilov@gmail.com> - 2011-06-10 15:46 -0700
Re: Function declarations ? Andre Majorel <cheney@halliburton.com> - 2011-06-12 19:38 +0000
Re: Function declarations ? Tim Roberts <timr@probo.com> - 2011-06-12 21:27 -0700
Re: Function declarations ? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-06-14 14:03 +1200
Re: Function declarations ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-13 14:58 +0000
Re: Function declarations ? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-06-14 13:18 +1200
Re: Function declarations ? John Nagle <nagle@animats.com> - 2011-06-13 17:19 -0700
csiph-web