Results of 1 - 1 of about 1 for eiffelmethod (0.003 sec.)
- What's New in Python 2.2 9414
- What's New in Python 2.2 著者 : A.M. Kuchling はじめに この文書は 2002 年 10 月 14 日にリリースされた Python 2.2.2 の新機能について解説します。Python 2.2.2 は 2001 年 12 月 21 日にリリースされた Python 2.2 のバグフィックスリリースです。 Pyt
...とを可能とするデスクリプタクラスを書けるかもしれません。それを使ったクラスはきっとこう定義出来るでしょう: from eiffel import eiffelmethod class C ( object ): def f ( self , arg1 , arg2 ): # 実際の関数 ... def pre_f ( self ): # 事前条件を確認 ... def post_f ( s...elf ): # 事後条件を確認 ... f = eiffelmethod ( f , pre_f , post_f ) 新しい eiffelmethod() の利用者は、デスクリプタについて何も理解する必要がないことに注目してください。...そのため、これらの新機能が言語の基本的な複雑さを増すことはないと私は考えています。 eiffelmethod() や ZODB などを作るために詳しく知る必要がある専門家は少数で、ほとんどの利用者は実装の詳細を気にせず、できあがったライブラ... - https://man.mtool.work/python/3.14/whatsnew/2.2.html
PREV
1
NEXT