Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'repeated': 0.07; '0.1': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'jan': 0.18; 'subject:problem': 0.22; 'header:X-Complaints-To:1': 0.28; 'fri,': 0.30; 'code': 0.31; 'skip:- 10': 0.32; 'could': 0.32; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'subject:with': 0.36; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'skip:l 20': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; '2013': 0.84; 'email addr:hotmail.com': 0.88; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: problem with exam task for college Date: Sat, 05 Jan 2013 16:09:48 -0500 Organization: > Bestiaria Support Staff < References: <6f3c7fdf-7439-43b1-b3a2-da9da019b1ec@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-23-255.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357420181 news.xs4all.nl 6919 [2001:888:2000:d::a6]:42284 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36210 On Fri, 4 Jan 2013 12:01:10 -0800 (PST), jeltedeproft@hotmail.com declaimed the following in gmane.comp.python.general: > c = list(self.frame.axis) > c[2] -= 0.1 > c = tuple(c) > c = self.frame.axis I suspect you want self.frame.axis = c > if (s == "right") : > self.gas = rotate(self.gas,angle = -(math.pi/10), axis = (0,0,1)) > c = list(self.frame.axis) > c[2] += 0.1 > c = tuple(c) > c = self.frame.axis > Note that you have a lot of repeated code that could be put outside the if-block... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/