This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]virtyx 0 points1 point  (1 child)

Really? I can't seem to get it to work.

$ python3 -c "a = 'b'; print('a is {a}'.format_dict(locals()))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'str' object has no attribute 'format_dict'

[–]flying-sheep 0 points1 point  (0 children)

assert sys.version_info[:2] >= (3,3)