private variables are not accessible anymore, but still completeable - fixes and tests for #56

This commit is contained in:
David Halter
2012-11-22 23:50:26 +01:00
parent 7d38fc6513
commit 936f7f9fd5
4 changed files with 38 additions and 9 deletions

View File

@@ -510,3 +510,16 @@ Wrapper(Base()).ret(3)
#? int()
Wrapper2(Base()).ret(3)
# -----------------
# private vars
# -----------------
class PrivateVar():
def __init__(self):
self.__var = 1
#? int()
self.__var
#? []
PrivateVar().__var
#?
PrivateVar().__var