How do you control _all_ items added to a list?
From: Xif (xifxif_at_gmail.com)
Date: 02/28/05
- Next message: Fuzzyman: "Re: How do you control _all_ items added to a list?"
- Previous message: Fuzzyman: "Re: Hey, How Do I Distribute my New Completed Python Project?"
- Next in thread: Fuzzyman: "Re: How do you control _all_ items added to a list?"
- Reply: Fuzzyman: "Re: How do you control _all_ items added to a list?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Feb 2005 05:57:06 -0800
Hi
I want to have control over all items added to a list.
The first attempt was to subclass list and override its .append()
method.
Problem is, there are plenty of other ways the list can have items
added to it - e.g. extend, insert - and theyr'e not at all affected by
the changes I made to append.
Is there some "base" item-adding method that all other item-adding
methods use, so I can override it and have the changes affect all
item-adding functions?
Thanks,
Xif
- Next message: Fuzzyman: "Re: How do you control _all_ items added to a list?"
- Previous message: Fuzzyman: "Re: Hey, How Do I Distribute my New Completed Python Project?"
- Next in thread: Fuzzyman: "Re: How do you control _all_ items added to a list?"
- Reply: Fuzzyman: "Re: How do you control _all_ items added to a list?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|