Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.049 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'python:': 0.09; 'bind': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'subject:start': 0.16; 'x,y,z': 0.16; 'wrote:': 0.17; 'allows': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; '(which': 0.26; 'values': 0.26; 'possible,': 0.27; 'boundary': 0.29; 'dictionary': 0.29; 'finds': 0.29; 'class': 0.29; 'function': 0.30; 'to:addr:python-list': 0.33; 'pm,': 0.35; 'wanted': 0.36; 'subject:: ': 0.38; 'easier': 0.38; 'skip:l 20': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'called': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'easy': 0.60; 'subject:this': 0.84; 'moves': 0.84; 'confirm.': 0.91 Date: Thu, 03 Jan 2013 19:35:13 -0500 From: Mitya Sirenef User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Can't seem to start on this References: <50E50D08.201@lightbird.net> <50E51BED.1030008@lightbird.net> <50E5CA01.3090200@lightbird.net> <50E60C05.5060506@lightbird.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357259719 news.xs4all.nl 6983 [2001:888:2000:d::a6]:49108 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36092 On 01/03/2013 07:08 PM, Kene Meniru wrote: > LinearSide.put("Dining", (x,y,z)) # moves 'Dining' to x,y,z location > > The put function of the LinearSide boundary class finds "Dining" (which is > an entity class called LinearSideData) in the dictionary and then allows > this LinearSideData class to calculate its new location using the x,y,z > values provided. That's what I thought, just wanted to confirm. However, if your objective to make it as easy for the user as possible, is it not easier to bind dining to a name and then do this?: dining.move(x, y, z) -- Lark's Tongue Guide to Python: http://lightbird.net/larks/