⇥ as tabulation

Messages in english

Modérateur : xcasadmin

Messages : 540
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

⇥ as tabulation

Message par compsystems » mar. mars 12, 2019 2:26 pm

One of the problems with python syntax is that when you share source code (forums), also when copying and pasting into different notebooks or similar the tab char is eliminated, perform automatic justification to the left. the ⇥ char It also facilitates the correction of the source code, since the space character is not visible.

an idea to not lose the tabulation is to interpret the ⇥ character as a space

Code : Tout sélectionner

def sumxy(x, y = 2):
⇥return x + y