Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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; 'aug': 0.13; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'still,': 0.16; 'wrote:': 0.17; 'instance': 0.17; 'thu,': 0.17; 'defined': 0.22; 'class.': 0.23; "haven't": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'charset:iso-8859-15': 0.26; 'header:X-Complaints- To:1': 0.28; 'class': 0.29; 'classes': 0.30; 'defining': 0.33; 'to:addr:python-list': 0.33; 'returning': 0.35; 'sometimes': 0.35; 'there': 0.35; 'received:org': 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; 'show': 0.63; 'discovered': 0.83; 'oscar': 0.84; 'angel': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Oscar Benjamin Subject: Re: Beginners question Date: Thu, 30 Aug 2012 14:30:29 +0100 References: <503F6937.1060106@davea.name> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: cpc1-aztw8-0-0-cust1455.18-1.cable.virginmedia.com In-Reply-To: <503F6937.1060106@davea.name> User-Agent: Groundhog Newsreader for Android 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346333442 news.xs4all.nl 6954 [2001:888:2000:d::a6]:52770 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28121 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). Oscar