On Oct 15, 2010, at 10:32 AM, Paul McNett wrote:

> Do you mean that you can't do:
> 
> lst.Choices = ["a", "b", "c"]
> lst.Choices.append("d")
> 
> but that you instead have to:
> 
> lst = lst.Choices = ["a", "b", "c"]
> lst.Choices.append("d")
> lst.Choices = lst.Choices
> 
> This has struck me as kind of awkward, too. I wonder if we could make it 
> better all 
> around by accepting any sequence type to Choices, but converting that 
> sequence to a 
> tuple, so that if someone tries to modify it in place, they'd get an 
> exception and 
> understand immediately that they have to reassign the whole sequence.

        Funny that this point is raised now. I was working on a class that will 
eliminate this problem, but so far only have append() working. I should have 
time to finish it this weekend.


-- Ed Leafe



_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/9420cf1a-0b55-43f1-b435-a1d7783fc...@leafe.com

Reply via email to