pep8
How to make Vim error list permanent using PyFlakes?
I want to use pep8 as my makeprg in order to check and fix my code compliance to PEP8 (Style guide for python code).[详细]
2023-02-07 04:13 分类:问答Strange PEP8 recommendation on comparing Boolean values to True or False
At the end of Python PEP 8 I\'m reading: Don\'t compare Boolean values to True or False using == Yes:if greeting:[详细]
2023-01-22 18:05 分类:问答Using shorter textwidth in comments and docstrings
From the mighty PEP 8: [P]lease limit all lines to a maximum of 79 characters.For flowing long blocks of text (docstrings or comments), limiting the开发者_运维知识库 length to 72 characters is recom[详细]
2023-01-22 06:29 分类:问答Is it bad that I don't follow PEP 8 and cut my lines at 79 characters?
I think every Python code has seen PEP 8. The part that sticks out to me is: Limit all lines to a maximum of 79 characters.[详细]
2023-01-21 01:13 分类:问答Current Status of PEP 8 Rules?
Are all开发者_StackOverflow PEP 8 rules still valid? Are there any which are obsolete? Isn\'t there a more explanatory cheat sheet that this one.Here is the current version of PEP 8. It was last upd[详细]
2023-01-20 03:23 分类:问答PEP8 and PyQt, how to reconcile function capitalization?
I\'m starting to use PyQt in some projects and I\'m running into a stylistic dilemma.PyQt\'s functions use camel case, but PEP8, which I prefer to follow, says to use underscores and all lowercase for[详细]
2023-01-14 18:07 分类:问答How should I write very long lines of code?
if i have a very long line of a code, is it 开发者_如何学Cpossible to continue it on the next line for example:[详细]
2023-01-10 06:46 分类:问答Configuring pep8 in Textmate
Textmate has a Python PEP8 bundle that will run pep8 validation on your file.How开发者_运维百科 can I set it to do the equivalent of pep8 --ignore=E501 my_file.py?The author of the pep8 bundle has add[详细]
2023-01-06 12:02 分类:问答"assert" statement with or without parentheses
Here are four simple invocations of assert: >>> assert 1==2 Traceback (most 开发者_如何学编程recent call last):[详细]
2023-01-04 11:40 分类:问答Python PEP8: Blank lines convention
I am interested in knowing what is the Python convention for newlines between the program parts? For example, consider this:[详细]
2023-01-01 15:42 分类:问答
加载中,请稍侯......