From b7d46c45a2149ba2f5293663f3a465f0dd39109c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Fri, 4 Aug 2023 17:11:57 +0300 Subject: [PATCH] =?UTF-8?q?dekorat=C3=B6r=20=C3=B6rne=C4=9Fi=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-temel/dekorator.2.py | 4 ++++ python-temel/dekorator.3.py | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 python-temel/dekorator.2.py create mode 100644 python-temel/dekorator.3.py diff --git a/python-temel/dekorator.2.py b/python-temel/dekorator.2.py new file mode 100644 index 0000000..65508dd --- /dev/null +++ b/python-temel/dekorator.2.py @@ -0,0 +1,4 @@ +class Sample: + @staticmethod + def foo(): + print('static foo method') diff --git a/python-temel/dekorator.3.py b/python-temel/dekorator.3.py new file mode 100644 index 0000000..89d9fb1 --- /dev/null +++ b/python-temel/dekorator.3.py @@ -0,0 +1,8 @@ +class Sample: + def foo(): + print('static foo method') + + foo = staticmethod(foo) + + +Sample.foo()