Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · il y a 4 moisBrace Stylesh.itjust.worksimagemessage-square33fedilinkarrow-up120arrow-down10
arrow-up120arrow-down1imageBrace Stylesh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · il y a 4 moismessage-square33fedilink
minus-squaremariusafa@lemmy.sdf.orglinkfedilinkarrow-up1·il y a 4 moisLiterally me every time I want to program something slightly complex in Python.
minus-squareFillicia@sh.itjust.workslinkfedilinkarrow-up0·il y a 4 moisYAML makes you appreciate Python’s 4 spaces indentation.
minus-squareSimulation6@sopuli.xyzlinkfedilinkarrow-up0·il y a 4 mois4 spaces? Hard core Python programmers must have a callus on their thumbs.
minus-squareBeardedGingerWonder@feddit.uklinkfedilinkEnglisharrow-up0·il y a 4 moisJust assign tab to 4 spaces.
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up0·il y a 4 moisI thought python allowed whatever indentation you wanted as long as it’s consistent?
minus-squareFillicia@sh.itjust.workslinkfedilinkarrow-up0·il y a 4 moispep8 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.
Literally me every time I want to program something slightly complex in Python.
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.