Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94617
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: scalar vs array and program control |
| Date | Sun, 26 Jul 2015 12:35:53 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 33 |
| Message-ID | <2035096.cBO6vpb5vr@PointedEars.de> (permalink) |
| References | <87vbd850qa.fsf@gmail.com> <mailman.973.1437822101.3674.python-list@python.org> <1619647.1FW7hyz6Jq@PointedEars.de> <mailman.978.1437831852.3674.python-list@python.org> <1757573.rN60lcJNyZ@PointedEars.de> <mailman.989.1437846349.3674.python-list@python.org> <1852361.ZT26voajJO@PointedEars.de> |
| Reply-To | Thomas 'PointedEars' Lahn <usenet@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1437907159 336 eJwNxcEBwCAIA8CVqhCEcUIs+4/Q3udgsULHA+EYDDXaeh12xeLG6cXsfGyrTMHkHf45snriAzo5EfE= (26 Jul 2015 10:39:19 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sun, 26 Jul 2015 10:39:19 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwNy8kBwCAMA7CVcjowDsRk/xFa/ZUORVcgETk5ITDi8tznJYMeMLtUpWm7Tz/WFVrlCzEtj801Unv452UfaKIVwg== |
| Cancel-Lock | sha1:vHWpBUN4vlpRiRtowAVGJPYY3EY= |
| X-NNTP-Posting-Host | eJwFwYEBwDAEBMCVIvxjnCL2H6F3UArbjaBhsXaIHTeZ0tLHuJHaha4zS233ZQmiE5TJ7wcZJxEQ |
| Xref | csiph.com comp.lang.python:94617 |
Show key headers only | View raw
Thomas 'PointedEars' Lahn wrote:
> Laura Creighton wrote:
>> and to create a class where none was before to make it more object-
>> oriented.
>
> I did not need to, but, again, it was more obvious that way. I could also
> have used an existing class, and its existing or newly added method.
> AISB, almost everything in Python is an object; therefore, almost
> everything in Python has a class (try “print((42)).__class__)” in Py3k).
^
> […]
| >>> print((42).__class__)
| <class 'int'>
Most interesting (but understandable):
| >>> print(42..__class__)
| <class 'float'>
BTW, another common misconception that I read from your argument is that
“object-oriented” would be synonymous with “class-based”; that one needs a
class for OOP. In fact, however, there are several object-oriented
programming languages, again for example most ECMAScript implementations,
that are prototype-based: one object/instance inherits from another, its
prototype.
--
PointedEars
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: scalar vs array and program control Laura Creighton <lac@openend.se> - 2015-07-25 13:01 +0200
Re: scalar vs array and program control Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-25 14:57 +0200
Re: scalar vs array and program control Laura Creighton <lac@openend.se> - 2015-07-25 15:43 +0200
Re: scalar vs array and program control Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-25 18:53 +0200
Re: scalar vs array and program control Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-25 18:56 +0200
Re: scalar vs array and program control Laura Creighton <lac@openend.se> - 2015-07-25 19:45 +0200
Re: scalar vs array and program control Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-26 12:26 +0200
Re: scalar vs array and program control Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-26 12:35 +0200
csiph-web