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


Groups > comp.lang.python > #45247

Re: global variable not working inside function. Increment

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <andipersti@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.059
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'subject:not': 0.03; 'read.': 0.03; 'python': 0.11; 'andreas': 0.16; 'bye,': 0.16; 'subject:variable': 0.16; 'wrote:': 0.18; 'tutorials': 0.26; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'received:google.com': 0.35; 'charset:us-ascii': 0.36; 'possible': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'read': 0.60; 'tell': 0.60; 'header:Message-Id:1': 0.63; 'received:194': 0.64; 'subject:. ': 0.67; 'contact': 0.67; 'yourself?': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=2erCf844OEezM/cBiS/+MIGe6/42IV3E0/y32duYBrU=; b=w132jwAF/Tvd6N764SM4TMHmkMRX8J5OxGbV6lZOsTRn+6zc2t+UVXIQ98uuucTHG6 JaT09u56RbHfP7q+qsihkLR6ppFg5rO3lhWrCZpFlg7Uiuwe3st5jdgYZFrjgDbcgMbX 6hSmwTlPjO23vkqhazrpkkIAqZO+mzi4kTXhY2iCXPv2s0kWW8EuudiBecA0PXIqQFjG 5a3hGbRkyO9YnNRj/qikUDiQvB7U0QKfTCWCO42Mq1oeAqgCw7IYAQGNN4m4PwQDhUAm oKDJQAYEXrrOE6SaVSyrKeFzALMgP/XJsRFKbrc9za0pZgJryKfZSw+vCBa3hnAVEtDF 8R3g==
X-Received by 10.14.42.9 with SMTP id i9mr79977722eeb.18.1368461611384; Mon, 13 May 2013 09:13:31 -0700 (PDT)
Date Mon, 13 May 2013 18:13:28 +0200
From Andreas Perstinger <andipersti@gmail.com>
To python-list@python.org
Subject Re: global variable not working inside function. Increment
In-Reply-To <688b6146-4601-47a7-8418-5fbc28650307@googlegroups.com>
References <dd059a77-f845-40ae-9e95-20731b34f512@a39g2000pre.googlegroups.com> <mailman.990.1252108333.2854.python-list@python.org> <4c334b0e-88ba-43b1-9201-7a2ef5a270fe@googlegroups.com> <688b6146-4601-47a7-8418-5fbc28650307@googlegroups.com>
X-Mailer Sylpheed 3.2.0beta3 (GTK+ 2.24.6; i686-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
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 <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.1630.1368462095.3114.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1368462095 news.xs4all.nl 15962 [2001:888:2000:d::a6]:55875
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45247

Show key headers only | View raw


"feather.duster.kung.fu" <feather.duster.kung.fu@gmail.com> wrote:
>I'm just learning Python and NONE of the tutorials I read said
>anything about that . In fact they all say a global can be called from
>inside a Function. If possible please contact the ppl that write these
>things.

Well, we don't know which tutorials you read.
So why don't you tell them yourself?

Bye, Andreas

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


Thread

Re: global variable not working inside function. Increment charles benoit <feather.duster.kung.fu@gmail.com> - 2013-05-13 07:10 -0700
  Re: global variable not working inside function. Increment "feather.duster.kung.fu" <feather.duster.kung.fu@gmail.com> - 2013-05-13 07:25 -0700
    Re: global variable not working inside function. Increment Andreas Perstinger <andipersti@gmail.com> - 2013-05-13 18:13 +0200

csiph-web