A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-August/055252.html below:

[Python-Dev] __traceback__ and reference cycles

[Python-Dev] __traceback__ and reference cyclesArmin Rigo arigo at tunes.org
Mon Aug 8 10:38:12 CEST 2005
Hi,

On Mon, Aug 08, 2005 at 10:31:06AM +0200, Armin Rigo wrote:
> see the attached program...

Oups.  Here it is...


Armin
-------------- next part --------------
import sys, time

def log(typ, val, tb):
    pass

class X:
    def __del__(self):
        try:
            typo
        except Exception, e:
            e_type, e_value, e_tb = sys.exc_info()
            log(e_type, e_value, e_tb)


t = time.time()
while True:
    lst = [X() for i in range(1000)]
    t1 = time.time()
    print t1 - t
    t = t1
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4