Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36210

Re: problem with exam task for college

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 <python-python-list@m.gmane.org>
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 <wlfraed@ix.netcom.com>
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> <CAPTjJmqGoeb6M3kC8CJ=Vz5c5EKFfJZwfP72j9qKDmoBhOzEtQ@mail.gmail.com> <CAPTjJmo-QEepJVruAZtyy5reoSd-z0kJDbzR3APpzuSKtX2AnQ@mail.gmail.com> <CAN1F8qUueORN3Titi44TxYATyMhqAE6qBUSO1yFE_bceSfoE=w@mail.gmail.com> <mailman.100.1357327851.2939.python-list@python.org> <f5c1a4cb-f96a-4e6d-9f32-511f9bcd04ee@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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.144.1357420181.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


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/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

problem with exam task for college jeltedeproft@hotmail.com - 2013-01-04 10:23 -0800
  Re: problem with exam task for college Chris Angelico <rosuav@gmail.com> - 2013-01-05 05:59 +1100
  Re: problem with exam task for college Chris Angelico <rosuav@gmail.com> - 2013-01-05 06:00 +1100
  Re: problem with exam task for college MRAB <python@mrabarnett.plus.com> - 2013-01-04 19:17 +0000
  Re: problem with exam task for college Joshua Landau <joshua.landau.ws@gmail.com> - 2013-01-04 19:18 +0000
  Re: problem with exam task for college Chris Angelico <rosuav@gmail.com> - 2013-01-05 06:30 +1100
    Re: problem with exam task for college jeltedeproft@hotmail.com - 2013-01-04 12:01 -0800
      Re: problem with exam task for college Chris Angelico <rosuav@gmail.com> - 2013-01-05 07:36 +1100
      Re: problem with exam task for college Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-05 16:09 -0500
    Re: problem with exam task for college jeltedeproft@hotmail.com - 2013-01-04 12:01 -0800
  Re: problem with exam task for college Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-04 17:11 -0500
  Re: problem with exam task for college jeltedeproft@hotmail.com - 2013-01-05 04:24 -0800
    Re: problem with exam task for college Chris Angelico <rosuav@gmail.com> - 2013-01-05 23:39 +1100
  Re: problem with exam task for college jeltedeproft@hotmail.com - 2013-01-05 05:14 -0800
    Re: problem with exam task for college Chris Angelico <rosuav@gmail.com> - 2013-01-06 00:32 +1100
  Re: problem with exam task for college jeltedeproft@hotmail.com - 2013-01-07 08:22 -0800
    Re: problem with exam task for college Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2013-01-07 18:40 +0100
    Re: problem with exam task for college Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-07 15:36 -0500
  Re: problem with exam task for college jeltedeproft_8@hotmail.com - 2013-01-13 04:29 -0800
  Re: problem with exam task for college jeltedeproft@hotmail.com - 2013-01-13 04:48 -0800
  Re: problem with exam task for college jeltedeproft@hotmail.com - 2013-01-13 05:57 -0800
    Re: problem with exam task for college Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-01-13 17:28 +0000
  Re: problem with exam task for college stefaang@gmail.com - 2013-01-14 04:57 -0800
  Re: problem with exam task for college jeltedeproft@hotmail.com - 2013-01-14 08:01 -0800
    Re: problem with exam task for college Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-14 13:54 -0500

csiph-web