Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75133

Re: one to many (passing variables)

References <CAHXoDSB+-Vkggfd57nb9eLSK7Pb_fbuycGTJZM=+6=4VZo3F0w@mail.gmail.com> <CAPTjJmr8nQfhM7JRBJGc=hew4H8kKjkD2xU71H67HaDVcP6W=g@mail.gmail.com> <600879be-1859-4435-8005-426813583cc7@gmail.com>
Date 2014-07-24 17:36 +1000
Subject Re: one to many (passing variables)
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12272.1406187370.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Jul 24, 2014 at 5:27 PM, Martin S <shieldfire@gmail.com> wrote:
> Function A collects data and then calls function B with some, but also has
> data that should be passed to function C.
>
> But ofc if nested functions are allowed then that might solve the issue. I
> don't think I've seen nested functions mentioned in a tutorial I've been
> looking at.

Nested functions shouldn't be necessary.

Just start writing code, then figure out what needs to go where. As
long as you give a name to everything you need to keep track of,
you'll find that pretty much everything 'just works'.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: one to many (passing variables) Chris Angelico <rosuav@gmail.com> - 2014-07-24 17:36 +1000

csiph-web