▲ 684 ▼ The Perfect Solution (programming.dev) submitted 2 years ago by JPDev@programming.dev to c/programmer_humor@programming.dev 77 comments fedilink hide all child comments
[–] GBU_28@lemm.ee 5 points 2 years ago (2 children) List permalink fedilink source parent hideshow 2 child comments replies: [–] dalegribble@beehaw.org 5 points 2 years ago (1 child) While there are not actually any trailing commas in the dictionaries present and you are correct to say the ones present are part of a list, you can also have trailing commas in Python dictionaries. OP might have researched “Python trailing commas” and learned that part. Trailing commas are fantastic to reduce changed lines in git diffs. Makes life much better. Same thing with leading commas in SQL queries. permalink fedilink source parent hideshow 1 child comment replies: [–] GBU_28@lemm.ee 2 points 2 years ago Yeh permalink fedilink source parent
[–] dalegribble@beehaw.org 5 points 2 years ago (1 child) While there are not actually any trailing commas in the dictionaries present and you are correct to say the ones present are part of a list, you can also have trailing commas in Python dictionaries. OP might have researched “Python trailing commas” and learned that part. Trailing commas are fantastic to reduce changed lines in git diffs. Makes life much better. Same thing with leading commas in SQL queries. permalink fedilink source parent hideshow 1 child comment replies: [–] GBU_28@lemm.ee 2 points 2 years ago Yeh permalink fedilink source parent