From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6B3401381F3 for ; Fri, 23 Aug 2013 13:52:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52F9FE0C17; Fri, 23 Aug 2013 13:52:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D1FD3E0C13 for ; Fri, 23 Aug 2013 13:52:01 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DEE5733EB08 for ; Fri, 23 Aug 2013 13:52:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7FB6EE468F for ; Fri, 23 Aug 2013 13:51:59 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1377181784.97d5c92daf7a083deafe6bb6ec71b76129709ee5.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/console/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/console/interpreter.py X-VCS-Directories: roverlay/console/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 97d5c92daf7a083deafe6bb6ec71b76129709ee5 X-VCS-Branch: master Date: Fri, 23 Aug 2013 13:51:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f366e6c5-7ec2-48f7-a3da-8a7c519888b9 X-Archives-Hash: 144e4ac0f37fe57f8f4a2cb83112d925 commit: 97d5c92daf7a083deafe6bb6ec71b76129709ee5 Author: André Erdmann mailerd de> AuthorDate: Thu Aug 22 14:29:44 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Thu Aug 22 14:29:44 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=97d5c92d console/interpreter: pyver command prints the version of the python interpreter running the console --- roverlay/console/interpreter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roverlay/console/interpreter.py b/roverlay/console/interpreter.py index 8839cb8..e31096f 100644 --- a/roverlay/console/interpreter.py +++ b/roverlay/console/interpreter.py @@ -735,6 +735,13 @@ class ConsoleInterpreter ( cmd.Cmd ): # --- end of do_chroot (...) --- + def do_pyver ( self, *a ): + """Prints the version of the python interpreter.""" + sys.stdout.write ( + "sys.hexversion = {}\n".format ( hex(sys.hexversion) ) + ) + # --- end of do_pyver (...) --- + def do_quit ( self, *a ): """Exit""" sys.stdout.flush()