Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
quickFixes
/
PyAddPropertyForFieldQuickFixTest
/
protectedMember_after.py
blob: f0a0d2e1cd499f786be99d47314bc6c3f7a4ca78 [
file
]
class
A
:
def
__init__
(
self
):
self
.
_x
=
1
def
_foo
(
self
):
print
(
self
.
_x
)
@property
def
x
(
self
):
return
self
.
_x
a
=
A
()
a
.
_foo
()
print
(
a
.
x
)