[New-bugs-announce] [issue25985] Use sys.version_info instead of sys.version

Serhiy Storchaka report at bugs.python.org
Fri Jan 1 02:45:03 EST 2016


New submission from Serhiy Storchaka:

Proposed patch replaces all occurrences of sys.version[:3] with '%d.%d' % sys.version_info[:2]. The former doesn't work with non-one-digit versions (such as 3.10 and 10.1).

----------
components: Distutils, Library (Lib)
files: use_version_info.patch
keywords: patch
messages: 257279
nosy: dstufft, eric.araujo, lemburg, serhiy.storchaka, tarek
priority: normal
severity: normal
stage: patch review
status: open
title: Use sys.version_info instead of sys.version
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file41463/use_version_info.patch

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


More information about the New-bugs-announce mailing list