Last active
December 2, 2015 17:18
-
-
Save dboyliao/b62db2b532d89014d0d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A: | |
def __init__(self): | |
self.a = 1 | |
@property | |
def a(self): | |
return 2 | |
a = A() | |
a.a | |
# >>> 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment