LoginSignup
0
0

More than 1 year has passed since last update.

はじめに

移植やってます。

@staticmethod (Python)

    @staticmethod
    def _get_time(scan):
        raise NotImplementedError

Pythonのデコレーターは便利そうですが、移植は厄介。

こちらに、Pythonで classmethod、staticmethod を使う - Qiita詳しい解説があります。

こちらは、クラスメソッドとスタティックメソッドについて - Qiita PythonRubyJavaを比較されています。

どうする? (Ruby)

  #staticmethod
  def _get_time(scan)
    raise NotImplementedError
  end

まあ、@#に変えて、頑張れ俺。

メモ

  • Python の @staticmethod を学習した
  • 道のりは遠そう
0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0