On Wed, 20 Apr 2005 19:42:47 -0400, Erik Reuter wrote > Yeah, how could you ever in a million years have guessed that the > function for calculating a factorial was called "factorial"?
I'm having trouble getting your joke. It was a joke, wasn't it? Python is completely object-oriented, so it has methods rather than functions. Part of the challenge of such languages is to figure out where in the object hierarchy to find classes and methods, of course, and often, the appropriate way to call them. And then there are lovlies like call-backs and such that make it all so interesting. And now that I've looked, golly, it is darn simple -- it's at the top level, unlike lots of other things. Pretty much where one would expect, which is certainly not always the case. But it's not called "factorial", it's called "scipy.factorial". Unless, of course, you've imported the namespace instead of the module. But surely you knew that, I suspect, since you seem to have implied knowldge of the Scipy interface...? I still don't get the joke, if that's what it was. If it wasn't, then I guess I don't get the point, unless the point was to belittle the fact that I didn't look up the factorial method before posting, in which case... nothing. Nick _______________________________________________ http://www.mccmedia.com/mailman/listinfo/brin-l
