[issue24040] plistlib assumes dict_type is descendent of dict

Behdad Esfahbod report at bugs.python.org
Fri Apr 24 01:18:04 CEST 2015


Behdad Esfahbod added the comment:

I don't have a valid use-case in mind.  I was reading the code and noticed this discrepancy.

(4) replace the isinstance(self.stack[-1], type({})) with not isinstance(self.stack[-1], type([])).

----------

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


More information about the Python-bugs-list mailing list