News for hackers. Stuff that matters.
Re:Why MIT switched from Scheme to Python by Kaizyn on Wednesday March 25, 2009 @07:28PM (#532631)
Your definitions do not work.

  foo = (1,2,3)
  bar = (4,5,6)

  print cons(foo, bar)
  print car(foo)
console output:

  <function <lambda> at 0x00B3F430>
  Traceback (most recent call last):
    File "./test.py", line 14, in <module>
      print car(foo)
    File "./test.py", line 5, in car
      return p(lambda a,b: a)
  TypeError: 'tuple' object is not callable
Re:Why MIT switched from Scheme to Python by danprager on Wednesday March 25, 2009 @07:49PM (#532654)
They do work; they just don't integrate with the built-in types: Why should they?

Try instead:

  car(cons(1,2)) 
    -> 1

  cdr(cons(1,2)) 
    -> 2

  car(cons('a', cons(2, 3))) 
    -> 'a'