[FRPythoneers] using pop() on a list

Bob Gailer ramrom at earthling.net
Sat Jan 4 18:19:11 MST 2003

Yet another way to pop() items is to use a comprehension to select just the 
desired values: x = [w for w in x if w <> 4]. This will probably be more 
efficient, since there's less code to execute, and there's no compacting of 
the list for each del.

Bob Gailer
mailto:ramrom at earthling.net
303 442 2625
-------------- next part --------------

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.431 / Virus Database: 242 - Release Date: 12/17/2002

More information about the FRPythoneers mailing list