Re: Is this PEP-able? fwhile

2013-06-24 Thread wu wei
On Tue, Jun 25, 2013 at 10:19 AM, Fábio Santos fabiosantos...@gmail.com wrote: for X in (i for i in open('largefile') if is_part_of_header(i)): The above code would be wasting time on IO and processing. It would load another line and calculate the condition for every line of the large file

Re: Re: Objects in Python

2012-08-24 Thread wu wei
On Fri, Aug 24, 2012 at 7:14 PM, Evan Driscoll drisc...@cs.wisc.edu wrote: On 8/23/2012 22:17, alex23 wrote: But Roy's point was that referring to 'a' as a 'variable' makes no sense, as it's not an allocated piece of memory. Does the computer just remember what 'a' refers to by keeping

Fwd: Checking a string against multiple matches

2008-12-03 Thread wu wei
Sorry to hassle the list with this but I'm getting irregular spam from this asshole, clearly triggered by comp.lang.python posts being resent to the python-list. I've contacted Yahoo abuse -and- the list administrators but its still occurring. Is anyone able to remove this guy from the list? I've