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


Groups > comp.lang.python > #108253

Re: A fun python CLI program for all to enjoy!

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: A fun python CLI program for all to enjoy!
Date Sat, 07 May 2016 18:24:45 +1200
Lines 10
Message-ID <dp5g1fF7ndoU1@mid.individual.net> (permalink)
References <ngiq0u$brn$1@dont-email.me> <7e52b918-2087-f93f-43cb-3411c1cdc881@mrabarnett.plus.com> <mailman.436.1462566630.32212.python-list@python.org> <ngj86q$ia$1@dont-email.me> <572D28CF.3080100@stoneleaf.us> <mailman.439.1462577357.32212.python-list@python.org> <ngjatb$7g9$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net EpZW14UigLbLo0gq3FbVbQhPiqE5KTq5EpgaLfI9fkDC5hJYLz
Cancel-Lock sha1:ft9dLXMBFVbBNn/863dmUEufxuA=
User-Agent Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language en-us, en
In-Reply-To <ngjatb$7g9$1@dont-email.me>
Xref csiph.com comp.lang.python:108253

Show key headers only | View raw


DFS wrote:
> Maybe it worked because the last time the file was written to was in a 
> for loop, so I got lucky and the files weren't truncated?  Don't know.

It "works" because CPython disposes of objects as soon
as they are not referenced anywhere. Other implementations
of Python (e.g. Jython, PyPy) might not do that.

-- 
Greg

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


Thread

A fun python CLI program for all to enjoy! DFS <nospam@dfs.com> - 2016-05-06 15:10 -0400
  Re: A fun python CLI program for all to enjoy! MRAB <python@mrabarnett.plus.com> - 2016-05-06 21:30 +0100
    Re: A fun python CLI program for all to enjoy! DFS <nospam@dfs.com> - 2016-05-06 19:12 -0400
      Re: A fun python CLI program for all to enjoy! Ethan Furman <ethan@stoneleaf.us> - 2016-05-06 16:29 -0700
        Re: A fun python CLI program for all to enjoy! DFS <nospam@dfs.com> - 2016-05-06 19:58 -0400
          Re: A fun python CLI program for all to enjoy! MRAB <python@mrabarnett.plus.com> - 2016-05-07 01:38 +0100
          Re: A fun python CLI program for all to enjoy! Stephen Hansen <me+python@ixokai.io> - 2016-05-06 23:03 -0700
          Re: A fun python CLI program for all to enjoy! Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-05-07 18:24 +1200
            Re: A fun python CLI program for all to enjoy! alister <alister.ware@ntlworld.com> - 2016-05-07 08:51 +0000
  Re: A fun python CLI program for all to enjoy! Peter Otten <__peter__@web.de> - 2016-05-07 15:59 +0200

csiph-web