classification
Title: Remove old-deprecated plistlib features
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: ronaldoussoren, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2017-01-07 16:52 by serhiy.storchaka, last changed 2017-03-15 11:03 by serhiy.storchaka.

Files
File name Uploaded Description Edit
plistlib_remove_deprecated_classes.patch serhiy.storchaka, 2017-01-07 16:52 review
Pull Requests
URL Status Linked Edit
PR 488 open serhiy.storchaka, 2017-03-05 22:22
Messages (2)
msg284925 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-01-07 16:52
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.
msg289666 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-15 11:03
These classes was deprecated in 2.4. In 2.6 the plistlib module was moved from plat-mac to the general stdlib library.
History
Date User Action Args
2017-03-15 11:03:06serhiy.storchakasetmessages: + msg289666
2017-03-05 22:22:17serhiy.storchakasetpull_requests: + pull_request401
2017-01-22 21:15:49serhiy.storchakasetassignee: ronaldoussoren
2017-01-07 16:52:20serhiy.storchakacreate