Can I search a list for a range of values?
DevPlayer
devplayer at gmail.com
Sat Oct 15 17:00:20 EDT 2011
More information about the Python-list mailing list
Sat Oct 15 17:00:20 EDT 2011
- Previous message (by thread): Can I search a list for a range of values?
- Next message (by thread): How to test if object is an integer?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Oct 14, 7:46 pm, Ian Kelly <ian.g.ke... at gmail.com> wrote: > On Fri, Oct 14, 2011 at 5:36 PM, Troy S <tdsimp... at 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.
- Previous message (by thread): Can I search a list for a range of values?
- Next message (by thread): How to test if object is an integer?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list