[FRPythoneers] With statement

Bob Gailer ramrom at earthling.net
Thu Aug 8 14:21:20 MDT 2002

The OOP languages I've worked with before Python have a WITH statement. I 
am wondering why Python is missing this (IMHO) useful construct.

  self.foo1 = 'a'
  self.foo2 = 'b'
  self.foo3 = 'c'

Could be "simplified" using WITH:
  with self:
    .foo1 = 'a'
    .foo2 = 'b'
    .foo3 = 'c'

Bob Gailer
mailto:ramrom at earthling.net
303 442 2625

More information about the FRPythoneers mailing list