Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Oct 2004 03:30:21 +0200
From:      Valentino Volonghi aka Dialtone <dialtone#$#NOSPAMMINGME#$$%@gmail.com>
To:        muc-lists-freebsd-ports@moderators.muc.de
Subject:   Python Coredump
Message-ID:  <pan.2004.10.09.01.30.21.105819@gmail.com>

next in thread | raw e-mail | index | archive | help
Try executing this simple program in py:

class NewList(list):
    def __getslice__(self, start, stop):
        if type(start) == str and type(stop) == str:
            return self[self.index(start):self.index(stop)]
        else:
            return self[start:stop]
a = NewList([1,2,3,4,5,6])
print a[1:4]

In my FreeBSD 5.3-beta7 box it coredumps with bus error.

The responsible is self[start:stop], but this shouldn't be a problem at
all.

my uname -a:
FreeBSD vercingetorix.caesar.org 5.3-BETA7 FreeBSD 5.3-BETA7 #5: 
Tue Oct  5 20:39:14 CEST 2004    
dialtone@vercingetorix.caesar.org:/usr/obj/usr/src/sys/VERCINGETORIX01 
i386



-- 
Valentino Volonghi aka Dialtone
Now running FreeBSD 5.3-beta6
Blog: http://vvolonghi.blogspot.com
Home Page: http://xoomer.virgilio.it/dialtone/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?pan.2004.10.09.01.30.21.105819>