Status: New
Owner: ----

New issue 254 by ahmednematallah: Problem with hidden methods in autocomplete
http://code.google.com/p/ulipad/issues/detail?id=254

What steps will reproduce the problem?
1. make a class like this
class hi(object):
    def __toto(self):
        print 'You Found Me'

    def Me(self):
        'Dis is OK'

    def __init__(self):
        print 'Initialized'
2. then write
hi().
3. autocomlete will give you __toto() instead of giving you _hi__toto()
as python automatically changes methods starting with __(name) to _(class)__(name) where (name) is the method name and (class) is the class name

you should make a filter for auto complete like

if((methodname).startswith('__') && (!(methodname).endswith('__'))):
    (methodname) = '_' + (classname) + (methodname)

where (methodname) is the name of the mathod and (classname) is the name of the class

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.



Reply via email to