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 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> References: <87vbd850qa.fsf@gmail.com> <1619647.1FW7hyz6Jq@PointedEars.de> <1757573.rN60lcJNyZ@PointedEars.de> <1852361.ZT26voajJO@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn 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 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__) | Most interesting (but understandable): | >>> print(42..__class__) | 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.