Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108589

Re: Distinction between “class” and “type”

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: Distinction between “class” and “type”
Date Fri, 13 May 2016 20:24:44 +1200
Lines 12
Message-ID <dplhacFftlqU1@mid.individual.net> (permalink)
References <85eg96eebr.fsf@benfinney.id.au> <mailman.623.1463116040.32212.python-list@python.org> <87shxm4fxh.fsf@jester.gateway.pace.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net qF46usZYWFlbHQ4wuH0tyw4DazNHo1P2n9ShnaVb4UqK8ihbne
Cancel-Lock sha1:BU92Xn7X0qoG4+hloSym20Cul2k=
User-Agent Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language en-us, en
In-Reply-To <87shxm4fxh.fsf@jester.gateway.pace.com>
Xref csiph.com comp.lang.python:108589

Show key headers only | View raw


Paul Rubin wrote:
> You can't instantiate T by saying
> 
>    x = T()
> 
> and expecting to get back some value that is (indeterminately) an int or
> a string.

Unless it's Python 6000 running on a quantum computer...

-- 
Greg

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Distinction between “class” and “type” Ben Finney <ben+python@benfinney.id.au> - 2016-05-13 15:07 +1000
  Re: Distinction between “class” and “type” Rustom Mody <rustompmody@gmail.com> - 2016-05-12 22:21 -0700
  Re: Distinction between “class” and “type” Paul Rubin <no.email@nospam.invalid> - 2016-05-12 23:42 -0700
    Re: Distinction between “class” and   “type” Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-05-13 20:24 +1200
  Re: Distinction between “class” and “type” Steven D'Aprano <steve@pearwood.info> - 2016-05-14 15:05 +1000

csiph-web