Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6634181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:53:59+00:00 2026-05-25T22:53:59+00:00

For example, suppose I have the code: class Foo(object): def bar(self, x): ”’blah blah

  • 0

For example, suppose I have the code:

class Foo(object):
  def bar(self, x):
    '''blah blah blah'''
    return x+1

And suppose I am creating another class, that has a method that takes an instance of a Foo object and does something:

class Baz(object):
  def goo(self, foo):
    foo.bar(1) ### I am a 'Foo' object. Auto-complete me, please

I would desperately LOVE if after typing foo. while creating the goo() method in the Baz class, the IDE would provide me with intellisense. You know, show the available methods of the Foo class, their params, their doc, etc.

In C# I would have to declare that param ‘foo’ is type ‘Foo’, so the autocompletion is trivial.

I realize that Python is dynamically typed, so there is no way for any IDE to know that the ‘foo’ parameter is of type Foo. But is there some other info, directive, or convention that some IDE can use to determine the type … strictly for the sake of intellisense and auto-completion?

One workaround I’ve found is to type Foo. which will cause most IDE’s to show intellisense for the methods in Foo. This is useful, but it’s not exactly what I’m looking for.

Another workaround is to type foo = Foo(), and then go about using foo as you normally would. Some IDE’s sniff that foo is type Foo and provide intellisense. But then you must remember to delete the line foo = Foo(), else you’ve got a nasty bug.

Perhaps, there is a much better way to accomplish what I’m trying to do. I’m using C# intellisense as a point of reference, and maybe that’s a Visual Studio thing, whereas when coding Python I should open my mind for a different way of accomplishing a similiar thing. Any suggestions would be much appreciated. I’m sure I can’t be the only one craving intellisense for Python objects.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:54:00+00:00Added an answer on May 25, 2026 at 10:54 pm

    Look at PyCharm by Jetbrains. It can auto-complete method names on an instance when the name of the referring variable matches (case-insensitive) a class name.

    http://www.jetbrains.com/pycharm/

    Nice screenshot here (scroll down and click the third image from the left):

    http://www.jetbrains.com/pycharm/features/index.html

    I should mention that this functionality is limited (because Python is dynamically typed) but it’s better than any other Python IDE I’ve tried. This, along with many other great features make it my PyCharm IDE of choice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have this code: class Example(object): def the_example(self): itsProblem = "problem" theExample =
Say suppose I have the following Java code. public class Example { public static
For example, suppose I have a class: class Foo { public: std::string& Name() {
Suppose I have a page located at www.example.com/foo , and it contains an <iframe>
Suppose we have the following code: class Test { private Test() { System.out.println(test); }
Suppose I have code segment namespace Test { public delegate void StaticticsDelegate(object sender,EventArgs e);
Suppose to have a code like this: <div class=notSelected> <label>Name <input type=text name=name id=name
Suppose you have several Class object declarations and add it into a NSMutableArray, then
Suppose I have this code: class A { }; class B: virtual public A
For example, suppose I have the following base class for which I cannot modify

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.