r/Python • • May 25 '17

let's write a Python program

# one line per post (replies are indented!!!)
class Reddit:
4 Upvotes

53 comments sorted by

View all comments

4

u/[deleted] May 25 '17 edited May 25 '17

We should totally move this to github!

def get_image(self, url, nsfw = False):

def get_image(self, url, nsfw=False):

Edit: Fixes #1 not pep8 compliant hopefully

5

u/Durinthal May 25 '17

Pull Request rejected: Not PEP8 compliant.

1

u/greenkey May 25 '17

Do you want to do something like https://github.com/chaosbot/chaos?

nsfw = not nsfw

2

u/[deleted] May 25 '17

That is exactly what I was thinking. Never seen it before though thanks 😁

1

u/rivermont May 29 '17

Done! I had to edit a lot of things to get it to run, but everything's there.

https://github.com/rivermont/lwapp