
-----Original Message----- From: Andre Merzky [mailto:andre@merzky.net] Sent: 14 August 2008 19:26 To: Fisher, SM (Steve) Cc: Andre Merzky; Hartmut Kaiser; SAGA RG Subject: Re: [SAGA-RG] SAGA Python language binding naming.
Quoting [Fisher, SM (Steve)] (Aug 14 2008):
Hi,
Sorry to be late commenting. A python module is a file and
the package
structure corresponds to a directory tree - so clearly we need multiple modules arranged in packages.
I would also suggest that enum like variables be entirely in capitals
I don't find that: bytes_read = f.read (buffer, len) is very pythonesqe. Surely it should be buffer = f.read() and len(buffer) will tell you what you have got.
But how can you then specify that you want to read 20 bytes, instead of the whole 20GB file?
buffer = f.read(20) I feel that the proposed calling sequence looks too C like
Is this a complete Python implementation or is it a wrapper around C++?
Our implementation wraps around C++. If I am not mistaken, Pauls implementation will wrap around Java (using Jython)?
Cheers, Andre.
Steve
-- Nothing is ever easy.