This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Remove extraneous backwards-compatibility attributes from some modules
Type: enhancement Stage:
Components: Extension Modules Versions: Python 3.1
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, larry
Priority: normal Keywords: patch

Created on 2009-04-29 16:50 by larry, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
lch.modulecleanup.r72081.diff larry, 2009-04-29 16:50 Patch against py3k/trunk r72081.
Messages (2)
msg86815 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2009-04-29 16:50
While hacking on CPython I noticed a couple of attributes that were
there strictly for backwards compatibility with ancient modules or pure
mistakes.  They are:
  _hashlib.hash.digestsize
  pwd.struct_pwent
  _sha224.digestsize
  _sha256.digestsize
  _sha384.digestsize
  _sha512.digestsize

None of these are part of the documented interface, and all of them are
redundant with documented interfaces.  I suggest that they can all go.

The attached patch removes all of the above.  With the patch applied
Python passes all expected unit tests.
msg87188 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-05-04 22:25
Applied in r72300.
History
Date User Action Args
2022-04-11 14:56:48adminsetgithub: 50131
2009-05-04 22:25:38benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg87188

resolution: accepted
2009-04-29 16:50:04larrycreate