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


Groups > comp.lang.python > #65311

Re: __init__ is the initialiser

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jeanpierreda@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'language.': 0.14; 'modules.': 0.16; "object's": 0.16; 'language': 0.16; 'wrote:': 0.18; '(the': 0.22; 'feb': 0.22; 'memory': 0.22; 'otherwise,': 0.22; 'cc:addr:python.org': 0.22; 'fine': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'extension': 0.26; 'references': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; 'easy,': 0.31; 'time;': 0.31; 'guess': 0.33; 'subject:the': 0.34; 'received:google.com': 0.35; 'checks': 0.38; 'pm,': 0.38; 'previous': 0.38; 'rather': 0.38; 'anything': 0.39; 'called': 0.40; 'to:addr:gmail.com': 0.65; 'goal': 0.75; "it'd": 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=u0AF1Q8gIVWYeyF8KjeDHIGKupRhLey9zTcc5CIQxRI=; b=dQWg4WQle3jQ5JxiJR7fiAw1+y0lfkROeZOnnBi8T+52GrGo4PzIcYngjJ0HtCc/JM AEOiHoV5LOeHPAh4APxgBjB7Ov37DMZneVNGrdOVLyocvKOS6SjKyVMVndJdX4s4+8EL uU2zQ0Xp6JiuelB7kIdWRbRKR5TKnzCoZmBz/lBXLrnG1GLjyUZRKIoLyyFyMLXz84Mn ZHAy34trE5UbKaMdP4kkh74Pjlq/prVEqmaA+0p1bQPx2yHt7JzJpOIoHTKxyhbdHR5V ulnRhFFczutzozc39CnV8trX1d7P/uGnrM2qcAu2GVeOAwKNeG86a0Vc5/44sTUcOK/Y wCNQ==
X-Received by 10.224.28.197 with SMTP id n5mr49542149qac.43.1391392512320; Sun, 02 Feb 2014 17:55:12 -0800 (PST)
MIME-Version 1.0
In-Reply-To <CAPTjJmodq2s-5zy=jxrZ9NNkghsbEDcf6aOAkrYTypeNJPKmHQ@mail.gmail.com>
References <lcgtpf$tui$1@ger.gmane.org> <lcgut2$b8r$1@ger.gmane.org> <858utviwgs.fsf@benfinney.id.au> <lchce7$44q$1@ger.gmane.org> <52EC3C40.7080402@stoneleaf.us> <mailman.6251.1391224639.18130.python-list@python.org> <52ec84bc$0$29972$c3e8da3$5496439d@news.astraweb.com> <roy-5740C1.00250401022014@news.panix.com> <bl81skFh14iU1@mid.individual.net> <mailman.6313.1391383680.18130.python-list@python.org> <roy-C454F0.18405902022014@news.panix.com> <CAPTjJmo6qpfP74YF+2xKV1y-qUNt6rG+8kHkoYJZXbb3HED5pg@mail.gmail.com> <CABicbJJrUv=Nrag5DQGU49BO98zpymvyZCtfxA=TYLrd14Tqvg@mail.gmail.com> <CAPTjJmodq2s-5zy=jxrZ9NNkghsbEDcf6aOAkrYTypeNJPKmHQ@mail.gmail.com>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date Sun, 2 Feb 2014 17:54:31 -0800
Subject Re: __init__ is the initialiser
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.6320.1391392514.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1391392514 news.xs4all.nl 2965 [2001:888:2000:d::a6]:57287
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:65311

Show key headers only | View raw


On Sun, Feb 2, 2014 at 5:37 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Mon, Feb 3, 2014 at 12:24 PM, Devin Jeanpierre
>> Destroying memory is comparatively easy, as you say -- just make the
>> object's internal state "invalid", rather than adding anything to the
>> language.
>
> Yeah. Works fine if you have a cooperative system that checks that
> state every time; otherwise, it'd need at least some language support
> (the goal is to have its destructor called and all its references
> wiped, so resources get released).

I guess my point is that I don't see what you need on top of extension
modules. Same for previous paragraph.

-- Devin

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


Thread

Re: __init__ is the initialiser Terry Reedy <tjreedy@udel.edu> - 2014-01-31 22:16 -0500
  Re: __init__ is the initialiser Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-01 05:23 +0000
    Re: __init__ is the initialiser Roy Smith <roy@panix.com> - 2014-02-01 00:25 -0500
      Re: __init__ is the initialiser Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-03 12:15 +1300
        Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-03 10:27 +1100
          Re: __init__ is the initialiser Roy Smith <roy@panix.com> - 2014-02-02 18:40 -0500
            Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-03 11:07 +1100
            Re: __init__ is the initialiser Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-02-02 17:24 -0800
            Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-03 12:37 +1100
            Re: __init__ is the initialiser Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-02-02 17:54 -0800
            Re: __init__ is the initialiser Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-02-03 08:44 -0500
            Re: __init__ is the initialiser Nicholas Cole <nicholas.cole@gmail.com> - 2014-02-03 13:50 +0000
            Re: __init__ is the initialiser Ian Kelly <ian.g.kelly@gmail.com> - 2014-02-03 10:44 -0700
            Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-04 04:57 +1100
            Re: __init__ is the initialiser Nicholas Cole <nicholas.cole@gmail.com> - 2014-02-03 19:57 +0000
            Re: __init__ is the initialiser Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-02-03 19:38 -0500
        Re: __init__ is the initialiser Dave Angel <davea@davea.name> - 2014-02-02 19:35 -0500
          Re: __init__ is the initialiser Roy Smith <roy@panix.com> - 2014-02-02 19:45 -0500
            Re: __init__ is the initialiser Dave Angel <davea@davea.name> - 2014-02-02 22:14 -0500
            Re: __init__ is the initialiser Skip Montanaro <skip@pobox.com> - 2014-02-02 21:15 -0600
            Re: __init__ is the initialiser Dave Angel <davea@davea.name> - 2014-02-03 00:06 -0500
              Re: __init__ is the initialiser Roy Smith <roy@panix.com> - 2014-02-03 00:12 -0500
                Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-03 16:49 +1100
                Re: __init__ is the initialiser Ethan Furman <ethan@stoneleaf.us> - 2014-02-02 21:34 -0800
    Re: __init__ is the initialiser Rustom Mody <rustompmody@gmail.com> - 2014-01-31 21:31 -0800

csiph-web