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: Tkinter __version__ uses subversion substitution
Type: behavior Stage:
Components: Tkinter Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, georg.brandl, jtaylor, ned.deily
Priority: normal Keywords:

Created on 2011-06-01 18:55 by jtaylor, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg137455 - (view) Author: Julian Taylor (jtaylor) Date: 2011-06-01 18:55
./Lib/lib-tk/Tkinter.py:33 has this svn keyword substitution:
 __version__ = "$Revision$"

Due to the change to hg this field is not substituted and makes __version__ quite pointless.
This affects the python 2.7.2rc1.
msg137466 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2011-06-01 23:49
Yes, it's harmless, though. I've removed it for 3.3.
msg137468 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2011-06-02 06:55
Can we be sure it's harmless?  A quick Google search turned up at least one package that depends on Tkinter.__version__ (granted, for Python 2).

http://permalink.gmane.org/gmane.comp.python.matplotlib.general/24453
msg137476 - (view) Author: Julian Taylor (jtaylor) Date: 2011-06-02 12:54
matplotlib fails to build due to this with 2.7.2rc1 in ubuntu oneiric (but its seems simple to fix):
https://launchpad.net/ubuntu/+source/matplotlib/1.0.1-2ubuntu1/+build/2535369
msg137477 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2011-06-02 12:55
2011/6/2 Ned Deily <report@bugs.python.org>:
>
> Ned Deily <nad@acm.org> added the comment:
>
> Can we be sure it's harmless?  A quick Google search turned up at least one package that depends on Tkinter.__version__ (granted, for Python 2).
>
> http://permalink.gmane.org/gmane.comp.python.matplotlib.general/24453

I suppose we replace it with some old Subversion number.
History
Date User Action Args
2022-04-11 14:57:18adminsetgithub: 56445
2011-06-02 12:55:54benjamin.petersonsetmessages: + msg137477
2011-06-02 12:54:22jtaylorsetmessages: + msg137476
2011-06-02 06:55:53ned.deilysetnosy: + ned.deily
messages: + msg137468
2011-06-01 23:49:51benjamin.petersonsetstatus: open -> closed
priority: release blocker -> normal
resolution: out of date
messages: + msg137466
2011-06-01 21:14:36ned.deilysetpriority: normal -> release blocker
nosy: + georg.brandl, benjamin.peterson

versions: + Python 3.1, Python 3.2
2011-06-01 18:55:56jtaylorcreate