Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36074
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'url:sourceforge': 0.03; 'python': 0.09; '"a"': 0.09; '__init__': 0.09; 'porting': 0.09; 'python:': 0.09; 'language': 0.14; 'instantiate': 0.16; 'length,': 0.16; 'naming': 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; 'wrote:': 0.17; 'instance': 0.17; 'memory': 0.18; 'parameters': 0.20; 'file.': 0.20; 'this:': 0.23; 'properties': 0.24; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'i.e.': 0.27; 'second,': 0.29; 'case,': 0.29; 'class': 0.29; "i'm": 0.29; 'classes': 0.30; 'file': 0.32; 'instances': 0.33; 'to:addr:python-list': 0.33; 'so,': 0.35; 'created': 0.36; 'actions': 0.36; 'method': 0.36; 'possible': 0.37; 'ones': 0.37; 'previous': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'perform': 0.38; 'description': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'easy': 0.60; 'kind': 0.61; 'between': 0.63; 'different': 0.63; 'sounds': 0.71; 'subject:this': 0.84; '(limited': 0.84; 'alternative.': 0.84; 'have?': 0.84; 'scene': 0.93 |
| Date | Thu, 03 Jan 2013 13:12:17 -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> |
| In-Reply-To | <kc3uvi$7k1$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.52.1357236743.2939.python-list@python.org> (permalink) |
| Lines | 44 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1357236743 news.xs4all.nl 6900 [2001:888:2000:d::a6]:50970 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:36074 |
Show key headers only | 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
Re: Can't seem to start on this Mitya Sirenef <msirenef@lightbird.net> - 2013-01-03 13:12 -0500
csiph-web