User Profile
Collapse
-
You might try starting here: Big O Notation - just how bad is that algorithm?... -
-
-
What OS are you running?
I'm running Windows 7 and I can't seem to find a program that doesn't have the space for an icon. My guess is that the win32 libraries that are eventually called don't support icon-less menus anymore.Leave a comment:
-
-
Ok, seems I can just sub-class list. I can live with another class I suppose (better for organization I suppose).
Is there anyway to override the del keyword? So that when I do del mylistsubclassi nstance[index] I can perform cleanup?
And again, would a list sub-class perform slower on operations that I do/don't override? I'm not too worried about performance at this point, but it's for a simulation engine, which might...Leave a comment:
-
Intercepting Python list.append, list.remove
I have a list as an attribute of a class. I need to be able to intercept any add/remove of objects to the list, so that I can perform cleanup on other attributes of the class.
Currently, I'm making the list "private" with the horrid __, and then having a slew of accessor functions to iterate, add/remove, etc. without giving true access to the list. As such the class seems kludgey.
Is there a more pythonic way...
No activity results to display
Show More
Leave a comment: