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

Reply via email to