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


Groups > comp.lang.python > #77287

Re: Typing help brings up a screen that says type help()

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'python)': 0.05; 'that?': 0.05; 'subject:help': 0.08; 'logic': 0.09; 'subject:()': 0.09; 'runs': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'subject:screen': 0.16; 'subject:type': 0.16; 'wrote:': 0.18; 'help.': 0.21; 'aug': 0.22; 'shell': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'versions': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'getting': 0.31; 'subject:that': 0.31; 'url:python': 0.33; 'fri,': 0.33; 'older': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'behind': 0.37; 'displays': 0.38; 'pm,': 0.38; '(from': 0.39; "couldn't": 0.39; 'url:mail': 0.40; 'joel': 0.91
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 :cc:content-type; bh=b9eQdpB2QyJ1kf6Jb/gci9AOSfYl98trrtqWU9W+Oxk=; b=xJTlLqk/DKz+PFcHoj1s0Ywy7qjwQflFhU/PB1XahzxPedaFx5H0ff/Os8Kqt+hygs cbqRg9mOlH6CntEIf7ju+DFuIHQ70jEreHjSM2glhacPpP0+AXMFg0yspgfFMfjNvBZ3 U3oUKpYHFqM64ogJE1S32sY+uQzcmPpM0+k0Aojr2OaALbZuYBg0vmx/0J9D53xfe5kU Q7fu5YRQAV1mHn27utR9YmAYJOPGEuaBCN+uYwmxsFDAx+YSv7v4C+aIWNAgXJz0hY82 SUSn6L0uHzd++Xh9yUknUociuhRBlmuTFglYJ7l/0MJ7vh9oMp+1y3lz/Jay0t10zirJ qa9g==
MIME-Version 1.0
X-Received by 10.140.108.200 with SMTP id j66mr20969046qgf.43.1409346636749; Fri, 29 Aug 2014 14:10:36 -0700 (PDT)
In-Reply-To <12p10atdufggrba3e5k9ie7kla17thh1ha@4ax.com>
References <12p10atdufggrba3e5k9ie7kla17thh1ha@4ax.com>
Date Fri, 29 Aug 2014 17:10:36 -0400
Subject Re: Typing help brings up a screen that says type help()
From Joel Goldstick <joel.goldstick@gmail.com>
To Seymore4Head <Seymore4Head@hotmail.invalid>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <python-list@python.org>
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.13619.1409346640.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1409346640 news.xs4all.nl 2948 [2001:888:2000:d::a6]:47513
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:77287

Show key headers only | View raw


On Fri, Aug 29, 2014 at 4:40 PM, Seymore4Head
<Seymore4Head@hotmail.invalid> wrote:
> What is the logic behind that?

It would seem that help() is a function.  You are in the python shell
when you type it, and it runs the function that displays help.

> Couldn't help do the same thing as help()?
> But the reason I ask is that I see (from a video of Getting Started
> with Python) that older versions of python would allow ? as help.  I
> get syntax error when I try ?
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com

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


Thread

Typing help brings up a screen that says type help() Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-29 16:40 -0400
  Re: Typing help brings up a screen that says type help() Joel Goldstick <joel.goldstick@gmail.com> - 2014-08-29 17:10 -0400
  Re: Typing help brings up a screen that says type help() Joel Goldstick <joel.goldstick@gmail.com> - 2014-08-29 17:15 -0400
    Re: Typing help brings up a screen that says type help() Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-29 18:14 -0400
  Re: Typing help brings up a screen that says type help() Chris Angelico <rosuav@gmail.com> - 2014-08-30 08:22 +1000
  Re: Typing help brings up a screen that says type help() Joel Goldstick <joel.goldstick@gmail.com> - 2014-08-29 18:40 -0400
    Re: Typing help brings up a screen that says type help() Grant Edwards <invalid@invalid.invalid> - 2014-09-02 16:36 +0000
  Re: Typing help brings up a screen that says type help() Chris Angelico <rosuav@gmail.com> - 2014-08-30 08:54 +1000
  Re: Typing help brings up a screen that says type help() Joel Goldstick <joel.goldstick@gmail.com> - 2014-08-29 19:02 -0400
  Re: Typing help brings up a screen that says type help() Chris Angelico <rosuav@gmail.com> - 2014-08-30 09:10 +1000
  Re: Typing help brings up a screen that says type help() Terry Reedy <tjreedy@udel.edu> - 2014-08-29 21:41 -0400
    Re: Typing help brings up a screen that says type help() Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-29 22:55 -0400
  Re: Typing help brings up a screen that says type help() Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-08-29 21:13 -0500
  Re: Typing help brings up a screen that says type help() Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-30 14:46 +1000

csiph-web