Removing Extra Whitespace in Python considered Harmful Submitted by twovests on July 2, 2018 at 2:06 PM in programming 3 comments 6
flabberghaster wrote on July 2, 2018 at 5:54 PM Try this (horrible hack but you're already copy pasting directly into your interpreter so quick and dirty is fine) Throw triple quotes, then paste, then end triple quotes. Now you have a string. Just eval that. Permalink 4 Moonside wrote on July 2, 2018 at 7:25 PM Wow this is like an impressively shitty solution, but I might use it myself if the need arises. Permalink Parent 2 twovests OP wrote on July 2, 2018 at 8:55 PM that's so terrible oh my god i love it Permalink Parent 2
Moonside wrote on July 2, 2018 at 7:25 PM Wow this is like an impressively shitty solution, but I might use it myself if the need arises. Permalink Parent 2
twovests OP wrote on July 2, 2018 at 8:55 PM that's so terrible oh my god i love it Permalink Parent 2
Viewing a single comment thread. View all comments