[New-bugs-announce] [issue29196] Remove old-deprecated plistlib features

Serhiy Storchaka report at bugs.python.org
Sat Jan 7 11:52:20 EST 2017


New submission from Serhiy Storchaka:

Seems many features of plistlib was deprecated from the start. The plistlib module was added in 2.6 and its code already contained deprecated features:

* The _InternalDict class is a dict subclass with implemented __getattr__/__setattr__/__delattr__ methods, but all these methods have been deprecated. Since deprecated methods shouldn't be used and they are not implemented in builting dict, _InternalDict can be replaced by builting dict.

* The Dict class has been deprecated. It doesn't used in the module. A user should use builting dict instead.

* The Plist class has been deprecated. It doesn't used in the module. A user should use module level functions instead of Plist methods.

It seems to me that all these classes can be removed. This doesn't break compatibility, since they were deprecated in 2.6. They are even not documented in 2.7.

----------
components: Library (Lib)
files: plistlib_remove_deprecated_classes.patch
keywords: patch
messages: 284925
nosy: ronaldoussoren, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Remove old-deprecated plistlib features
type: enhancement
versions: Python 3.7
Added file: http://bugs.python.org/file46196/plistlib_remove_deprecated_classes.patch

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


More information about the New-bugs-announce mailing list