Argument list when calling a function

mchangun

I'm using the Mac OS X version of Sublime Text 2. The autocomplete of a function is pretty nice - but I'm wondering if it's possible to have an argument list when you are calling a function to remind yourself how many and what arguments need to be passed? My function is defined as:

import math

def area_polygon(n, s):
  return (0.25 * n * s ** 2) / math.tan(math.pi / n)

It would be useful if I get an argument list after I type area_polygon() within the brackets (or as a dropdown) so I know what to pass in.

Thanks.

Martijn Pieters

Use a source code analysis plugin; there are several to choose from, offering different levels of integration and auto-completion, and support for Sublime Text 2 and / or 3.

  • SublimeCodeIntel - Full-featured code intelligence and smart autocomplete engine
  • SublimePythonIDE - ST3 only: A rewrite of SublimeRope for ST3, uses the Rope library to add python completions and refactoring to ST3
  • Python-Auto-Complete - A Sublime Text 2 plugin which adds additional auto-completion capability to Python scripts
  • SublimeRope - ST2 only, use SublimePythonIDE with ST3: Adds Python completions and some IDE-like functions to Sublime Text 2, through the use of the Rope library

All packages are available through Sublime Package Control.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Calling a function with va_list argument needs va_start() at the beggining?

分類Dev

Specify the dots argument when calling a tidyselect-using function without needing to specify the preceding arguments

分類Dev

Updating the range of list in function argument

分類Dev

when to pass a pointer argument to a function

分類Dev

Problem with calling a variadic function template when passing brace initialiser list arguments

分類Dev

Missing actual argument when calling a subroutine with optional arguments

分類Dev

Argument not optional when calling sub-procedure that passes dict as a value

分類Dev

auto in function parameter list implying template argument

分類Dev

What does * represent in function argument list in python?

分類Dev

pass a list of variable names as an argument to an R function

分類Dev

Avoid two time argument definition when passing function as argument typescript

分類Dev

"This function takes no arguments" error when calling UDF

分類Dev

Scope of variables when calling function from find

分類Dev

Type mismatch when calling a function in qtp

分類Dev

Calling a function automatically when rendering a screen

分類Dev

Undefined function when calling a constructor param closure function

分類Dev

How to pass argument in multiprocessing function and how to use multiprocessing list?

分類Dev

How does lazy evaluation works when the argument is a list?

分類Dev

Calling a function when ng-repeat has finished

分類Dev

Typescript with Angular HttpClient ErrorType ... is not a function when calling class method

分類Dev

Object required error in javascript even when calling the function correctly

分類Dev

How do I set variables by name when calling a function?

分類Dev

"object is not a function" error when try to get value by calling WebAPI in KonckoutJS

分類Dev

I am giving passing the argument into function still it gives error code missing argument while adding linked list

分類Dev

type-stability issue when a function adds a dimension to the input argument

分類Dev

When is a move operation performed on a function argument c++

分類Dev

Why Could Not Deduce Template Argument When Function Returns a Struct Template

分類Dev

In Tkinter, How does padx differ when used as argument within a widget and an argument in the grid function?

分類Dev

Pass argument and function as argument in python

Related 関連記事

  1. 1

    Calling a function with va_list argument needs va_start() at the beggining?

  2. 2

    Specify the dots argument when calling a tidyselect-using function without needing to specify the preceding arguments

  3. 3

    Updating the range of list in function argument

  4. 4

    when to pass a pointer argument to a function

  5. 5

    Problem with calling a variadic function template when passing brace initialiser list arguments

  6. 6

    Missing actual argument when calling a subroutine with optional arguments

  7. 7

    Argument not optional when calling sub-procedure that passes dict as a value

  8. 8

    auto in function parameter list implying template argument

  9. 9

    What does * represent in function argument list in python?

  10. 10

    pass a list of variable names as an argument to an R function

  11. 11

    Avoid two time argument definition when passing function as argument typescript

  12. 12

    "This function takes no arguments" error when calling UDF

  13. 13

    Scope of variables when calling function from find

  14. 14

    Type mismatch when calling a function in qtp

  15. 15

    Calling a function automatically when rendering a screen

  16. 16

    Undefined function when calling a constructor param closure function

  17. 17

    How to pass argument in multiprocessing function and how to use multiprocessing list?

  18. 18

    How does lazy evaluation works when the argument is a list?

  19. 19

    Calling a function when ng-repeat has finished

  20. 20

    Typescript with Angular HttpClient ErrorType ... is not a function when calling class method

  21. 21

    Object required error in javascript even when calling the function correctly

  22. 22

    How do I set variables by name when calling a function?

  23. 23

    "object is not a function" error when try to get value by calling WebAPI in KonckoutJS

  24. 24

    I am giving passing the argument into function still it gives error code missing argument while adding linked list

  25. 25

    type-stability issue when a function adds a dimension to the input argument

  26. 26

    When is a move operation performed on a function argument c++

  27. 27

    Why Could Not Deduce Template Argument When Function Returns a Struct Template

  28. 28

    In Tkinter, How does padx differ when used as argument within a widget and an argument in the grid function?

  29. 29

    Pass argument and function as argument in python

ホットタグ

アーカイブ