Currently Python does not support using `@staticmethod` decorator along with
`@property` decorator.
I think that the it currently works is a bit misleading since it will not give
an error, but gives the following outcome.
```
class Foo:
@staticmethod
@property
def bar():
return "1"
```
```
class Foo:
@property
@staticmethod
def bar():
return "1"
```
In wither of the cases the outcome is the following
```
Foo.bar
>>> <property at 0x112dbaf40>
a = Foo()
a.bar
>>> <property at 0x112dbaf40>
```
Is there any particular reason for this? Any don't we make it work?
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/M45PDOVAKJPFI55JUM3QREW3OYMW7NF5/
Code of Conduct: http://python.org/psf/codeofconduct/