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=identity)
  min(iterable, *, default, key=identity)
  min(*args, key=identity)

I think the only way to resolve this problem is to add the support of multiple 
signatures in inspect, pydoc, Argument Clinic, etc.

----------
components: Library (Lib)
messages: 286068
nosy: larry, rhettinger, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Add support of multiple signatures
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to