Article View: pl.comp.lang.python
Article #28254Re: Pytania początkującego cz. 1
From: Jordan Szubert
Date: Thu, 10 Nov 2011 17:41
Date: Thu, 10 Nov 2011 17:41
31 lines
2473 bytes
2473 bytes
Dnia 10-11-2011 o 18:30:05 hubert depesz lubaczewski <depesz@depesz.com>
napisał(a):
> On 2011-11-10, Wojciech Muła <wojciech_mula@poczta.null.onet.pl.invalid>
> wrote:
>> I jeszcze dir(obiekt) - zwraca listę metod i pól obiektu.
>
> tak, ale output z tego jest mocno kryptyczny.
>
>>>> dir("aa")
> ['__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__', '__subclasshook__',
> '_formatter_field_name_split', '_formatter_parser', 'capitalize',
> 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs', 'find',
> 'format', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower',
> 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip',
> 'partition', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition',
> 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip',
> 'swapcase', 'title', 'translate', 'upper', 'zfill']
>
> jest jakaś metoda by doczytać co robi np. _formatter_parser ?
no help("aa"._fromatter_parser), chyba ze do danego pola nie ma po prostu
w ogole dokumentacji (co calkiem mozliwe, jako ze zaczyna sie od _ )
--
Jordan Szubert
Technical Details
Message-ID:
<op.v4qre6jlhilul8@asus7p.home>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailReferences:
<vhsqo8-di8.ln1@depesz.com> <op.v4ozxmshhilul8@asus7p.home> <ns0to8-r2o.ln1@depesz.com> <op.v4qk4jprhilul8@asus7p.home> <229to8-6ld.ln1@depesz.com> <op.v4qm52unhilul8@asus7p.home> <20111110175647.67f13485@cat.tac> <t9eto8-ldn.ln1@depesz.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail Newsgroups: pl.comp.lang.python Subject: Re: Pytania początkującego cz. 1 References: <vhsqo8-di8.ln1@depesz.com> <op.v4ozxmshhilul8@asus7p.home> <ns0to8-r2o.ln1@depesz.com> <op.v4qk4jprhilul8@asus7p.home> <229to8-6ld.ln1@depesz.com> <op.v4qm52unhilul8@asus7p.home> <20111110175647.67f13485@cat.tac> <t9eto8-ldn.ln1@depesz.com> Date: Thu, 10 Nov 2011 18:41:20 +0100 MIME-Version: 1.0 From: "Jordan Szubert" <usenet@joru.us.to> Organization: HELL inc. Message-ID: <op.v4qre6jlhilul8@asus7p.home> User-Agent: Opera Mail/11.52 (Win32) Lines: 40 NNTP-Posting-Host: 83.26.212.28 X-Trace: 1320946882 unt-rea-a-02.news.neostrada.pl 5802 83.26.212.28:62447 X-Complaints-To: abuse@news.neostrada.pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit