Re: Organisation of python classes and their methods

2012-11-02 Thread Martin Hewitson
On 2, Nov, 2012, at 06:24 PM, Paul Rubin wrote: > Martin Hewitson writes: >> Well, here we disagree. Suppose I have a class which encapsulates >> time-series data. Below is a list of the absolute minimum methods one >> would have to process that data. ... >> &

Re: Organisation of python classes and their methods

2012-11-02 Thread Martin Hewitson
> > > BTW: If you told us which language(s) you have a background in, it could be > easier to help you with identifying the idioms in that language that turn > into misconceptions when applied to Python. I'm considering porting some MATLAB code to python to move away from commercial software

Re: Organisation of python classes and their methods

2012-11-02 Thread Martin Hewitson
On 2, Nov, 2012, at 11:49 AM, Ulrich Eckhardt wrote: > Am 02.11.2012 09:20, schrieb Martin Hewitson: >> Well, here we disagree. Suppose I have a class which encapsulates >> time-series data. Below is a list of the absolute minimum methods one >> would have

Re: Organisation of python classes and their methods

2012-11-02 Thread Martin Hewitson
On 2, Nov, 2012, at 09:40 AM, Mark Lawrence wrote: > On 02/11/2012 08:08, Martin Hewitson wrote: >> >> Even if one takes reasonable numbers: 20 methods, each method has 20 lines >> of documentation, then we immediately have 400 lines in the file before >> writi

Re: Organisation of python classes and their methods

2012-11-02 Thread Martin Hewitson
On 2, Nov, 2012, at 09:00 AM, Peter Otten <__pete...@web.de> wrote: > Martin Hewitson wrote: > >> Dear list, >> >> I'm relatively new to Python and have googled and googled but haven't >> found a reasonable answer to this question, so I thought

Re: Organisation of python classes and their methods

2012-11-02 Thread Martin Hewitson
On 2, Nov, 2012, at 08:38 AM, Paul Rubin wrote: > Martin Hewitson writes: >> So, is there a way to put these methods in their own files and have >> them 'included' in the class somehow? ... Is there an official python >> way to do this? I don't like hav

Organisation of python classes and their methods

2012-11-02 Thread Martin Hewitson
Dear list, I'm relatively new to Python and have googled and googled but haven't found a reasonable answer to this question, so I thought I'd ask it here. I'm beginning a large Python project which contains many packages, modules and classes. The organisation of those is clear to me. Now, the