Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/examples/caller.py # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / examples / caller.py` 16 lines ยท 716 bytes Raw Blame History 1 """A real application calling the emitted Python module.""" 2 import attachment as bridge 3 values = [2,3,5,7] 4 assert bridge.omega_total(values,4) == (0,17) 5 data = bytearray([1,2,254,255]) 6 assert bridge.omega_bump(data,4) == (0,0) 7 assert list(data) == [2,3,255,0] 8 assert bridge.omega_narrow(256) == (5,None) 9 assert bridge.omega_divide(9,0) == (2,None) 10 assert bridge.omega_total(values,3) == (8,None) 11 assert bridge.omega_total(None,4) == (8,None) 12 assert bridge.omega_total(values,4) == (0,17) 13 assert bridge.omega_copy(values,4,values,4) == (8,None) 14 assert bridge.omega_copy(values,4,[11,13,17,19],4) == (0,0) 15 assert values == [11,13,17,19] 16 print('Python caller: values, mutation, traps, invalid lengths and recovery OK')