[New-bugs-announce] [issue3268] Cleanup of tp_basicsize inheritance

Adam Olsen report at bugs.python.org
Thu Jul 3 08:31:39 CEST 2008


New submission from Adam Olsen <rhamph at gmail.com>:

inherit_special contains logic to inherit the base type's tp_basicsize
if the new type doesn't have it set.  The logic was spread over several
lines, but actually does almost nothing (presumably an artifact of
previous versions), so here's a patch to clean it up.

There was also an incorrect comment which I've removed.  A new one
should perhaps be added explaining what the other code there does, but
it's not affected by what I'm changing, and I'm not sure why it's doing
what it's doing anyway, so I'll leave that to someone else.

----------
files: python-inheritsize.diff
keywords: patch
messages: 69169
nosy: Rhamphoryncus, nnorwitz
severity: normal
status: open
title: Cleanup of tp_basicsize inheritance
Added file: http://bugs.python.org/file10798/python-inheritsize.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3268>
_______________________________________


More information about the New-bugs-announce mailing list