Functions attributes accessed from within the function definition URGENT please

Fernando Rodríguez spamers at must.die
Wed May 30 10:24:56 EDT 2001


Hi!

	I have a function f that will have an attribute x: f.x = 31426 (for
example).

	When defining the function f, I'd like to give this attribute a
default value, so I'll never get an error when trying to access it with f.x,
how can I do this (setting the default value)? O:-)

TIA




'Fernando



More information about the Python-list mailing list