En Wed, 20 Jun 2007 11:11:52 -0300, stef <[EMAIL PROTECTED]> escribió: > Carsten Haese wrote: >> On Wed, 2007-06-20 at 11:14 +0200, stef wrote: >>> Stefan Behnel wrote:
>>> Serial_HW_Read = the name of a function >>> "F" = the type of that function (procedure / function / pseudo variable >>> / interrupt /..) >>> "++" = the direction of each parameters, (input / output / >>> input+output ) >>> T = a tupple, containing the type of each of the parameters (bit / >>> byte/ >>> sbyte / word / ...) >>> >>>> maybe a class to hold them would look better), >>>> >>> maybe, but no human is looking at it ;-) >> >> But humans might look at the code that looks at the thing. >> thing.func_type is self-documenting, thing[0] is not. >> > I think you might be right, > but for a one-time/one-programmer program, > I think the documentation will be good enough. The best way would be to mix both things, using a NamedTuple (available on Python 2.6 or from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/500261) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list