Is Python growing?
scott
smarsh at hotmail.com
Tue Jul 2 18:16:44 EDT 2002
Gerhard Häring wrote:
> Am Sat, 29 Jun 2002 04:53:23 GMT schrieben Sie:
>
>>Gerhard Häring wrote:
>>
>>>Mark McEahern wrote:
>>>
>>>
>>>>[...] What's so
>>>>beautiful about Python is that all I had to do was fire up the
>>>
>>interactive
>>
>>>>interpreter and do this to remind myself of what map does:
>>>>
>>>>
>>>>>>>print map.__doc__
>>>>>>
>>>
>>>help(map) in 2.2.
>>
>>Or 2.1.1.
>
>
> No. Of course, for anything more recent than 2.2.0, yes.
>
> Gerhard
You are mistaken Gerhard. 2.1.1 (Activestate on NT4) is demonstrated below:
bash-2.02$ python
ActivePython 2.1.1, build 212 (ActiveState)
Python 2.1.1 (#20, Jul 26 2001, 11:38:51) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
Alternative ReadLine 1.4 -- Copyright 2001, Chris Gonnerman
>>> help(map)
Help on built-in function map:
map(...)
map(function, sequence[, sequence, ...]) -> list
Return a list of the results of applying the function to the items of
the argument sequence(s). If more than one sequence is given, the
function is called with an argument list consisting of the
corresponding
item of each sequence, substituting None for missing values when
not all
sequences have the same length. If the function is None, return a
list of
the items of the sequence (or a list of tuples if more than one
sequence).
>>> print map.__doc__
map(function, sequence[, sequence, ...]) -> list
Return a list of the results of applying the function to the items of
<snip>
--
Colorless green ideas sleep furiously.
Chomsky
More information about the Python-list
mailing list