[New-bugs-announce] [issue18926] plistlib - str converted to bool

Raymond Piller report at bugs.python.org
Wed Sep 4 23:51:08 CEST 2013


New submission from Raymond Piller:

A plist with:
<key>My key</key>
<string>False</string>

will parse to a dict as:
{'My key': False}

Expected:
{'My key': 'False'}

If bool(False) is needed, the plist should say:
<key>My key</key>
<false/>

----------
messages: 196959
nosy: VertigoRay
priority: normal
severity: normal
status: open
title: plistlib - str converted to bool
versions: Python 2.7

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


More information about the New-bugs-announce mailing list