PDA

View Full Version : Supported Python Features (empty tuples)


cpusa
08-08-2008, 12:12 PM
How does one know which Python functions are supported by snappy and which ones are not?

For example I'm trying to use the split function and having trouble.

t=list()
s="abc def ghi"
t=s.split()

Thanks,

Tom Johnson

David Ewing
08-08-2008, 02:10 PM
This will be covered in the SNAP reference manual in our upcoming 2.1 release. I've attached the "SNAPpy Python Language" section as it stands today to this post.

Regarding your example, you can do subscripting of the string, so it's "like" a list, even though lists aren't explicitly supported yet. We often use this to implement byte-oriented lookup tables, for instance.

If you have any difficulty getting SNAPpy to do what you need, I'll be glad to give more suggestions.

- David