@meredydd, @shaun, @daviesian
Ignore the text below, the real issue is in the following posts
This used to work fine but has started going wrong today (as far as I can tell).
I pass this into a repeating panel’s item form
{‘minutes’: 0.51333333, ‘calls’: 1, ‘name’: ‘100KM’, ‘num’: ‘100KM’, ‘shade’: False}
if I
print(self.items)
I see the above, but if I
print(self.items['calls'])
I see this
[object Object]
Err…how do I read the items again? This has affected a live project which has not been changed recently. Has there been a system update?
Ok, this is the issue.
This no longer works in the client :
print("{:,}".format("1234567"))
It used to (and still works on my local python installation on my PC) but now it prints
[object Object]
@meredydd, @shaun, @daviesian - sorry to tag you again but is this due to an update? If so, is it an error or a breaking change that I need to cope with?
Ok fixed it.
The format now insists on a number (int or float) whereas before it was working fine with a str.
Now I know, it’s fine, but still curious to know if that’s a new breaking change/bug fix?
edit - further testing shows it did break on my local machine when I used a string, but with a completely different error :
Traceback (most recent call last):
File "x.py", line 2, in <module>
print("{:,}".format(a))
ValueError: Cannot specify ',' with 's'.
Anyway, I was probably just getting away with something I shouldn’t have been 
Anyway, I was probably just getting away with something I shouldn’t have been 
Yep, looks like it! This morning’s release brought a bugfix that improved our compatibility with standard Python. I’ve filed an issue to make the error message a little better, though 
1 Like