6 Removing Extra Whitespace in Python considered Harmful Submitted by twovests at July 2, 2018, 2:06 PM in programming 3 comments
4 flabberghaster wrote at July 2, 2018, 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. Reply Permalink 2 Moonside wrote at July 2, 2018, 7:25 PM Wow this is like an impressively shitty solution, but I might use it myself if the need arises. Reply PermalinkParent 2 twovests wrote at July 2, 2018, 8:55 PM that's so terrible oh my god i love it Reply PermalinkParent
2 Moonside wrote at July 2, 2018, 7:25 PM Wow this is like an impressively shitty solution, but I might use it myself if the need arises. Reply PermalinkParent
2 twovests wrote at July 2, 2018, 8:55 PM that's so terrible oh my god i love it Reply PermalinkParent
flabberghaster wrote
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.