[FRPythoneers] FRPythoneers Meeting 2001-01-15 Report
Tue, 16 Jan 2001 14:55:21 -0700
Front Range Pythoneers Meeting Summary
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 <email@example.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.
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
for expr1 in sequence1:
for expr2 in sequence2:
for exprN in sequenceN:
# 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
200A College North
Fort Collins CO 80524
Contact: Evelyn Mitchell <firstname.lastname@example.org>
Next Meeting: February 19, 2001, tummy.com, ltd. 7:00 p.m.
Sean Reifschneider <email@example.com> will be talking about
developing GUI applications in Python using Glade, an XML
Mailing List: http://lists.tummy.com/mailman/listinfo/frpythoneers
Web Page: (none yet.. any volunteers?)