File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ Do you ever feel like all you're doing is copy/pasting from Stack Overflow?
4
4
5
5
Let's take it one step further.
6
6
7
+ ` from stackoverflow import quick_sort ` will go through the search results
8
+ of ` [python] quick sort ` looking for the largest code block that doesn't
9
+ syntax error in the highest voted answer from the highest voted question
10
+ and return it as a module. If that answer doesn't have any valid python
11
+ code, it checks the next highest voted answer for code blocks.
12
+
7
13
``` python
8
14
>> > from stackoverflow import quick_sort, split_into_chunks
9
15
@@ -25,4 +31,4 @@ but what's the license? Can I really use this? CC BY-SA 3.0
25
31
>> > assert (" nice, attribution!" )
26
32
```
27
33
28
- This module is PSF-licensed as it uses multiple lines of code from the python standard library.
34
+ This module is PSF-licensed as it uses multiple lines of code from the python standard library.
You can’t perform that action at this time.
0 commit comments