[SAGA-RG] SAGA Python language binding naming.

PFA van Zoolingen pzn400 at few.vu.nl
Mon Sep 1 09:43:02 CDT 2008


Lurkers and lone voices,

I moved the source files into separate packages and modules and have 
documented them and partially marked-up the files with epydoc. The 
unfinished version of the (implementation independent) Python SAGA api 
can be found at:

https://svn.cct.lsu.edu/repos/saga-projects/language-bindings/pysaga/apidoc.zip

Return values, types and optional parameters are not yet clear for all 
methods but I am working on it.



Although last time there was a discussion that buffers were "not 
pythonesqe" they must be added since they are part of the specification. 
Of course, >>>string = file.read(10) will be part of pysaga, but 
>>>file.read(10, buffer) will be too.

Which brings me to the following: what is frequently used in Python to 
represent a mutable buffer? I have seen immutable strings being used, but 
also lists and array of chars. Python-3000 will have mutable buffer and 
bytes, but we are not there yet. I also can't seem to figure out how it is 
done in the Cpp python wrapper.


If anyone has an idea about the buffers, don't be a silent lurker :)

Paul.










More information about the saga-rg mailing list