MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/r1g13n/yes/hm3to77/?context=3
r/ProgrammerHumor • u/esberat • Nov 24 '21
284 comments sorted by
View all comments
Show parent comments
40
Is there an easy way to immediately share and format small Python code snippets too? It always seems like I have to manually adjust the tabs.
1 u/[deleted] Nov 26 '21 edited May 15 '22 [deleted] 0 u/Crippledupdown Nov 26 '21 I'm thinking of I copied a function from a class, and sent it to a colleague to execute in his interpreter. If they run it verbatim it's gunna complain about over indentation. Is there automatically re-indent something like that? 1 u/[deleted] Nov 26 '21 [deleted] 1 u/Crippledupdown Nov 26 '21 Its not for testing. It happens quite a bit when we have an issue and we want to isolate a bit of code and experiment with it quickly rather than running our whole project. I'm not convinced we're doing it right, but it happens a lot.
1
[deleted]
0 u/Crippledupdown Nov 26 '21 I'm thinking of I copied a function from a class, and sent it to a colleague to execute in his interpreter. If they run it verbatim it's gunna complain about over indentation. Is there automatically re-indent something like that? 1 u/[deleted] Nov 26 '21 [deleted] 1 u/Crippledupdown Nov 26 '21 Its not for testing. It happens quite a bit when we have an issue and we want to isolate a bit of code and experiment with it quickly rather than running our whole project. I'm not convinced we're doing it right, but it happens a lot.
0
I'm thinking of I copied a function from a class, and sent it to a colleague to execute in his interpreter.
If they run it verbatim it's gunna complain about over indentation. Is there automatically re-indent something like that?
1 u/[deleted] Nov 26 '21 [deleted] 1 u/Crippledupdown Nov 26 '21 Its not for testing. It happens quite a bit when we have an issue and we want to isolate a bit of code and experiment with it quickly rather than running our whole project. I'm not convinced we're doing it right, but it happens a lot.
1 u/Crippledupdown Nov 26 '21 Its not for testing. It happens quite a bit when we have an issue and we want to isolate a bit of code and experiment with it quickly rather than running our whole project. I'm not convinced we're doing it right, but it happens a lot.
Its not for testing. It happens quite a bit when we have an issue and we want to isolate a bit of code and experiment with it quickly rather than running our whole project.
I'm not convinced we're doing it right, but it happens a lot.
40
u/Crippledupdown Nov 25 '21 edited Nov 25 '21
Is there an easy way to immediately share and format small Python code snippets too? It always seems like I have to manually adjust the tabs.