> Right now the Python programmer looking to aggressively delete elements from > the top of a list has to consider the tradeoff that the operation takes O(N) > time and would possibly churn his memory caches with the O(N) memmove > operation. In some cases, the Python programmer would only have himself to > blame for not using a deque in the first place. But maybe he's a maintenance > programmer, so it's not his fault, and maybe the code he inherits uses lists > in a pervasive way that makes it hard to swap in deque after the fact. What > advice do you give him? >
Or he could just set them to None. John =:-> _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
