Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Can't seem to start on this

Reply
Thread Tools

Re: Can't seem to start on this

 
 
Mitya Sirenef
Guest
Posts: n/a
 
      01-03-2013
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/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Can't seem to start on this Kene Meniru Python 0 01-03-2013 12:53 PM
Re: Can't seem to start on this Mitya Sirenef Python 0 01-03-2013 05:49 AM
Re: Can't seem to start on this Kene Meniru Python 0 01-03-2013 05:32 AM
Re: Can't seem to start on this Mitya Sirenef Python 0 01-03-2013 04:46 AM
Can't seem to start on this Kene Meniru Python 0 01-03-2013 04:32 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57