Message 307303 - Python tracker (original) (raw)

I'll also note that one possible alternative would be to accept Ryan's original proposal, which was to make "skip_bound_arg=False" part of the public API for inspect.Signature.from_callable.

Keeping getfullargspec around (but discouraged for new code), seems nicer to me than doing that, though, since the only use case we're aware of for that behaviour toggle is to be able to emulate inspect.getfullargspec() atop inspect.Signature().

TOOWTDI simply doesn't strike me as a good enough reason to break working code in this case - there is an obvious way for new code (inspect.signature), and there are plenty of other standard library APIs that we keep around primarily for backwards compatibility reasons, even though we don't necessarily recommend using them any more.