Forum Discussion

poffin's avatar
poffin
Occasional Contributor
8 years ago
Solved

Python Variable Auto Completion

I have the same question as a previous poster: https://community.smartbear.com/t5/Desktop-Testing/Python-and-IDE-auto-complete/m-p/104937/highlight/true#M3717   I'm switching from a JavaScript proj...
  • baxatob's avatar
    8 years ago

    Hi,

     

    Unfortunately, in TestComplete IDE auto-completion for python works only if variable was declared or imported on the top level of the module:

     

    from some_module import variable1
    
    variable2 = 222
    
    
    class A:
        def __init__(self):
            self.variable3 = 333
    
    
    def foo():
        variable4 = 444
    
    
    '''
    Auto completion will work only for variable1 and variable2
    '''

    You can create the feature request for this case.