Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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; 'output': 0.04; '(even': 0.05; 'classes,': 0.05; 'builtin': 0.07; 'class,': 0.07; 'subject:question': 0.08; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'aug': 0.13; 'benjamin': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'still,': 0.16; 'wrote:': 0.17; 'instance': 0.17; 'thu,': 0.17; 'jan': 0.18; '>>>': 0.18; 'defined': 0.22; 'class.': 0.23; "haven't": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'header:X-Complaints- To:1': 0.28; 'about.': 0.29; 'class': 0.29; 'classes': 0.30; 'system,': 0.32; 'goes': 0.33; 'defining': 0.33; 'to:addr:python- list': 0.33; 'returning': 0.35; 'sometimes': 0.35; 'there': 0.35; 'received:org': 0.36; 'should': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'shows': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'back': 0.62; 'show': 0.63; 'discovered': 0.83; 'oscar': 0.84; 'received:fios.verizon.net': 0.84; 'angel': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Beginners question Date: Thu, 30 Aug 2012 14:22:45 -0400 References: <503F6937.1060106@davea.name> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346351013 news.xs4all.nl 6881 [2001:888:2000:d::a6]:58261 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28138 On 8/30/2012 9:30 AM, Oscar Benjamin wrote: > On Thu, 30 Aug 2012 09:23:03 -0400, Dave Angel wrote: >> I haven't discovered why sometimes the type output shows type > instead of >> class. There are other ways of defining classes, however, and > perhaps >> this is using one of them. Still, it is a class, and stat() is >> returning an instance of that class. > > Builtin types show as type and classes defined in python show as class > (even if they inherit from builtin types). Only in 2.x, and this goes back to the old user class system, which the OP should not have to learn about. >>> type(1) -- Terry Jan Reedy