StackOverflow Importer – Import code from Stack Overflow as Python modules
11–20 of 87 posts
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#12Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#13Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#14I wonder if there'd be a way to maintain consistency, something like a requirements.txt file that got spit out to describe what the results of the search terms mapped to when the code was run.
It could just contain the search term and link to the chosen question. Although you'd still run the risk of the answer itself being edited. The code itself would have to be cached in whatever this file was.
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#15Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#16Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#17Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#18Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#19"StackSort connects to StackOverflow, searches for 'sort a list', and downloads and runs code snippets until the list is sorted."
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#20What a fascinating concept! I think that with some kind of review built in, this kind of dynamic loading would be really useful. I think if you do this, you'd want external tests, or some way to pull the code in and "freeze" it so that you wouldn't be at risk of external compromises. (For example, a high ranked SO user might be able to change a highly ranked answer . They might not do it, but someone suborning their…
Something like the equivalent of `pip freeze`