[New-bugs-announce] [issue5881] Remove extraneous backwards-compatibility attributes from some modules

Larry Hastings report at bugs.python.org
Wed Apr 29 18:50:05 CEST 2009


New submission from Larry Hastings <larry at hastings.org>:

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.

----------
components: Extension Modules
files: lch.modulecleanup.r72081.diff
keywords: patch
messages: 86815
nosy: larry
severity: normal
status: open
title: Remove extraneous backwards-compatibility attributes from some modules
type: feature request
versions: Python 3.1
Added file: http://bugs.python.org/file13818/lch.modulecleanup.r72081.diff

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


More information about the New-bugs-announce mailing list