Question about auto complete

Hello, I'm new to PyCharm and trying to wrap my head around how it deals with autocomplete.  Here's a very simple example of what I'm talking about:

import mox

from django import test

from django.contrib.auth import models as auth_models

from django_nova import shortcuts

class ViewTests(test.TestCase):

    def setUp(self):

        self.mox = mox.Mox()          # <---------- here it completes "Mox()" automatically when I type "mox." as expected

    def tearDown(self):

        self.mox.UnsetStubs()         # <---------- here it does not auto complete "UnsetStubs()" when i type "self.mox."

Is there something I'm not understanding about the scope of PyCharm's autocompletion?

Thanks!

1 comment
Comment actions Permalink

Hello Devin,

I wasn't able to reproduce this problem with PyCharm 1.1, Python 2.6 and

Mox 0.5.3. The completion works correctly for me in both places, as expected.

Hello, I'm new to PyCharm and trying to wrap my head around how it

deals with autocomplete.  Here's a very simple example of what I'm

talking about:

import mox

from django import test

from django.contrib.auth import models as auth_models

from django_nova import shortcuts

class ViewTests(test.TestCase):

def setUp(self):

self.mox = mox.Mox()          # <---------- here it completes

"Mox()" automatically when I type "mox." as expected

def tearDown(self):

self.mox.UnsetStubs()         # <---------- here it does not

auto complete "UnsetStubs()" when i type "self.mox."

Is there something I'm not understanding about the scope of PyCharm's

autocompletion?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.