Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 months agoBrace Stylesh.itjust.worksimagemessage-square37fedilinkarrow-up118arrow-down10
arrow-up118arrow-down1imageBrace Stylesh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 months agomessage-square37fedilink
minus-squareFillicia@sh.itjust.workslinkfedilinkarrow-up0·3 months agoYAML makes you appreciate Python’s 4 spaces indentation.
minus-squareSimulation6@sopuli.xyzlinkfedilinkarrow-up0·3 months ago4 spaces? Hard core Python programmers must have a callus on their thumbs.
minus-squareBeardedGingerWonder@feddit.uklinkfedilinkEnglisharrow-up1·3 months agoJust assign tab to 4 spaces.
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up0·3 months agoI thought python allowed whatever indentation you wanted as long as it’s consistent?
minus-squareFillicia@sh.itjust.workslinkfedilinkarrow-up1·3 months agopep8 calls for 4 space but it is a guidance not a rule. Google internal style guide recommend(ed?) 2 spaces to accomodate the line length limit.
It’s just YAML…
YAML makes you appreciate Python’s 4 spaces indentation.
4 spaces? Hard core Python programmers must have a callus on their thumbs.
Just assign tab to 4 spaces.
I thought python allowed whatever indentation you wanted as long as it’s consistent?
pep8 calls for 4 space but it is a guidance not a rule.
Google internal style guide recommend(ed?) 2 spaces to accomodate the line length limit.