• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

Revision0f9bda0619055a9a1e8c4e2b1172caae3a164958 (tree)
Time2024-03-08 23:29:58
AuthorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

Undo removal of ProtocolWrapper.getattr ; used in TestDoubles-aigr-sieve::test_1_sieve_protocols

Change Summary

Incremental Difference

diff -r 2b9ad5e38f95 -r 0f9bda061905 base_packages/castle-aigr/castle/aigr/protocols.py
--- a/base_packages/castle-aigr/castle/aigr/protocols.py Fri Mar 08 15:25:13 2024 +0100
+++ b/base_packages/castle-aigr/castle/aigr/protocols.py Fri Mar 08 15:29:58 2024 +0100
@@ -68,12 +68,12 @@
6868 if self.name == "":
6969 self.name = f"Wrapper for {self.based_on.name}({self.arguments})" ###
7070
71-# GAM: When based_on is a Protocol, delegate to self.based_on isn;t needed. When move to generic wrappper, it is ?
72-# def __getattr__(self, name): ### XXX move to Wrapper Base?
73-# """delegate "everything" to `.`based_on``!
74-# Kind of inherit, but not to superclass (Protocol), but to the instance (a Protocol) that is wrapped"""
75-#
76-# return getattr(self.based_on, name)
71+
72+ def __getattr__(self, name): ### XXX move to Wrapper Base?
73+ """delegate "everything" to `.`based_on``!
74+ Kind of inherit, but not to superclass (Protocol), but to the instance (a Protocol) that is wrapped"""
75+
76+ return getattr(self.based_on, name)
7777
7878
7979 @dataclass # pragma: no mutate