modifying a list element from a function

TP Tribulations at Paralleles.invalid
Mon Mar 30 18:19:57 CEST 2009

Adrian Dziubek wrote:

> Could you explain your high level goal for this? It looks like a very
> wicked way of doing things. Have You tried to read the list methods'
> documentation? Maybe there you find something you need (like
> list.index)?


I have a "disambiguation" function that modifies a text
contained "somewhere" in each element of a list. The way this text is
accessed by the function should depend on an external accessor, or setter,
so that any list could be processed, in a generic way.


python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\

"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)

More information about the Python-list mailing list