Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36036 > unrolled thread
| Started by | Mitya Sirenef <msirenef@lightbird.net> |
|---|---|
| First post | 2013-01-03 00:49 -0500 |
| Last post | 2013-01-03 00:49 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Can't seem to start on this Mitya Sirenef <msirenef@lightbird.net> - 2013-01-03 00:49 -0500
| From | Mitya Sirenef <msirenef@lightbird.net> |
|---|---|
| Date | 2013-01-03 00:49 -0500 |
| Subject | Re: Can't seem to start on this |
| Message-ID | <mailman.19.1357192178.2939.python-list@python.org> |
On 01/03/2013 12:32 AM, Kene Meniru wrote: > Mitya Sirenef wrote: > > >> >> Where is snap_size from? Where is LinearMark from? You don't need to >> instantiate LinearMark in B, do it in A. >> > > I want to hide as much of the python syntax from the file "A" so the user > just concentrates on using the classes as illustrated. snap_size is a global > setting. LinearMark is a class in module "C" described as LMark but with the > interface class as LinearMark in "B". Well, that might be ok depending on what you need the instances to do. Often instantiation provides some kind of customization that makes instance different from other instances. If you do that for your users, they won't be able to customize their instances, unless you provide a separate 'initialize' method, but then it's just as much work for the users to use that method as compared to passing args on instantiation. So, how many instances do you want to make.. what kind of different functionality / properties they will have? - mitya -- Lark's Tongue Guide to Python: http://lightbird.net/larks/
Back to top | Article view | comp.lang.python
csiph-web