-
I'm trying to evaluate the best way to write surrogate classes in CPython that then act on the uPython target. When I added getattr to trap unknown attribute access, belay threw an exception. I'm not able to determine what I broke when I did this. Has anyone seen this before? The exception:
Sample code:
If Y has a Maybe the premise of the exercise is faulty. What other abstraction techniques are being used? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
hmmm, can you post a complete working example? |
Beta Was this translation helpful? Give feedback.
-
The traceback:
|
Beta Was this translation helpful? Give feedback.
-
So here's what's happening:
Does this make sense? |
Beta Was this translation helpful? Give feedback.
-
It makes perfect sense. A couple questions.
|
Beta Was this translation helpful? Give feedback.
I added this and it skips over. Many thanks for the excellent guidance.