Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.045 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.02; 'interpreter': 0.05; 'variables.': 0.09; 'dict': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'globals': 0.16; 'subject:exception': 0.16; 'subject:expression': 0.16; 'wrote:': 0.18; 'module': 0.19; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'agreed.': 0.31; 'sep': 0.31; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'dave': 0.60; 'here': 0.66; 'containing': 0.69; 'angel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DRjtg7PCFHdvIdahbpNZEIhO9T2kQ8xEXuI3epJG/dY=; b=Raz9SUYo/T3iEUDpvjFH4DLVkKfYbEQMRV+tRvfL0oj18/o9g80YWpTBqfdOaRWHDy 0wOCpofAmvBhk79ymFqr+CSOvsYNgJMF+6dGTdspNU2vf4/1MPQd60O2iZD9BVGeHyPq 7WZBet0c6jcSDh+8bUYJNCzzJ1CamSfIYP9vQUptE2dG/mLG2m0X7VBbhwN0w+aqBk8W kAKuBOsNhYzLqcnTdjunm4j/lVBtyjlkjrG9ba+eBEuzQAEo6dhPFRm317FC1GZ+uh9s TMKJWuf3k2u2nF/baVayoD24mx9GRJoZoqjXpnxaowh4baeFHyDmW7i3VIwIL11SBAM2 Wjeg== MIME-Version: 1.0 X-Received: by 10.58.133.66 with SMTP id pa2mr17155904veb.18.1380463081406; Sun, 29 Sep 2013 06:58:01 -0700 (PDT) In-Reply-To: References: <20130928183833.GA13630@piedra> Date: Sun, 29 Sep 2013 23:58:01 +1000 Subject: Re: Handling 3 operands in an expression without raising an exception From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380463085 news.xs4all.nl 15870 [2001:888:2000:d::a6]:57825 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:55017 On Sun, Sep 29, 2013 at 8:57 PM, Dave Angel wrote: > Try help(globals()) at the interpreter prompt. > > Help on built-in function globals in module builtins: > > globals(...) > globals() -> dictionary > > Return the dictionary containing the current scope's global variables. Insignificant quibble: help(globals()) will give you help on the dict type. What you actually want here is help(globals). Otherwise agreed. ChrisA