Plugins / Modularity

2007-10-10 Thread Robin Kåveland
Hi there. I'm basically in the process of writing my first substantial application in Python, and I've made a couple of (I'd like to say) design decisions so it won't just be a jumble. So, I've divided my program into three sub-packages, core, plugins and utilities. The core will be needed for the

Re: Plugins / Modularity

2007-10-10 Thread Robin Kåveland
On Oct 10, 8:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Oct 10, 12:30 pm, Robin Kåveland <[EMAIL PROTECTED]> wrote: > > > > > Hi there. I'm basically in the process of writing my first substantial > > application in Python, and

Re: Last iteration?

2007-10-13 Thread Robin Kåveland
On Oct 12, 12:58 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > can I determine somehow if the iteration on a list of values is the last > iteration? > > Example: > > for i in [1, 2, 3]: >if last_iteration: > print i*i >else: > print i > > that would print > > 1 > 2 >

Re: Installing Python 3000 on Leopard (Mac OS) fails...

2007-11-26 Thread Robin Kåveland Hansen
"=?ISO-8859-1?Q?Andr=E9?=" <[EMAIL PROTECTED]> wrote (Mon, 26 Nov 2007 17:59:21 -0800): > While I made some progress in trying to install Py3k from source (for > the first time), it has failed... > > Here are the steps I went through (not necessarily in that order - > except for those that matter

Re: How to Teach Python "Variables"

2007-11-27 Thread Robin Kåveland Hansen
Aurélien Campéas <[EMAIL PROTECTED]> wrote (Sun, 25 Nov 2007 20:09:59 +0100): > none a écrit : > > That's something I've often heard and I don't get it. Somehow I don't > understand how C variables are not like python bindings (the differences > being that C variables are statically typed and c

Re: Python noob's simple config problem

2008-06-12 Thread Robin Kåveland Hansen
On Thu, 12 Jun 2008 21:32:34 +, kj wrote: > I'm sure this is a simple, but recurrent, problem for which I can't hit > on a totally satisfactory solution. > > As an example, suppose that I want write a module X that performs some > database access. I expect that 99.999% of the time, during th