[Python-Dev] What's a PyStructSequence ?
M.-A. Lemburg
mal@lemburg.com
Tue, 27 Nov 2001 11:26:10 +0100
"Martin v. Loewis" wrote:
>
> > A bug report on SF made me aware of an apparently new type in Python
> > called PyStructSequence. There are no docs on the type (at least
> > not in the usual places).
> >
> > Is it official yet ?
>
> It will ship as part of Python 2.2, if that is what you are
> asking. os.stat is documented to return one of these (if you read it
> carefully).
Wouldn't it make sense to expose this object in Python,
e.g. by contructing it from a dictionary of string mappings ?
(The type constructor is not made available in bltinmodule.c.)
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company: http://www.egenix.com/
Python Software: http://www.lemburg.com/python/