Probably I'm just too stupid, but...

holger krekel pyth at devel.trillke.net
Wed Apr 24 11:54:12 EDT 2002


On Wed, Apr 24, 2002 at 08:46:06AM -0700, redflag wrote:
> >>> def c():
> 	for i in range(10):
> 		print i
> 
> 		
> >>> c
> <function c at 0x00AA93B0>

this tells you that you have a function at hand
(which is an callable object in python semantics).

just do

>>> c()

and it will work.

	holger





More information about the Python-list mailing list