Namedtuple problem #32.11.d

Neil Cerutti neilc at norwich.edu
Tue Jun 6 08:29:10 EDT 2017


On 2017-06-06, Deborah Swanson <python at deborahswanson.net> wrote:
> I have a list of namedtuples:
>
> 	[{Record}(r0=v0, r1=v1,...,r10=v10,r11='',...r93='') 
> 		. . .
>  	{Record}(r0=v0, r1=v1,...,r10=v10,r11='',...r93='')]
>
> In the first section of code, I process some of the first 10
> columns (r0=v0, r1=v1,...,r10=v10), and place the results in
> blank columns, also in the first 10 columns.

I too have sometimes started with a namedtuple and then found I
needed to make changes to the records. I typically abandon
namedtuple at this point, after only one bad experience trying to
work around my choice of container.

-- 
Neil Cerutti




More information about the Python-list mailing list