fast pythonic algorithm question

Paul Rubin http
Tue Aug 1 10:57:21 EDT 2006


"Guyon Morée" <guyon.moree at gmail.com> writes:
> if (((src_host,src_port, protocol) in dict or (dest_host, dest_port,
> protocol) in dict) and starttime < time < endtime):
>   print "we have a winner"

If you have enough memory to do it that way, what's the problem?



More information about the Python-list mailing list