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


Groups > comp.lang.python > #36092

Re: Can't seem to start on this

Date 2013-01-03 19:35 -0500
From Mitya Sirenef <msirenef@lightbird.net>
Subject Re: Can't seem to start on this
References (4 earlier) <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>
Newsgroups comp.lang.python
Message-ID <mailman.66.1357259719.2939.python-list@python.org> (permalink)

Show all headers | 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


Thread

Re: Can't seem to start on this Mitya Sirenef <msirenef@lightbird.net> - 2013-01-03 19:35 -0500

csiph-web