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


Groups > comp.lang.python > #15966 > unrolled thread

What is the difference between "new Class()" and "Class()"?

Started byHerman <sorsorday@gmail.com>
First post2011-11-20 13:16 -0800
Last post2011-11-21 10:40 +1100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  What is the difference between "new Class()" and "Class()"? Herman <sorsorday@gmail.com> - 2011-11-20 13:16 -0800
    Re: What is the difference between "new Class()" and "Class()"? Ben Finney <ben+python@benfinney.id.au> - 2011-11-21 10:40 +1100

#15966 — What is the difference between "new Class()" and "Class()"?

FromHerman <sorsorday@gmail.com>
Date2011-11-20 13:16 -0800
SubjectWhat is the difference between "new Class()" and "Class()"?
Message-ID<mailman.2875.1321824124.27778.python-list@python.org>
What is so special about the "new" operator?

[toc] | [next] | [standalone]


#15970

FromBen Finney <ben+python@benfinney.id.au>
Date2011-11-21 10:40 +1100
Message-ID<87lira747i.fsf@benfinney.id.au>
In reply to#15966
Herman <sorsorday@gmail.com> writes:

> What is so special about the "new" operator?

It's special because Python doesn't have it. Can you refer us with a URL
to the place where you've seen Python code containing a ‘new’ operator?

-- 
 \       “Fear him, which after he hath killed hath power to cast into |
  `\   hell; yea, I say unto you, Fear him.” –Jesus, as quoted in Luke |
_o__)                                                             12:5 |
Ben Finney

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web