[New-bugs-announce] [issue11101] plistlib has no graceful way of handing None values

Bob Van Zant report at bugs.python.org
Wed Feb 2 20:10:53 CET 2011

New submission from Bob Van Zant <bob at veznat.com>:

The Apple plist format does not support None or Null values in its output. A Null value in plist is denoted by the absence of the key in the data structure.

The python plist writer generates a TypeError when a None value is encoded. This issue is to track dealing with None values.

A suggestion is to have a flag on the various plist write functions and methods that will allow ignoring None values.

No changes are required to the plist reader.

components: Library (Lib)
files: plistlib.patch
keywords: patch
messages: 127750
nosy: bobveznat
priority: normal
severity: normal
status: open
title: plistlib has no graceful way of handing None values
type: feature request
versions: Python 2.7
Added file: http://bugs.python.org/file20651/plistlib.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list