Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: how to get python version ? Date: Thu, 28 Jan 2016 18:30:19 +1100 Lines: 6 Message-ID: References: <76180516-f465-4fde-a1c4-920c91036623@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 8wTraqe0nqfUilATMLIEVg/9HJmPeLAtW1vZnk2ZBQKA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'sys.platform': 0.07; 'cc:addr:python-list': 0.09; 'subject:version': 0.09; 'python': 0.10; 'jan': 0.11; 'subject:python': 0.14; 'thu,': 0.15; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply- To:1': 0.24; 'subject: ?': 0.27; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; 'lets': 0.33; 'received:google.com': 0.35; 'something': 0.35; 'too': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'version': 0.38; 'received:209': 0.38; 'subject:get': 0.81; 'chrisa': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Obx5O3vYA2GShQqR0HtMZ5Z7HjenMHbtGm0s9fDzo3k=; b=OSJMqjj4fJvQtjg6nFheApkelIEtVf+hD0cngAM7hcr6+C7G9sIf/meXJW/kxqbsxw +3kATdp/6ETBQfGOGdx7/bVHs6RKMIxwp4Fq7Y1OIlVXlnajbvgqHiDz9UHe9dmPv1gO 52xmi2wCO4gli8kiVjtFsyRwyaMPAxp35xmatFsWfSNmsT1EfgSihUZp0CC/MLv/IGS8 k6calv959uBK7Qkjop10M81ymFHi6qDcdB+Y6MKMoom7GvwGSuiWxiquGZW4liCWE0JI ZKNxRuis5mv+EEZcR0xgQPXu5l5ZPAzE5BZ038uDVYHzy/wB3SXSWquU9x4rOTiREQ4L QD9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=Obx5O3vYA2GShQqR0HtMZ5Z7HjenMHbtGm0s9fDzo3k=; b=lGpvQho+sHBdhkZPo9h0ugffISQT1+CpfcBspmB4glOe9UZcKv+T0lu5dc4H6kbBwE dXzBaLZ1Ff9wi92sd5fXgX/GFhC/gWcnUbBTkAAewu5IV9KE/k4syCK68smtA9AeS/oh AB8a25HSA2AUIlbrsv3HA80sjUb9oey5nir5G92VBWrFaUXVZpEvM1ArnJGSzNDvzumE kL4FQKwdt2tLLFz1m7/Lwe1iAfQZHRW8ET34IPKc1/oeWwvw3xKdwf2CD1Sgoy4g+vF2 I1LzcRJa6TzVjK22uPewn8rNdC9YwQ76KAJInjHNK81RQiJrdZZXAJFK1NPx//nVvLIp YPQw== X-Gm-Message-State: AG10YOTaDwYh6coFyNX3Jr8AcRuU7V4HtmvSgxADq0MENGD0qOvNjDbQLC9P/Uv/q7CoDMvCS6GeytGUhxtICA== X-Received: by 10.107.40.76 with SMTP id o73mr2124288ioo.157.1453966219710; Wed, 27 Jan 2016 23:30:19 -0800 (PST) In-Reply-To: <76180516-f465-4fde-a1c4-920c91036623@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102174 On Thu, Jan 28, 2016 at 4:21 PM, wrote: > is there something analogous to sys.platform that lets you get the version of python you're using? sorry if the question is too see-spot-run. thanks if you can help Check out sys.version and sys.version_info - are they what you're after? ChrisA