News for hackers. Stuff that matters.
Re:Ask HN: Good Python codebases to read? by denzil on Thursday July 16, 2015 @09:47AM (#9897110)
PEP-257 is where you can find documentation on them.

https://www.python.org/dev/peps/pep-0257/

Re:Ask HN: Good Python codebases to read? by nekopa on Thursday July 16, 2015 @10:09AM (#9897263)
Thanks for that, and thank you for getting me into the whole PEP. Previously I had only heard about PEP 8, and I thought that was just it , an opinionated piece about how to write Python. Now I have a whole other source of information to look at.

And for people who will no doubt call me out on this, I have been working on Zed's LPtHW for about a month. I have done numerous searches regarding Python problems, and this is literally the first time I have come across a PEP reference to look at beside PEP 8.

Re:Ask HN: Good Python codebases to read? by akuchling on Thursday July 16, 2015 @10:52AM (#9897561)
The features added in PEPs should be incorporated into the documentation -- if they're not, please file a bug -- so people mostly don't refer to PEPs except for historical purposes.

It's not code, but also see Raymond Hettinger's talk "Beyond PEP 8" on YouTube. Actually, pretty much any talk by Hettinger is worth watching:

http://pyvideo.org/speaker/138/raymond-hettinger

Re:Ask HN: Good Python codebases to read? by veddox on Thursday July 16, 2015 @10:31AM (#9897427)
PEPs are basically the Python community's RFCs (if you're familiar with those).

BTW, what you call "an opinionated piece on how to write Python" was originally written by Guido van Rossum, the guy who invented Python in the first place. I think that gives him the right to say something on the topic...

(You ought to know that Python has a large following with a strong community feeling. Making negative remarks about their BDFL - benevolent dictator for life - van Rossum does not go down well ;-) )

Re:Ask HN: Good Python codebases to read? by nekopa on Thursday July 16, 2015 @11:10AM (#9897675)
I do know the idea behind RFCs.

And I hope that other people don't think I used the wording 'opinionated' in a negative way. I do know about the concept of a BDFL, and I do know that Guido was behind those comments.

But I still stand behind my assessment that the PEP 8 comments are opinionated. And maybe rightly so. ;)

Re:Ask HN: Good Python codebases to read? by pollen23 on Thursday July 16, 2015 @12:08PM (#9898067)
Doesn't Guido himself preface some of the things in PEP8 as being his pet peeves?
Re:Ask HN: Good Python codebases to read? by geofft on Thursday July 16, 2015 @02:06PM (#9898899)
I think you'll find lots of people in the Python community who think that Python 3 was a mistake, that GvR's insistence on artificially weakening lambdas is a mistake, etc. Disagreeing with style is pretty minor.

Doesn't make it any less of a community. Families can disagree with each other and still love each other.

Re:Ask HN: Good Python codebases to read? by myth_buster on Thursday July 16, 2015 @02:22PM (#9898998)
For the benefit of other novice like me, here [0] is the index for all PEPs.

[0]https://www.python.org/dev/peps/