On Oct 14, 7:46 pm, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> On Fri, Oct 14, 2011 at 5:36 PM, Troy S <tdsimp...@gmail.com> wrote:
> (Python 3)
> date_range = {d:v for d, v in source_dict.items() if '20110809' <= d
> <= '20110911'}
> Ian- Hide quoted text -
> - Show quoted text -

(Python 2.7) supports dictionary comprehensions. I prehaps as early as
2.5.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to