I was always confused by the __version__ variable of *some* modules. It's surprising since it's no longer incremented when the module is fixed or gets new features. Also, the number is unrelated to the Python version. I suggest to remove __version__.
__author__, __credits__, __email__, __copyright__: can these information be kept as *comments*?
__date__: what is that? Is it still relevant in 2020 since Python uses Git? I suggest removing it.
For modules even have a changelog. Should it be removed since it is no longer updated for years?
Many of these variables are ghosts from the early CVS time of Python :-)
Le mer. 14 oct. 2020 à 15:57, Serhiy Storchaka firstname.lastname@example.org a écrit :
Some module attributes in the stdlib have attribute __version__. It makes sense if the module is developed independently from Python, but after inclusion in the stdlib it no longer have separate releases which should be identified by version. New changes goes into module usually without changing the value of __version__. Different versions of the module for different Python version can have different features but the same __version__.
I propose to remove __version__ in all stdlib modules. Are there any exceptions?
Also, what do you think about other meta attributes like __author__, __credits__, __email__, __copyright__, __about__, __date__? _______________________________________________ Python-Dev mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://email@example.com/message/KBU4EU2J... Code of Conduct: http://python.org/psf/codeofconduct/