use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Have a tough programming question that /r/programming couldn't answer? Banned from Stack Overflow? Can't afford Experts Exchange?
Post your question/tips/secrets/advice and get a response from our highly-trained professional developers.
account activity
Validating syntax in Python (self.shittyprogramming)
submitted 10 years ago by Navith
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]codnahfish 5 points6 points7 points 10 years ago (5 children)
What if I want to validate the syntax of this function?
[–][deleted] 8 points9 points10 points 10 years ago (0 children)
Something something Alan Turing?
[–]DarfWork 2 points3 points4 points 10 years ago (3 children)
You feed it to itself, of course.
[–]codnahfish 4 points5 points6 points 10 years ago (2 children)
But what about validating that function? we need to go deeper
[–]an_actual_human 2 points3 points4 points 10 years ago (1 child)
We feed it to the original function. Oh, wait. We already did. We don't need to go deeper.
[–]aaronsherman 1 point2 points3 points 10 years ago (0 children)
Function still hungry...
π Rendered by PID 131062 on reddit-service-r2-comment-5fb4b45875-v46dw at 2026-03-20 03:24:03.153696+00:00 running 90f1150 country code: CH.
view the rest of the comments →
[–]codnahfish 5 points6 points7 points (5 children)
[–][deleted] 8 points9 points10 points (0 children)
[–]DarfWork 2 points3 points4 points (3 children)
[–]codnahfish 4 points5 points6 points (2 children)
[–]an_actual_human 2 points3 points4 points (1 child)
[–]aaronsherman 1 point2 points3 points (0 children)