I get an error msg now not seen before when I try to run for ex:
import ui
def add(a,b):
result = 0
while b>0:
result += a
b -= 1
return result
print add(3,5) NameError: global name '_debug_runtime' is not defined
Or even:
x = 1
print x
Same error. This has never happened before. What gives?
Has Pythonista on my iPad been compromised somehow?
What's odd tho is that the ones that came with the program still run. Just not the little ones I write.
I'm being pointed to THIS in stash.py
def write(self, s, rng=None, update_read_pos=True, flush=True):
_debug_runtime('Write Called: [%s]\n' % repr(s))
if not _IN_PYTHONISTA:
_STDOUT.write(s)
self.replace_out_buf(s, rng=rng)
# In most cases, the read position should be the write position.
# There are cases when read position shouldn't be updated, e.g.
# when manipulating input line with completer.
# Also read position can never decrease in a stream like output.
if update_read_pos and self.write_pos > self.read_pos:
self.read_pos = self.write_pos
if flush:
self.flush()
Thanks