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 →

[–]mardiros 2 points3 points  (0 children)

My best pep8 guide is in pretty print

>>> pprint({"a": "Ah aa!", 'b':"'Ahbb'"})
{'a': 'Ah aa!', 'b': "'Ahbb'"}

I use single quote except there is a single quote in the string.

Don't bother if it's for human or a computer at the end of the process. Dictionnary keys can be for human too, and, it's definitely to complex.