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


Groups > comp.lang.python > #75129

one to many (passing variables)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <shieldfire@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.359
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.39; '*S*': 0.10; 'martin': 0.11; 'code?': 0.16; 'coding': 0.22; 'to:name:python-list@python.org': 0.22; 'this:': 0.26; 'pass': 0.26; 'function': 0.29; 'message- id:@mail.gmail.com': 0.30; 'up.': 0.33; 'subject: (': 0.35; 'received:google.com': 0.35; 'subject:one': 0.36; 'too': 0.37; 'to:addr:python-list': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'ensure': 0.60; 'skip:u 10': 0.60; 'slowly': 0.60; 'week,': 0.64; 'more': 0.64; '(30': 0.84; 'horrible': 0.84; 'url:v2': 0.84; 'hot': 0.96
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6hRW5dm4v3bdWWlbuXTOdZ40kV2GfCYe6G86bl7giE8=; b=0nGjExI/NFR0rqYnIBZywvOkpMUvg7i4831gFnqxHdE5yMQw5zXmxp8G4twdDUWIJd FMPtuCbq3JRrg/KbIG8IwabelaCA/ZWNgJnIqwmXpE9zlBgtf1fNwzATRujUvqjfW/Pl ltODzFdGTDuZHqpMdtjGmeBvkDIgz9uVzx5LWJ+oAfNTp/oWsQxeMa9ejBLuM2lAbGvM PmP6P4JwDgDPQmlF+TDoW70d4/kIPUlvdwjO7fWGQCDKPoWhBOLJkMAMgZMqO5G6akNv iGBeMCl+RaIXKX0pPqGYtRqZRtCvzjx1gHJS0n+ERoanTVZjnSuYH6Qc/Mre1GJESqHS uZgw==
MIME-Version 1.0
X-Received by 10.52.232.200 with SMTP id tq8mr7474487vdc.32.1406183768984; Wed, 23 Jul 2014 23:36:08 -0700 (PDT)
Date Thu, 24 Jul 2014 08:36:08 +0200
Subject one to many (passing variables)
From Martin S <shieldfire@gmail.com>
To "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-Mailman-Approved-At Thu, 24 Jul 2014 09:01:14 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12269.1406185274.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1406185274 news.xs4all.nl 2876 [2001:888:2000:d::a6]:33104
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75129

Show key headers only | View raw


My coding is slowly (*) progress at the moment. Looking at my more or
less horrible efforts so far one (well that's understatement)
questions pops up. How do you pass data from one function to many?

I have functions A B and C. If data generated in A is useable in both
B and C how do I ensure this data is passed as needed? Or is it a
symptom of bad code?

(* it's too hot (30 C + all week, and also this:
https://imagizer.imageshack.us/v2/415x311q90/673/a9d1a5.jpg)

-- 
Regards,

Martin S

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


Thread

one to many (passing variables) Martin S <shieldfire@gmail.com> - 2014-07-24 08:36 +0200

csiph-web