Commit Graph

34 Commits

Author SHA1 Message Date
CAM Gerlach 1f0826ea62
PEP 7: Prohibit compiler extensions in general, not just GCC, per #758 (#2263)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-01-25 14:24:40 -08:00
Adam Turner 113e490701
Several PEPs: Use explicit `:pep:` and `:rfc:` roles (#2209) 2022-01-21 11:03:51 +00:00
Dimitri Papadopoulos Orfanos ec3ac5bf29
PEP 7: No need to call out in-line (//) comments twice (#2074)
It's already mentioned in a preceding bulleted sublist.
2021-12-20 12:52:55 -08:00
bobozi-cmd 9dade42dbe
PEP 7: Mention PyAPI_DATA() macro (#2184) 2021-12-08 16:41:17 -08:00
Mariatta cf3bad5ab3
Revert "Rename all .txt PEP files to .rst (GH-462)" (GH-464)
This reverts commit bb0e518ed3.
2017-11-11 11:28:55 -08:00
Huang Huang bb0e518ed3 Rename all .txt PEP files to .rst (GH-462)
For https://github.com/python/peps/issues/1
2017-11-11 10:30:43 -08:00
Benjamin Peterson ebbb636b7b remove errant letter 2017-09-06 11:21:49 -07:00
Barry Warsaw 06f77300aa Don't use `return Py_None` as the example.
We now have the `Py_RETURN_NONE` macro, which is better style, so don't use an
example that may conflict with that style.  Use a generic example.
2017-09-05 18:01:21 -07:00
Brett Cannon 71098c1207 Clarify C++-style one-line comments 2017-08-18 12:05:03 -07:00
Barry Warsaw 3800904843 Braces example for multiline conditionals (#284)
* Braces example for multiline conditionals.

Closes #283
2017-06-09 20:45:57 -07:00
Barry Warsaw 9cf4bde5e6 Braces are required. (#280)
Closes #279
2017-06-01 19:04:40 -04:00
Oren Milman 1085515c33 add curly braces to a single-line if block example in PEP 7 (#225) 2017-03-14 10:35:27 -07:00
Benjamin Peterson 722ccda54a we need fixed width integer types 2016-09-07 16:22:00 -07:00
Benjamin Peterson 437903fa0f c++-style comments are kosher, too 2016-09-07 14:49:55 -07:00
Benjamin Peterson b6efe6e06f allow some c99 2016-09-07 10:55:49 -07:00
Marti Raudsepp 04a6af2ab1 Fix various typos, spelling and grammar errors
Errors detected using Topy (https://github.com/intgr/topy), all changes
verified by hand.
2016-07-11 18:35:35 +03:00
Brett Cannon 7c2c1021ef Update PEP 7 to strongly encourage curly braces with conditional
statements.
2016-01-20 19:19:42 -08:00
Brett Cannon 70cff256c5 Undo accidental part of a commit 2016-01-20 19:18:33 -08:00
Brett Cannon 5a91baba5d Minor clarification for PEP 512 2016-01-19 12:17:28 -08:00
Georg Brandl 3153cd2e37 Convert PEP 7 and PEP 8 to rst. 2012-03-15 08:18:38 +01:00
Benjamin Peterson a594304e82 we welcome all bracing styles 2012-01-02 19:08:51 -06:00
Georg Brandl 8def3e9cac Actually use 4-space indents in the PEP too. 2010-11-20 14:08:26 +00:00
Daniel Stutzbach 592702b5ea Updated PEP-0007 to refer to PyAPI_FUNC instead of DL_IMPORT, which
was deprecated in Python 2.3.
2010-09-02 14:57:18 +00:00
Antoine Pitrou bb0c95814a Update PEP 7. All C files should now use 4-space indents. 2010-05-09 18:28:43 +00:00
Georg Brandl df7739e894 Fix PEP urls. 2008-08-10 17:25:11 +00:00
Barry Warsaw ae4547d325 update some urls 2008-08-10 13:59:20 +00:00
Georg Brandl 233c85b67a Clarify indentation policy for old and new files. 2008-05-22 18:50:30 +00:00
Brett Cannon 9fe45a32c3 Make all meta-PEPs be Process PEPs. 2007-06-19 04:52:34 +00:00
Georg Brandl fa374a2c14 New C files in 2.x are using 4-space indents, too. 2006-05-26 10:12:32 +00:00
Guido van Rossum 85f11c2af4 Record that the Py3k C coding style will use 4 spaces, no tabs.
And record when it's okay to reformat a file to conform.
2006-04-24 18:52:08 +00:00
David Goodger c5b5d3c83d added Last-Modified headers to all PEPs without 2006-03-23 20:13:19 +00:00
Fred Drake 3951e91c08 Add information about writing docstrings in C code. 2002-06-20 18:56:11 +00:00
Barry Warsaw 3197c4a15c Add a reference to PEP 8 2001-07-05 18:53:01 +00:00
Guido van Rossum b43961fd5d Style Guide for C Code 2001-07-05 14:16:35 +00:00