[issue29350] Add support of multiple signatures

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It can be do, but I don't think it is worth. Making bases and mapping optional arguments does not make much sense to me. And there is no a value that can be used as a default value for the second parameter in dict.pop(). -- _

[issue29350] Add support of multiple signatures

2017-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: Signature object provides methods like .bind(), which will be hard to define if a function has many signatures. Also, inspect.signature currently returns one Signature object, that shouldn't be changed. Wouldn't it be easier instead of this: type(obj) typ

[issue29350] Add support of multiple signatures

2017-01-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some functions can be described by the single signature. See examples in msg285647. Selected examples: dict.pop(key) dict.pop(key, default) type(obj) type(name, bases, mapping) range(stop) range(start, stop, step=1) min(iterable, *, key=ide