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


Groups > comp.lang.python > #108589

Re: Distinction between “class” and “type”

From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: Distinction between “class” and “type”
Date 2016-05-13 20:24 +1200
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>

Show all headers | 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