Interesting Python

From PeformIQ Upgrade
Revision as of 10:44, 21 October 2008 by PeterHarding (talk | contribs)
Jump to navigation Jump to search

Some Twisty Code


      field_values = ", ".join(['%s="%%(%s)s"' % (f, f) for f in self.field_names
                                                        if f != self.primary_key_name])
      return [self.syn_record_class(list(r) +
                             [s[1](self.record_class(r)) for s in self.syn_fields])
                  for r in c.fetchall()]

Some Manuals

A BASIC Interpreter

Found this lying around somewhere and thought it was worth preserving...