[issue2045] defaultdict subclasses segfault with a bound method set as a default_factory

2008-02-07 Thread jason kirtland

New submission from jason kirtland:

Python 2.5.1 (r251:54863, May 23 2007, 16:25:53) 
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] on linux2
Type help, copyright, credits or license for more information.
 from collections import defaultdict
 class sub(defaultdict):
... def __init__(self):
... self.default_factory = self._factory
... def _factory(self):
... return []
... 
 s = sub()
 repr(s)
Segmentation fault

--
components: Library (Lib)
messages: 62185
nosy: jek
severity: normal
status: open
title: defaultdict subclasses segfault with a bound method set as a 
default_factory
type: crash
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2045
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2045] defaultdict subclasses segfault with a bound method set as a default_factory

2008-02-07 Thread Amaury Forgeot d'Arc

Changes by Amaury Forgeot d'Arc:


--
assignee:  - amaury.forgeotdarc
nosy: +amaury.forgeotdarc
resolution:  - fixed
status: open - pending

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2045
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2045] defaultdict subclasses segfault with a bound method set as a default_factory

2008-02-07 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Committed r60663 in trunk. Thanks for the report!
Will backport to the 2.5 branch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2045
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2045] defaultdict subclasses segfault with a bound method set as a default_factory

2008-02-07 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Committed r60664 for the coming 2.5.2.

--
status: pending - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2045
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com