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


Groups > comp.lang.python > #53993

RE: Help please, why doesn't it show the next input?

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ramit.prasad@jpmorgan.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'api.': 0.05; 'completeness': 0.07; 'interpreter.': 0.07; 'referring': 0.07; 'wednesday,': 0.07; 'string': 0.09; "'a'": 0.09; 'attributes': 0.09; 'classes.': 0.09; 'converted': 0.09; 'logic': 0.09; 'received:155': 0.09; 'subject:Help': 0.11; 'python': 0.11; "'__doc__',": 0.16; 'argument,': 0.16; 'attributes,': 0.16; 'attributes.': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'docstring': 0.16; 'from:addr:jpmorgan.com': 0.16; 'magic': 0.16; "module's": 0.16; 'of)': 0.16; 'quoted': 0.16; 'received:155.180': 0.16; 'received:159': 0.16; 'received:159.53': 0.16; 'received:159.53.110': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'scope.': 0.16; 'securities,': 0.16; 'subject:show': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'wrote:': 0.18; 'module': 0.19; '(but': 0.19; 'else,': 0.19; "skip:' 30": 0.19; '>>>': 0.22; 'to:name:python-list@python.org': 0.22; 'header:In- Reply-To:1': 0.27; 'to:2**1': 0.27; 'function': 0.29; 'leave': 0.29; "doesn't": 0.30; 'subject:please': 0.30; 'posting': 0.31; "skip:' 10": 0.31; 'context.': 0.31; 'object.': 0.31; 'subject:next': 0.31; 'class': 0.32; 'received:169.254': 0.32; 'url:python': 0.33; '(e.g.': 0.33; 'subject:the': 0.34; 'but': 0.35; 'accuracy': 0.36; 'object,': 0.36; 'next': 0.36; 'method': 0.36; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'detail': 0.37; 'received:169': 0.37; 'list': 0.37; 'email addr:python.org': 0.37; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'information,': 0.61; 'show': 0.63; 'information': 0.63; 're:': 0.63; 'taking': 0.65; 'purchase': 0.65; 'email name:python-list': 0.65; 'to:addr:gmail.com': 0.65; 'bottom': 0.67; 'subject': 0.69; 'default': 0.69; 'legal': 0.71; 'sale': 0.75; 'william': 0.81; "class's": 0.84; 'object:': 0.84; 'reachable': 0.84; 'angel': 0.91; '2013': 0.98
X-DKIM OpenDKIM Filter v2.1.3 sj1.jpmchase.com r8BJwa7c023900
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1378929516; bh=BzYBDdvdePI2JQXAKtdRXD3RcIJHpMzCKEDRfGLLpgY=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:content-transfer-encoding:MIME-Version; b=R3BWLZC2G9jFX7VIsbiJPUbG1ik2Ev6XPxpawqGeqpCjbslLM3VTMXJ7sUGSh3MMM TIrPfGmIUTQslU0VtMJdAD7UfFmlG2LyC7Ltp7Z9mnE8J5UvYhshmFUN+4YqKjHfbB vhAqBBYbLb5qY+XuMvxz9zP/7JU0t5BzYZL0RQc4=
X-AuditID a959dca9-b7f588e000002568-e2-5230cb64595e
From "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid>
To William Bryant <gogobebe2@gmail.com>, "python-list@python.org" <python-list@python.org>
Subject RE: Help please, why doesn't it show the next input?
Thread-Topic Help please, why doesn't it show the next input?
Thread-Index AQHOrqpm+em6p0lk8EGv+xvBEIm/npm//nO8gABJtoCAAKabcIAAAzLw
Date Wed, 11 Sep 2013 19:58:27 +0000
References <ef8de6db-5f35-4d07-8306-bcec47b1e69b@googlegroups.com> <l0ou1r$c1n$1@reader1.panix.com> <2dba1d63-16f0-412d-b650-0cdc27c3b57e@googlegroups.com> <mailman.242.1378900277.5461.python-list@python.org> <b4c3b51d-8e10-4fff-8b36-a34dd5cc9af4@googlegroups.com>
In-Reply-To <b4c3b51d-8e10-4fff-8b36-a34dd5cc9af4@googlegroups.com>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [10.67.79.47]
Content-Type text/plain; charset="us-ascii"
content-transfer-encoding quoted-printable
MIME-Version 1.0
X-DLP-FWD Yes
X-Brightmail-Tracker H4sIAAAAAAAAA+NgFvrNKsWRmVeSWpSXmKPExsUye4uJoW7qaYMgg79PhSx+rm9hszjSeo3V gclj56y77B4v5r9hC2CKamC0SczLyy9JLElVSEktTrZVcsksTs5JzMxNLVLQVfAqyM0vSk/M 00vOz1VSyEyxVTJRUijISUxOzU3NK7FVSiwoSM1LUbLjUsAANkBlmXkKqXnJ+SmZeem2Sp7B /roWFqaWuoZKdiEZmcUKqbmJmTkKCRvZM6Y+2MxSsFes4unRU+wNjPOFuhg5OSQETCRmfHzN CmGLSVy4t56ti5GLQ0jgCKPE8X+n2CGcg4wSE3YuZIRwNjJKXNuwgwmkhU3AUOL42SfsILaI QKzEj6nrgEZxcAgL2Eo8fekOEbaTmLn6ITOE7SYxvfUfWCuLgKrEyh2fwOK8AiESv96uhZo/ kUmiY/sDsASngItEZ+9bsAZGoPO+n1oDZjMLiEvcejKfCeJsAYkle84zQ9iiEi8f/4N6R17i xZSXbBD1OhILdn+CsrUlli18DbVYUOLkzCcsIDcLCahJ7FtvC2JKCPBJbG+rnsAoMQvJsllI Bs1CMmgWkkELGFlWMUoW56ZnmeoVlxXplRbrZRXkJmckFqfq5aWWbGIEppmVkXdW7mD812h7 iFGAg1GJh7djlkGQEGtiWXFl7iFGCQ5mJRFe9qAjgUK8KYmVValF+fFFpTmpxYcYq4CBNpFZ SjQ5H5gC80riDY3NLAxMTQ0NLAyNTKgirCTOO6dLOkhIIB2YVLNTUwtSi2CWM3FwSjUwZn4y Yn/7Yt1p8Yj6xRc7/Td2hs/bGHVihV7+8647YrVVt37Oa7F3F4zfoqvEvNSm2+vWpFvnmBpj JxuL+zz3zn63l1lc/KOE7IEl0Qsv8ujJhdRv01mQfTvvDZePaIXTklsTiidMsUj145xt13+k bf2V3xndxYxsN+S9H287FFxxv2z/qslcSizFGYmGWsxFxYkALCeSAo4DAAA=
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.265.1378932066.5461.python-list@python.org> (permalink)
Lines 82
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378932066 news.xs4all.nl 15902 [2001:888:2000:d::a6]:40634
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53993

Show key headers only | View raw


William Bryant wrote:
> Sent: Wednesday, September 11, 2013 2:32 PM
> To: python-list@python.org
> Subject: Re: Help please, why doesn't it show the next input?
> 
> @Dave Angel
> 
> What is .lower() ?

Thanks for bottom posting and trimming, but you should
leave some content quoted for context. Otherwise
people will not what you are referring to.

You can find answers to questions like this in the API.
http://docs.python.org/2/library/stdtypes.html#str.lower

I would recommend taking time to get familiar with the
Athena interpreter. It can also answer questions like
this (but with less detail than the web API).

You can use dir() to find the attributes on any object.
help() will give you docstring for the attribute/class.

>>> 'A'.lower()
'a'
>>> help(''.lower)
Help on built-in function lower:

lower(...)
    S.lower() -> string
    
    Return a copy of the string S converted to lowercase.

>>> help(dir)
Help on built-in function dir in module __builtin__:
dir(...)
    dir([object]) -> list of strings
    
    If called without an argument, return the names in the current scope.
    Else, return an alphabetized list of names comprising (some of) the attributes
    of the given object, and of attributes reachable from it.
    If the object supplies a method named __dir__, it will be used; otherwise
    the default dir() logic is used and returns:
      for a module object: the module's attributes.
      for a class object:  its attributes, and recursively the attributes
        of its bases.
      for any other object: its attributes, its class's attributes, and

        recursively the attributes of its class's base classes.
>>> dir('')
['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem_\
_', '__getnewargs__', '__getslice__', '__gt__', '__hash__', '__init__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__\
', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclass\
hook__', '_formatter_field_name_split', '_formatter_parser', 'capitalize', 'center', 'count', 'decode', 'encode', 'endswith', 'expan\
dtabs', 'find', 'format', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lo\
wer', 'lstrip', 'partition', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'starts\
with', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']

If you want to see all the relevant information you can use help()
on the class [e.g. help(str)]. I think help(class) will not show
functions that start with _ unless they are python magic dunder 
functions (e.g. __str__).



~Ramit



This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.  

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


Thread

Help please, why doesn't it show the next input? William Bryant <gogobebe2@gmail.com> - 2013-09-10 21:49 -0700
  Re: Help please, why doesn't it show the next input? John Gordon <gordon@panix.com> - 2013-09-11 05:11 +0000
    Re: Help please, why doesn't it show the next input? William Bryant <gogobebe2@gmail.com> - 2013-09-10 22:39 -0700
      Re: Help please, why doesn't it show the next input? Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2013-09-11 10:32 +0100
        Re: Help please, why doesn't it show the next input? William Bryant <gogobebe2@gmail.com> - 2013-09-11 12:33 -0700
          Re: Help please, why doesn't it show the next input? John Gordon <gordon@panix.com> - 2013-09-11 19:46 +0000
          Re: Help please, why doesn't it show the next input? Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2013-09-12 02:14 +0100
          Re: Help please, why doesn't it show the next input? Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2013-09-12 02:08 +0100
      Re: Help please, why doesn't it show the next input? Dave Angel <davea@davea.name> - 2013-09-11 11:50 +0000
        Re: Help please, why doesn't it show the next input? William Bryant <gogobebe2@gmail.com> - 2013-09-11 12:31 -0700
          Re: Help please, why doesn't it show the next input? Dave Angel <davea@davea.name> - 2013-09-11 20:32 +0000
          RE: Help please, why doesn't it show the next input? "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid> - 2013-09-11 19:58 +0000
          Re: Help please, why doesn't it show the next input? Terry Reedy <tjreedy@udel.edu> - 2013-09-11 17:14 -0400
  Re: Help please, why doesn't it show the next input? William Bryant <gogobebe2@gmail.com> - 2013-09-11 23:04 -0700
    Re: Help please, why doesn't it show the next input? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-09-12 10:39 +0100
      Re: Help please, why doesn't it show the next input? William Bryant <gogobebe2@gmail.com> - 2013-09-13 15:12 -0700
        Re: Help please, why doesn't it show the next input? John Gordon <gordon@panix.com> - 2013-09-13 22:41 +0000
        Re: Help please, why doesn't it show the next input? MRAB <python@mrabarnett.plus.com> - 2013-09-13 23:48 +0100
          Re: Help please, why doesn't it show the next input? William Bryant <gogobebe2@gmail.com> - 2013-09-13 16:34 -0700

csiph-web