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: 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" To: William Bryant , "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: <2dba1d63-16f0-412d-b650-0cdc27c3b57e@googlegroups.com> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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 attr= ibutes of the given object, and of attributes reachable from it. If the object supplies a method named __dir__, it will be used; otherwis= e 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__', '__l= e__', '__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', 'rpartit= ion', '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 conditio= ns 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/disclo= sures/email.