Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #90312 > unrolled thread
| Started by | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| First post | 2015-05-11 00:34 +0100 |
| Last post | 2015-05-11 00:34 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-11 00:34 +0100
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2015-05-11 00:34 +0100 |
| Subject | Re: anomaly |
| Message-ID | <mailman.326.1431300919.12865.python-list@python.org> |
On 10/05/2015 23:59, Mark Rosenblitt-Janssen wrote: > On 5/10/15, Mark Rosenblitt-Janssen <dreamingforward@gmail.com> wrote: >> Here's something that might be wrong in Python (tried on v2.7): >> >>>>> class int(str): pass >> >>>>> int(3) >> '3' >> >> Mark >> > Here's where this exploration came from. I've (once again) been > contemplating the OO nature. > > It's clear to me that there needs to be a distinction between > specialization of an object vs. expansion of an object (a new term I'm > proposing to the OOP lexicon). The latter *adds* more functionality > (like what everyone does with the Object class), while the former > changes the behavior of some class for more specific behavior that was > not programmed in the original class. > > It's a difference between, for example, concrete base types and ABCs. > Python artificially tried to make int inherit from object, just > because it can, but this is wrong. It`s messed with the Zen-thing. > "Purity has hammered practicality [like the fact that we actually have > to work on concrete types in the CPU] into the ground. " (addition > mine). > > Sorry I can't spend more time clarifying. I hope that there's at > least one person who sees the issue. > > Mark > It strikes me that you haven't a clue about Python and worse still you're top posting, please don't. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to top | Article view | comp.lang.python
csiph-web