[issue18327] swapped arguments in compatible_for_assignment()?

2013-07-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a65856044ad4 by Christian Heimes in branch 'default':
Issue #18327: Fix argument order in call to compatible_for_assignment(oldto, 
newto, attr).
http://hg.python.org/cpython/rev/a65856044ad4

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18327] swapped arguments in compatible_for_assignment()?

2013-07-20 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18327] swapped arguments in compatible_for_assignment()?

2013-07-01 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Fortunately, compatible_for_assignment() handles both arguments exactly the 
same way, except maybe in error messages.

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18327] swapped arguments in compatible_for_assignment()?

2013-06-29 Thread Christian Heimes

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 rep...@bugs.python.org
http://bugs.python.org/issue18327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com