does python could support sequence of short or int?
bruno at modulix
onurb at xiludom.gro
Thu Mar 30 12:31:53 CEST 2006
> but what about buffer is not be declared in python program, it comes
> from a C function. and what about I want to treat a string as a short
There are no "short" in Python. An integer is an integer is an integer...
> buffer = foobur() // a invoke from C function, it is encapsulated as a
> but I want to treat it as a short list. how can I?
I think you want the struct package from the standard lib:
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list