🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #28084

Re: Interpretowany czy kompilowany?

#28084
From: Jordan Szubert
Date: Sun, 29 May 2011 11:16
48 lines
3057 bytes
Dnia 29-05-2011 o 12:20:01 jacek2v <jacek2v@gmail.com> napisał(a):

> On 29 Maj, 10:00, jacek2v <jace...@gmail.com> wrote:
>> On 29 Maj, 02:09, "Jordan Szubert" <use...@joru.us.to> wrote:
>>> Dnia 28-05-2011 o 15:48:40 jacek2v <jace...@gmail.com> napisał(a):
>>>> Ok. Twój dowód do mnie przemawia :) Aczkolwiek :) podejrzane jest :
>>>> >>> issubclass(type(foo), type(object))
>>>> False
>>>
>>> Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit  
>>> (AMD64)] on win32
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> def foo():
>>> ...     pass
>>> ...
>>> >>> type(foo)
>>> <class 'function'>
>>> >>> type(object)
>>> <class 'type'>
>>> >>> issubclass(type(foo),type(object))
>>> False
>>> >>> issubclass(type(foo),object)
>>> True
>>> >>> object
>>> <class 'object'>
>>>
>> Ok. My fault :)
>
> Ale...? :) - nigdy nie byłem fanem takiego drążenia języka prog., ale
> jak już drążymy, to:
> Python 2.7.1
>> class Fooc(object):
>>
>> ...     pass
>>
>> issubclass(type(Fooc), type(object))
>> True
> A przy funkcji było:
>> False

nadal wszystko OK, klasa jest klasa, funkcja nie jest klasa, a instancja  
klasy...
1,foo,object(),Fooc to nie klasy, a instancje...
klasy to object,type,type(foo),int,Fooc() etc.
oczywiście klasy tez są instancjami klasy type...

-- 
Jordan Szubert
Technical Details
Message-ID: <op.vv8plbrdhilul8@asus7.home>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <iqmlha$r29$1@news.onet.pl> <irbh66$4fa$1@news.onet.pl> <c4a63f8f-afbc-4dab-ab9e-4c241433ab38@28g2000yqu.googlegroups.com> <irg9ua$pb6$1@news.onet.pl> <3ede9f91-b3da-4845-94e3-697e9301d530@d1g2000yqm.googlegroups.com> <20110525202013.b67a5b5a.gryf_esm-no@spam-o2.pl> <31a73c32-7483-4f0b-b2fa-386103875cf4@x6g2000yqj.googlegroups.com> <c72bf0b2-afa1-4e1b-80aa-7198e59e2e45@b42g2000yqi.googlegroups.com> <irjnsg$g0e$1@inews.gazeta.pl> <4f2c76ae-c4f5-4cac-99c8-138ec0019139@y12g2000yqh.googlegroups.com> <irm8uf$293$1@inews.gazeta.pl> <da18f5f5-5eba-4d14-a818-f9256cc31ae5@c41g2000yqm.googlegroups.com> <op.vv49ptxhhilul8@asus7.home> <0c2a0c9a-5850-4081-97d3-48b4323d9585@16g2000yqy.googlegroups.com> <op.vv7up6cthilul8@asus7.home> <1d2bd5b5-9564-4eff-8e08-d1574969c828@z13g2000yqg.googlegroups.com> <c1e50bc6-39f1-46a5-9e7a-c43e0fb8f206@l26g2000yqm.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Newsgroups: pl.comp.lang.python
Subject: Re: Interpretowany czy kompilowany?
References: <iqmlha$r29$1@news.onet.pl> <irbh66$4fa$1@news.onet.pl> <c4a63f8f-afbc-4dab-ab9e-4c241433ab38@28g2000yqu.googlegroups.com> <irg9ua$pb6$1@news.onet.pl> <3ede9f91-b3da-4845-94e3-697e9301d530@d1g2000yqm.googlegroups.com> <20110525202013.b67a5b5a.gryf_esm-no@spam-o2.pl> <31a73c32-7483-4f0b-b2fa-386103875cf4@x6g2000yqj.googlegroups.com> <c72bf0b2-afa1-4e1b-80aa-7198e59e2e45@b42g2000yqi.googlegroups.com> <irjnsg$g0e$1@inews.gazeta.pl> <4f2c76ae-c4f5-4cac-99c8-138ec0019139@y12g2000yqh.googlegroups.com> <irm8uf$293$1@inews.gazeta.pl> <da18f5f5-5eba-4d14-a818-f9256cc31ae5@c41g2000yqm.googlegroups.com> <op.vv49ptxhhilul8@asus7.home> <0c2a0c9a-5850-4081-97d3-48b4323d9585@16g2000yqy.googlegroups.com> <op.vv7up6cthilul8@asus7.home> <1d2bd5b5-9564-4eff-8e08-d1574969c828@z13g2000yqg.googlegroups.com> <c1e50bc6-39f1-46a5-9e7a-c43e0fb8f206@l26g2000yqm.googlegroups.com>
Date: Sun, 29 May 2011 13:16:13 +0200
MIME-Version: 1.0
From: "Jordan Szubert" <usenet@joru.us.to>
Organization: HELL inc.
Message-ID: <op.vv8plbrdhilul8@asus7.home>
User-Agent: Opera Mail/11.11 (Win32)
Lines: 56
NNTP-Posting-Host: 83.26.219.73
X-Trace: 1306667775 unt-rea-a-02.news.neostrada.pl 2494 83.26.219.73:45420
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit