A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/088989.html below:

function pointers

function pointers function pointersCourageous jkraska1 at san.rr.com
Thu Apr 26 11:21:05 EDT 2001
>I get the feeling that Python doesn't have anything resembling a function
>pointer?

Not only does it have function pointer equivalents, it does things that even
C, C++, and Java can't. For example:

>>> class MyClass:
	def f(self):
		print "amazing"

		
>>> m = MyClass()
>>> f = m.f
>>> f()
amazing
>>> 

You can't do that in C++ or Java!

It's very cool.

C//



More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4