All pastes #803070 Raw Edit

Someone

public text v1 · immutable
#803070 ·published 2007-11-30 21:34 UTC
rendered paste body
typedef struct {
	string name;
	int number;
} bar;

# Python explicit solution: use a class, obj:

class Thingy:
  def __init__(self, name, number):
    self.name = name
    self.number = number


# Python implicit solution: use a tuple:

foo = ('Andy', 1)
bar = ('Bobby', 2)