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


Groups > comp.lang.python > #36074

Re: Can't seem to start on this

Date 2013-01-03 13:12 -0500
From Mitya Sirenef <msirenef@lightbird.net>
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>
Newsgroups comp.lang.python
Message-ID <mailman.52.1357236743.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 01/03/2013 07:53 AM, Kene Meniru wrote:
> Mitya Sirenef wrote:
 >
 >
 >> So, how many instances do you want to make.. what kind of different
 >> functionality / properties they will have?
 >>
 >> - mitya
 >>
 >
 > I am porting a modeling system I created using POV-Ray scene description
 > language available at sourceforge at
 > http://sourceforge.net/projects/kobldes/
 >
 > The user can create as many marks as possible (limited by memory 
available).
 > The difference between each mark are the parameters provided i.e. name,
 > length, and position in the scene. If the user wishes to customize 
part of
 > the program they must update the classes or create new ones before 
using it
 > in the scene. File "A" in my previous illustrations can be considered 
the
 > scene file.
 >
 >


I'm not familiar with POV-Ray. I want to note that with python standard
style, class names look like this: ClassName, instances look like this:
instance_name; it sounds like you want LMark to be an instance? Or you
want instances in A to use class naming style?

Second, is the LMark instance only used to perform one set of actions?
If that's the case, you can have users instantiate it in A and the
__init__ method will do the set of actions you need -- this will be just
as easy for the user as the alternative.

  -m


-- 
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 13:12 -0500

csiph-web