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


Groups > comp.lang.python > #90310

Re: anomaly

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <dreamingforward@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.142
X-Spam-Level *
X-Spam-Evidence '*H*': 0.72; '*S*': 0.00; 'latter': 0.09; 'oop': 0.09; 'python': 0.11; 'changes': 0.15; 'class),': 0.16; 'sees': 0.16; 'wrote:': 0.18; 'issue.': 0.22; "i've": 0.25; 'class.': 0.26; 'pass': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; '(like': 0.30; 'expansion': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; '>>>>': 0.31; 'proposing': 0.31; 'class': 0.32; 'everyone': 0.33; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'object,': 0.36; 'example,': 0.37; 'wrong': 0.37; 'clear': 0.37; 'to:addr:python-list': 0.38; 'fact': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'hope': 0.61; 'new': 0.61; 'term': 0.63; 'more': 0.64; 'between': 0.67; 'behavior': 0.77; "'3'": 0.84; 'hammered': 0.84; 'it`s': 0.84; 'messed': 0.84; 'from.': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Jb1OUAbJA4IWg/T73ONEcmuvoqJQ3MoNPt6n/U3JJT4=; b=xFjhzeqWjWqw3jo/C5uLiXFweL0ifa8tIUqBpNA7VEiMPI8n6xTee/yMuS+2Z/yQiS mEz+VpvyNQRQ4rxSd7dRkmZnLndbxCA1MEgTx4MZd2zevwPO8LmKEu7KTMwzpwONRJMC eGQVKbk2vM38QYBVpge3JmGNKzDx9TQs2AgrDk+0kyIWIgmJgVaezhKnDn3oOO/9VMPg MdGLSk2NSgV/ve8PFit6RvWdpPqIN6jxLcH/amNqkchtaJF8omIDRbPLWLsHcx1UHqzo LSPSp8KAwZ7kvBU+78o/V2Z9Hcv5TJ3ilOmzHm9YwDN1aN3W7LIk1IYb24nrXRtXQpvn /EnA==
MIME-Version 1.0
X-Received by 10.152.19.70 with SMTP id c6mr5987761lae.121.1431298784806; Sun, 10 May 2015 15:59:44 -0700 (PDT)
In-Reply-To <CAMjeLr--RfnfgWc1hdOcHiEBpq3QwC7SZk-m14wM65JtpbgMLQ@mail.gmail.com>
References <CAMjeLr--RfnfgWc1hdOcHiEBpq3QwC7SZk-m14wM65JtpbgMLQ@mail.gmail.com>
Date Sun, 10 May 2015 17:59:44 -0500
Subject Re: anomaly
From Mark Rosenblitt-Janssen <dreamingforward@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.324.1431298792.12865.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1431298792 news.xs4all.nl 2827 [2001:888:2000:d::a6]:58494
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:90310

Show key headers only | View raw


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



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
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: anomaly Mark Rosenblitt-Janssen <dreamingforward@gmail.com> - 2015-05-10 17:59 -0500

csiph-web