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: _struct.__version__ should be string, not bytes
Type: behavior Stage:
Components: Extension Modules Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: belopolsky, mark.dickinson
Priority: normal Keywords: easy

Created on 2010-06-12 04:48 by belopolsky, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg107627 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010-06-12 04:48
>>> import _struct
>>> _struct.__version__
b'0.3'

I would rather simply remove this since it is no longer exposed in struct.

Yes, it does cause problems in real life code: I have applications that keep track of versions of modules that they use and expect __version__ to be string if defined.

Same problem in _curses, but I have never used that module - just grepped the sources.
msg107637 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2010-06-12 09:24
Yes, I agree that _struct.__version__ can die.  Removed in r81937.
History
Date User Action Args
2022-04-11 14:57:02adminsetgithub: 53227
2010-06-12 09:24:21mark.dickinsonsetstatus: open -> closed
resolution: fixed
messages: + msg107637
2010-06-12 04:48:44belopolskycreate