[New-bugs-announce] [issue18327] swapped arguments in compatible_for_assignment()?

Christian Heimes report at bugs.python.org
Sat Jun 29 21:08:45 CEST 2013


New submission from Christian Heimes:

Coverity has found something fishy in our code base:

CID 983564 (#1 of 1): Arguments in wrong order (SWAPPED_ARGUMENTS)swapped_arguments: The positions of arguments newto and oldto are inconsistent with the positions of the corresponding parameters for "compatible_for_assignment(PyTypeObject *, PyTypeObject *, char *)".

Object/typeobject.c:3326
    if (compatible_for_assignment(newto, oldto, "__class__")) {
Objects/typeobject.c.3265

static int
compatible_for_assignment(PyTypeObject* oldto, PyTypeObject* newto, char* attr)

----------
components: Interpreter Core
messages: 192042
nosy: christian.heimes
priority: normal
severity: normal
stage: test needed
status: open
title: swapped arguments in compatible_for_assignment()?
type: behavior
versions: Python 3.4

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


More information about the New-bugs-announce mailing list