[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
spaces or tabs for python, faggots?

You are currently reading a thread in /g/ - Technology

Thread replies: 23
Thread images: 3
File: fighting-clipart-eiMrGr6in.gif (80 KB, 534x436) Image search: [Google]
fighting-clipart-eiMrGr6in.gif
80 KB, 534x436
spaces or tabs for python, faggots?
>>
spaces with tab key
>>
Spaces.

Normally I'd use tabs because I prefer tabs, but it's Python, so you have to follow PEP 8.
>>
what >>54358677 said.
>>
Tabs setup to insert 4 spaces.
>>
Anything but tabs is mentally retarded.
>>
>>54358677
this
>>
>>54358659
>spaces or tabs for python, faggots?
Alternatively one could say "let's start a flame war
>>
>>54359066
/thread
>>
Hard tabs are fucking shit and a great way to introduce bugs
>>
>>54358659
The Zen of Python says you should only use 4 spaces, never tabs or other number of spaces.
>>
File: Untitled.png (12 KB, 500x500) Image search: [Google]
Untitled.png
12 KB, 500x500
>>54358659
both at the same time
>>
File: 1462248045719.jpg (31 KB, 317x334) Image search: [Google]
1462248045719.jpg
31 KB, 317x334
Tab key remapped to spacebar
>>
>>54358659
>Set your IDE to use spaces instead of tabs for python files
>Set your IDE's indentation level to 4 spaces for python files

Boom, you're done. Takes all of 3 seconds.
Any IDE that's worth anything will already have these things configured upon install.
>>
>>54358659
I convert my tabs to spaces and use the tab key to make spaces instead of tabs.
>>
>>54358659
Spaces you melt
>>
>>54358677
Yup
>>
>>54360817
Spacebar remapped to 4 tabs
>>
>>54360817
Weak
>>
>>54358659
Spaces, with tab bound to write 4 spaces.

tabs limit code formatting.
>>
>>54363797
>tabs limit code formatting

this is what retards actually believe
>>
>>54358659
remove python, problem fixed
>>
>>54365741
Tabs, absolutely

A tab has semantic meaning. If you don't like the default width of a tab, you can change it in any editor beyond notepad.exe
Thread replies: 23
Thread images: 3

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK