[FRPythoneers] FRPythoneers Meeting 2001-01-15 Report

Evelyn Mitchell efm at tummy.com
Tue Jan 16 14:55:21 MST 2001

              Front Range Pythoneers Meeting Summary

Attendance:  8   

Synopsis: This was the first meeting in our new location, at
the tummy.com, ltd. offices in Fort Collins, and the first
meeting after a long gap.

This month Sean Reifschneider <jafo at tummy.com> talked about the 
new features in Python 2.0   A lot of discussion was generated 
about comprehensions.  They are another shorthand for concisely 
handling nested loops over multiple sequences.

List Comprehensions:
      sublist = filter( lambda s, substring=S: 
           string.find(s, substring) != -1, L)
      sublist = [ s for s in L if string.find(s, S) != -1 ]
   List comprehensions have the form: 
        [ expression for expr in sequence1 
            for expr2 in sequence2 ...
            for exprN in sequenceN
            if condition
      for expr1 in sequence1:
         for expr2 in sequence2:
            for exprN in sequenceN:
               if (condition):
                  # Append the value of 
                  # the expression to the 
                  # resulting list.
      seq1 = 'abc'
      seq2 = (1,2,3)
      >>> [ (x,y) for x in seq1 for y in seq2]
      [('a', 1), ('a', 2), ('a', 3), ('b', 1), ('b', 2), ('b', 3), ('c', 1),
      ('c', 2), ('c', 3)]

We're planning on meeting monthly on the 3rd Monday of the Month, with
the next meeting to be held at the tummy.com offices in Fort Collins.
We are actively looking for space closer to Denver/Boulder.

We wrapped up the meeting as usual with our general Python and Open Source 
Q/A session.

tummy.com, ltd
200A College North
Fort Collins CO 80524

Contact: Evelyn Mitchell <efm-frpythoneers at tummy.com>

Next Meeting:  February 19, 2001, tummy.com, ltd. 7:00 p.m.
               Sean Reifschneider <jafo at tummy.com> will be talking about 
	       developing GUI applications in Python using Glade, an XML
	       supporting tool.

Mailing List: http://lists.tummy.com/mailman/listinfo/frpythoneers
Web Page: (none yet.. any volunteers?)

More information about the FRPythoneers mailing list