Article View: pl.comp.lang.python
Article #28253Re: Pytania początkującego cz. 1
From: hubert depesz lubaczewski
Date: Thu, 10 Nov 2011 17:30
Date: Thu, 10 Nov 2011 17:30
27 lines
2291 bytes
2291 bytes
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 ?
depesz
--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/
Technical Details
Message-ID:
<t9eto8-ldn.ln1@depesz.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!.POSTED!depesz.com!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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!.POSTED!depesz.com!not-for-mail From: hubert depesz lubaczewski <depesz@depesz.com> Newsgroups: pl.comp.lang.python Subject: Re: Pytania początkującego cz. 1 Date: Thu, 10 Nov 2011 18:30:05 +0100 Organization: depesz Software Lines: 27 Message-ID: <t9eto8-ldn.ln1@depesz.com> 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> Reply-To: depesz@depesz.com NNTP-Posting-Host: andy.depesz.com Mime-Version: 1.0 X-Trace: news.onet.pl 1320946503 16898 88.198.47.100 (10 Nov 2011 17:35:03 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Thu, 10 Nov 2011 17:35:03 +0000 (UTC) User-Agent: slrn/pre1.0.0-18 (Linux) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit