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


Groups > comp.lang.python > #100885

Re: A newbie quesiton: local variable in a nested funciton

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: A newbie quesiton: local variable in a nested funciton
Date Sat, 26 Dec 2015 20:37:23 +1100
Lines 27
Message-ID <mailman.18.1451122658.11925.python-list@python.org> (permalink)
References <d070aa0d-e80f-4efb-a424-351737ddb2fc@googlegroups.com> <mailman.16.1451101299.11925.python-list@python.org> <ffcd67b4-365b-44bb-87c1-38ff3f49d5ef@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de i59VSDmt4P2DcD+r/LnJ/Qlsnvn+y+wUUSXaHqo+tYZA==
Cancel-Lock sha1:Y99NRHOwJKCiOsPKX/LB29pdb3E=
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.042
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; '2004': 0.09; 'hiding': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'itself.': 0.11; ':-)': 0.12; 'commit': 0.15; 'q&a': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:variable': 0.16; 'essential': 0.20; 'help.': 0.23; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'question': 0.27; 'archives': 0.29; "i'm": 0.30; 'core': 0.32; 'improving': 0.35; 'community': 0.36; 'should': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'seem': 0.37; 'thank': 0.38; 'end': 0.39; 'to:addr:python.org': 0.40; 'skip:u 10': 0.61; 'more': 0.63; 'information': 0.63; 'our': 0.64; 'fortune': 0.66; 'skip:\xe2 10': 0.70; 'wish': 0.71; '8bit%:46': 0.76; 'skill': 0.76; '_o__)': 0.84; 'crime.': 0.84; 'embarrassed': 0.84; 'received:125': 0.84; 'glad': 0.87; 'sacred': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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>
Xref csiph.com comp.lang.python:100885

Show key headers only | View raw


jfong@ms4.hinet.net writes:

> Thank you, Ben. It's amazing that you seem to know every piece of
> Python information hiding in the web:-)

You're welcome, I'm glad to help. As for the “hiding”, the answer is in
the Python documentation itself.

> see this question listed in python core language's Q&A makes me feel
> better for I am not the only one who commit this kind of crime.

Never feel embarrassed of not knowing something; we should all be active
on the edge of our own ignorance. The embarrassment would be in not
seeking to improve our understanding.

> I should read this Q&A throughly before going any further.

Searching in the official documentation, and in archives of community
forums, is an essential skill to learn for a programmer. I wish you good
fortune in improving that skill :-)

-- 
 \      “Nothing is more sacred than the facts.” —Sam Harris, _The End |
  `\                                                   of Faith_, 2004 |
_o__)                                                                  |
Ben Finney

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


Thread

A newbie quesiton: local variable in a nested funciton jfong@ms4.hinet.net - 2015-12-25 19:06 -0800
  Re: A newbie quesiton: local variable in a nested funciton Ben Finney <ben+python@benfinney.id.au> - 2015-12-26 14:41 +1100
    Re: A newbie quesiton: local variable in a nested funciton jfong@ms4.hinet.net - 2015-12-26 00:56 -0800
      Re: A newbie quesiton: local variable in a nested funciton Ben Finney <ben+python@benfinney.id.au> - 2015-12-26 20:37 +1100
  Re: A newbie quesiton: local variable in a nested funciton Chris Angelico <rosuav@gmail.com> - 2015-12-26 14:44 +1100
    Re: A newbie quesiton: local variable in a nested funciton jfong@ms4.hinet.net - 2015-12-26 01:07 -0800
      Re: A newbie quesiton: local variable in a nested funciton Chris Angelico <rosuav@gmail.com> - 2015-12-26 20:49 +1100
        Re: A newbie quesiton: local variable in a nested funciton jfong@ms4.hinet.net - 2015-12-26 20:05 -0800
          Re: A newbie quesiton: local variable in a nested funciton jfong@ms4.hinet.net - 2015-12-26 20:11 -0800
            Re: A newbie quesiton: local variable in a nested funciton Chris Angelico <rosuav@gmail.com> - 2015-12-27 17:32 +1100
              Re: A newbie quesiton: local variable in a nested funciton jfong@ms4.hinet.net - 2015-12-27 17:02 -0800
          Re: A newbie quesiton: local variable in a nested funciton Chris Angelico <rosuav@gmail.com> - 2015-12-27 17:22 +1100

csiph-web