Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ecf9a06

Browse filesBrowse files
authored
Add more things to read.
1 parent f9d3153 commit ecf9a06
Copy full SHA for ecf9a06

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Do you ever feel like all you're doing is copy/pasting from Stack Overflow?
44

55
Let's take it one step further.
66

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+
713
```python
814
>>> from stackoverflow import quick_sort, split_into_chunks
915

@@ -25,4 +31,4 @@ but what's the license? Can I really use this? CC BY-SA 3.0
2531
>>> assert("nice, attribution!")
2632
```
2733

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.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.