Ruby and Python

Courageous jkraska1 at san.rr.com
Sat Nov 18 19:35:30 EST 2000


>But functions in Python aren't first class either.

Well, nomenclature aside, I think what the poster meant was that in Python,
you can do this:

class Cool:
	def f():
		print "hello"

c = Cool()
f = c.f
f()

This is, behind the scenes, captured by Python as a true object, not just
a pointer. Once having gotten used to this and then gone back to using
other languages upon occasion, the lack of my ability to do this in these
other languages is a very big annoyance.

C//




More information about the Python-list mailing list