[Python-3000] Ordered mapping type for Python 3000?
Josiah Carlson
jcarlson at uci.edu
Wed Mar 28 00:42:54 CEST 2007
"BJörn Lindqvist" <bjourne at gmail.com> wrote:
> col = attrtuple(r = 255, g = 0, b = 128)
> r, g, b = col
That is handled reasonably well with Raymond's recipe (or variants
thereof).
> el = make_el('input', type = 'text', class = 'query')
XML elements are not ordering sensitive.
> Or interface easier with tabular, order-dependent data.
That is handled with the ordered dictionary and metaclass sytax PEP.
- Josiah
More information about the Python-3000
mailing list