[issue2323] Make structseq's API look more like a nametuple.

Raymond Hettinger report at bugs.python.org
Mon Mar 17 21:36:01 CET 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Closing as a duplicate of issue 1820.

I had been working on this, but there are limits to it. The constructors
are completely different so not all of the API can be synced.  The
__repr__ method is already synced-up.  All that is still needed is
_asdict(), _fields, and _replace().  The important parts like the
__repr__, matching most of the tuple API, and attribute access are
already done.

----------
nosy: +rhettinger
resolution:  -> duplicate
status: open -> closed
title: Unify structseq and namedtuple's API -> Make structseq's API look more like a nametuple.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2323>
__________________________________


More information about the Python-bugs-list mailing list