When I use emacs with elpy, just about every time I start writing code for function by typing:
foo_func(
I automatically get on the bottom window:
:container.foo_func(x, y, z=None)
But when I attempt on built-in type like enumerate or sort
enumerate(
list.sort(
I do not get that nice argument list in elpy. If not, then are there ways to get that even via writing a call like:
>dir(enumerate)
>inspect.signature(enumerate)
Appreciate any pointers in advance
No, some built-in functions (implemented in C) do not provide the required metadata to create signatures for them. Some do (those that are converted to use Argument Clinic in CPython do), while others don't.
This is stated in
inspect.signature
s documentation, too:Case in point:
So you'd need to consult the documentation for these (maybe an emacs plugin that uses the docs might exist?)