Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28138
| 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 | <python-python-list@m.gmane.org> |
| 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 <tjreedy@udel.edu> |
| Subject | Re: Beginners question |
| Date | Thu, 30 Aug 2012 14:22:45 -0400 |
| References | <k1nk8s$3l4$1@speranza.aioe.org> <mailman.3964.1346328894.4697.python-list@python.org> <k1nnj1$cal$1@speranza.aioe.org> <503F6937.1060106@davea.name> <almarsoft.5413976959670812631@news.gmane.org> |
| 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 | <almarsoft.5413976959670812631@news.gmane.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3981.1346351013.4697.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On 8/30/2012 9:30 AM, Oscar Benjamin wrote: > On Thu, 30 Aug 2012 09:23:03 -0400, Dave Angel <d@davea.name> 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) <class 'int'> -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Beginners question boltar2003@boltar.world - 2012-08-30 11:54 +0000
Re: Beginners question MRAB <python@mrabarnett.plus.com> - 2012-08-30 13:14 +0100
Re: Beginners question Roy Smith <roy@panix.com> - 2012-08-30 08:23 -0400
Re: Beginners question boltar2003@boltar.world - 2012-08-30 12:50 +0000
Re: Beginners question Chris Angelico <rosuav@gmail.com> - 2012-08-30 23:06 +1000
Re: Beginners question boltar2003@boltar.world - 2012-08-30 13:16 +0000
Re: Beginners question Dave Angel <d@davea.name> - 2012-08-30 09:23 -0400
Re: Beginners question Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-08-30 14:30 +0100
Re: Beginners question Terry Reedy <tjreedy@udel.edu> - 2012-08-30 14:22 -0400
Re: Beginners question Dave Angel <d@davea.name> - 2012-08-30 08:25 -0400
Re: Beginners question boltar2003@boltar.world - 2012-08-30 12:53 +0000
Re: Beginners question Chris Angelico <rosuav@gmail.com> - 2012-08-30 22:32 +1000
Re: Beginners question Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-08-30 14:49 +0200
Re: Beginners question Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-08-30 16:41 +0200
Re: Beginners question Hans Mulder <hansmu@xs4all.nl> - 2012-08-30 17:38 +0200
Re: Beginners question charvigroups@gmail.com - 2012-09-04 23:28 -0700
Re: Beginners question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-05 09:03 +0100
Re: Beginners question Dave Angel <d@davea.name> - 2012-09-05 09:21 -0400
csiph-web