[Python-Dev] A "record" type (was Re: Py2.6 ideas)
Larry Hastings
larry at hastings.org
Wed Feb 21 08:12:36 CET 2007
Josiah Carlson wrote:
> one thing to note with your method - you can't guarantee the order of the attributes as they are being displayed.
>
Actually, my record type *can*; see the hack using the __names__ field.
It won't preserve that order during iteration--but it's only a prototype
so far, and it could be fixed if there was interest.
/larry/
More information about the Python-Dev
mailing list