You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, prettyprinter formats collections without a comma after the last element. Adding a comma there is optional, but suggested in some style guides, including PEP8 (https://www.python.org/dev/peps/pep-0008/#when-to-use-trailing-commas). It would be nice if prettyprinter also added the comma (or provided a configurable option to do so).
What I Did
In [1]: sys.version_info
Out[1]:
sys.version_info((
3, # major
7, # minor
2, # micro
'final', # releaselevel
0 # serial
))
expected a comma in 0, # serial.
The text was updated successfully, but these errors were encountered:
I agree, I think we can add this as a configurable option. I'll see if I can make this change sometime this week to ship in a new release with the PRs I merged in today.
Description
Currently, prettyprinter formats collections without a comma after the last element. Adding a comma there is optional, but suggested in some style guides, including PEP8 (https://www.python.org/dev/peps/pep-0008/#when-to-use-trailing-commas). It would be nice if prettyprinter also added the comma (or provided a configurable option to do so).
What I Did
expected a comma in
0, # serial
.The text was updated successfully, but these errors were encountered: