What is this: d = [ int(x) for x in s.split(":") ] I see in the program I'm looking at, the [] construction can be much more complicated, as in: self.recent_events = [ event for event in self.recent_events if os.path.exists(event) and (time.time() - os.path.getmtime(event)) < 3600.0 ] --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) “In mathematics you don't understand things. You just get used to them.” -- John Von Neumann (P.S. The same is true in life.) Web Page: <www.speckledwithstars.net/> |
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor