Message95908
Ulrik,
I agree that most builtins have the signature on first lines.
I will not apply this part of the PEP257.
But it seems that the "[...]" syntax is not enforced for all builtins.
See "help(print)", "help(sorted)" and "help(__import__)" examples:
>>> print(print.__doc__)
print(value, ..., sep=' ', end='\n', file=sys.stdout)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
sep: string inserted between values, default a space.
end: string appended after the last value, default a newline.
>>> print(sorted.__doc__)
sorted(iterable, key=None, reverse=False) --> new sorted list
>>> print(__import__.__doc__)
__import__(name, globals={}, locals={}, fromlist=[], level=-1) -> module
Import a module. The globals are only used to determine the context;
they are not modified...
Patch is updated. |
|
Date |
User |
Action |
Args |
2009-12-02 14:37:33 | flox | set | recipients:
+ flox, georg.brandl, pitrou, englabenny |
2009-12-02 14:37:33 | flox | set | messageid: <1259764653.34.0.568646344512.issue7417@psf.upfronthosting.co.za> |
2009-12-02 14:37:28 | flox | link | issue7417 messages |
2009-12-02 14:37:27 | flox | create | |
|