Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36092
| 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 | <msirenef@lightbird.net> |
| 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 <msirenef@lightbird.net> |
| 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 | <kc31l4$27v$1@ger.gmane.org> <50E50D08.201@lightbird.net> <kc3553$pn7$1@ger.gmane.org> <50E51BED.1030008@lightbird.net> <kc3uvi$7k1$1@ger.gmane.org> <50E5CA01.3090200@lightbird.net> <kc4m83$7lj$1@ger.gmane.org> <50E60C05.5060506@lightbird.net> <kc56im$r23$1@ger.gmane.org> |
| In-Reply-To | <kc56im$r23$1@ger.gmane.org> |
| 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 <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.66.1357259719.2939.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
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/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Can't seem to start on this Mitya Sirenef <msirenef@lightbird.net> - 2013-01-03 19:35 -0500
csiph-web