Re: Sudden doubling of nearly all messages

2012-07-22 Thread Alan Ristow
On 07/21/2012 12:48 PM, Dave Angel wrote: Has anybody else noticed the sudden double-posting of nearly all messages in the python mailing list? [snip] I'm using Thunderbird 14.0 on Linux 11.04, with mail configured for non-digest mode. I read the messages in threaded mode. I'm pretty sure it

Re: Pydev configuration

2012-05-09 Thread Alan Ristow
On 05/09/2012 01:16 PM, hamiljf wrote: I suppose this is the nearest thread... editor configuration and all. I'm using PyDev in a MyEclipse environment and it works fine, except for one tiny but horrible niggle. The editor function I can't find is block indent/exdent... like you can block commen

Making helper methods more concise

2012-04-16 Thread Alan Ristow
Hi all, I have defined a class that includes a number of helper methods that are useful to me, but pretty redundant. Something like so, where I maintain a list of tuples: class A(object): def __init__(self): self.listing = [] # This method does the work. def append_text(self,

Re: Common LISP-style closures with Python

2012-02-05 Thread Alan Ristow
On 02/05/2012 05:19 AM, Antti J Ylikoski wrote: Yes, I do know that, but then it would not be a closure :-) Forgive me if this is terribly naive, but what is the advantage of using a closure as opposed to, say, some other function that returns the same value in the same context, but

Advice requested on class design

2010-04-28 Thread Alan Ristow
Hi all, I am relatively new to Python, though not to programming in general, and using Python 2.6. I have a design problem that I cannot quite decide how to handle and I am hoping for some advice. I would like to have three classes, ClassA, ClassB, and ClassC, that are essentially the same, the o