Results of 1 - 2 of about 2 for eiffelmethod (0.004 sec.)
- What's New in Python 2.2 — Python 3.14.8 ドキュメント 11228
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.2 テーマ 自動 ライト ダーク | What's New in Python 2.2 ¶ 著者 : A.M. Kuchling はじめに ¶ この文書は 2002 年 10 月 1
...とを可能とするデスクリプタクラスを書けるかもしれません。それを使ったクラスはきっとこう定義出来るでしょう: from eiffel import eiffelmethod class C ( object ): def f ( self , arg1 , arg2 ): # The actual function ... def pre_f ( self ): # Check preconditions ......def post_f ( self ): # Check postconditions ... f = eiffelmethod ( f , pre_f , post_f ) Note that a person using the new eiffelmethod() doesn't have to understand anything about descripto...n't increase the basic complexity of the language. There will be a few wizards who need to know about it in order to write eiffelmethod() or the ZODB or whatever, but most users will just write code on top of the resulting libraries and ignore the implementa... - https://man.mtool.work/python/3.14/whatsnew/2.2.html
- What's New in Python 2.2 — Python 3.14.8 ドキュメント 7485
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.2 テーマ 自動 ライト ダーク | What's New in Python 2.2 ¶ 著者 : A.M. Kuchling はじめに ¶ この文書は 2002 年 10 月 1
...とを可能とするデスクリプタクラスを書けるかもしれません。それを使ったクラスはきっとこう定義出来るでしょう: from eiffel import eiffelmethod class C ( object ): def f ( self , arg1 , arg2 ): # The actual function ... def pre_f ( self ): # Check preconditions ......def post_f ( self ): # Check postconditions ... f = eiffelmethod ( f , pre_f , post_f ) Note that a person using the new eiffelmethod() doesn't have to understand anything about descripto...n't increase the basic complexity of the language. There will be a few wizards who need to know about it in order to write eiffelmethod() or the ZODB or whatever, but most users will just write code on top of the resulting libraries and ignore the implementa... - https://man.mtool.work/python/3.14/whatsnew/2.2.html
PREV
1
NEXT