can i examine the svn rev used to build a python 3 executable?

Martin v. Loewis martin at v.loewis.de
Tue Jan 19 17:05:36 EST 2010


>   never mind.  just discovered that while "python3 -V" won't do it,
> executing it gives me:
> 
> $ python3
> Python 3.2a0 (py3k:77609, Jan 19 2010, 04:10:16)
> ...
> 
> and it's that 77609 rev number i was after.

If you want that in a command line fashion, do

python -c 'import sys;print(sys.subversion[2])'

Regards,
Martin




More information about the Python-list mailing list