Pythonのnumpyの中のファイルを興味本位で覗いてみたら,passしか書いていない関数やクラスがたくさんあったのですが,どういった意味があるのか,わかる方がいらっしゃいましたら教えていただけませんか?
とても抽象的な質問で申し訳ありません。。。
以下,numpyの中のファイル(array.py)の一部を抜粋したものですが,こういったようにpassのみの宣言ばかりでした。
python
1 def count(self, *args, **kwargs): # real signature unknown 2 """ Return number of occurrences of v in the array. """ 3 pass 4 5 def extend(self, *args, **kwargs): # real signature unknown 6 """ Append items to the end of the array. """ 7 pass 8 9 def frombytes(self, *args, **kwargs): # real signature unknown 10 """ Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method). """ 11 pass 12 13 def fromfile(self, *args, **kwargs): # real signature unknown 14 """ Read n objects from the file object f and append them to the end of the array. """ 15 pass
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/19 17:23