Using Python defined functions in packages ..
Using Vim.. Python programing seems easier because YCM helps presenting all the arguments required in its order.. But there's one more problem that's usually hard to solve, yes it's aka the **kwargs.. in functions.. and yes, Vim has no prompt about what it is..
So after googling..
A module called inspect is useful when previewing the functions.. Usage:
1 from django.db import models # the function used is in this module. 2 import inspect 3 inspect.getargspec(models.IntegerField) 4 5 # the function's argument list does not present in YCM .. 6 # but the inspcet module works fine.. and seems to be always working 7 8 # also can be : 9 inspect.getfullargspec(models.IntegerField)
Have fun.
Anyone is permitted to copy/use the contents and codes from this blog.
Sansna is not going to guarantee anything, Sansna will not take any responsibility of any results after using these codes/contents.
浙公网安备 33010602011771号