Brian van den Broek wrote: > I had the same sort of question as Wildemar and I set about > investigating as any good pythonista would by typing help(apply) at > the interactive prompt. That produced a help text that started: > > Help on built-in function apply in module __builtin__: > > But: > > >>> [x for x in dir('__builtin__') if 'apply' in x] > [] > > ? If apply is in the __builtin__ module, why doesn't > dir('__builtin__') know about it?
The string "__builtin__" doesn't have an apply attribute; but the __builtin__ module has: >>> import __builtin__ >>> "apply" in dir(__builtin__) True Peter -- http://mail.python.org/mailman/listinfo/python-list