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


Groups > comp.lang.python > #26425

Re: Calling Values

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'argument': 0.04; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'way:': 0.09; 'def': 0.10; 'passing': 0.15; '"new': 0.16; 'decent': 0.16; 'message-id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'alternate': 0.17; 'trying': 0.21; 'second': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'values': 0.26; 'header:X -Complaints-To:1': 0.28; 'way?': 0.29; '"the': 0.29; "i'm": 0.29; 'function': 0.30; 'from:addr:yahoo.co.uk': 0.32; 'print': 0.32; 'certain': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; "can't": 0.34; 'wrong': 0.34; 'whatever': 0.35; 'problem,': 0.35; 'there': 0.35; 'received:org': 0.36; 'explain': 0.36; 'but': 0.36; 'be.': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'group,': 0.60; "you've": 0.61; 'skip:n 10': 0.63; 'dear': 0.66; 'approach.': 0.91; 'received:2': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Calling Values
Date Fri, 03 Aug 2012 13:07:38 +0100
References <8bdc29d5-fa88-4ead-a4a1-135d708eeb57@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-2-98-198-200.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20120713 Thunderbird/14.0
In-Reply-To <8bdc29d5-fa88-4ead-a4a1-135d708eeb57@googlegroups.com>
X-Antivirus avast! (VPS 120803-0, 03/08/2012), Outbound message
X-Antivirus-Status Clean
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2896.1343995588.4697.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343995588 news.xs4all.nl 6969 [2001:888:2000:d::a6]:55088
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26425

Show key headers only | View raw


On 03/08/2012 12:49, Subhabrata wrote:
> Dear Group,
>
> I am trying to call the values of one function in the another function in the following way:
> def func1():
> 	num1=10
> 	num2=20
> 	print "The Second Number is:",num2
> 	return
>
> def func2():
> 	num3=num1+num2
> 	num4=num3+num1
> 	print "New Number One is:",num3
> 	print "New Number Two is:",num4
> 	return
>
> I am preferring not to use argument passing or using class? Is there any alternate way?
>
> Thanking in Advance,
> Regards,
> Subhabrata.
>

I think you've got the wrong group, but I don't know the best one for 
psychiatrists :)  Seriously I can't see what you're trying to achieve 
with this approach.  Can you explain it and I'm certain that we'll come 
up with a decent solution to your problem, whatever that may be.

-- 
Cheers.

Mark Lawrence.

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


Thread

Calling Values Subhabrata <subhabangalore@gmail.com> - 2012-08-03 04:49 -0700
  Re: Calling Values Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-03 13:07 +0100
  Re: Calling Values Nobody <nobody@nowhere.com> - 2012-08-03 13:44 +0100
  Re: Calling Values Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-08-03 14:32 +0200
  Re: Calling Values subhabangalore@gmail.com - 2012-08-03 07:38 -0700
    RE: Calling Values "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-08-03 15:30 +0000
    Re: Calling Values Ethan Furman <ethan@stoneleaf.us> - 2012-08-03 08:37 -0700
  Re: Calling Values Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-03 16:24 +0000
  Re: Calling Values Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-03 13:20 -0400
    Re: Calling Values subhabangalore@gmail.com - 2012-08-03 11:23 -0700
    Re: Calling Values subhabangalore@gmail.com - 2012-08-03 11:23 -0700
  Re: Calling Values alex23 <wuwei23@gmail.com> - 2012-08-05 19:56 -0700

csiph-web