Guys I've been reading on PEP 8 and I see that one should use it especially to make sure that programs are standard. Please can anybody help as to how i can install it with my python 3.2 and how to use. Thanks in advance.
e-papa
13
Posting Pro in Training
Recommended Answers
Jump to PostGo to:
http://pypi.python.org/pypi/pep8/0.4#downloads
download:
pep8-0.4.tar.gz
extract contents into a temp folder using WinRAR.exe or alike
find file pep8.py and copy it to a folder with your code…
Jump to PostAlso you can do above process for http://pypi.python.org/packages/source/d/distribute/distribute-0.6.15.tar.gz#md5=ea52e1412e7ff560c290266ed400e216
run the distribute_setup.py with python32, after you can run easy_install:
C:\Python32>Scripts\easy_install.exe pep8 Creating c:\python32\lib\site-packages\site.py Searching for pep8 Reading http://pypi.python.org/simple/pep8/ …
Jump to PostNo you must enter the command line (CMD in windows, xterm etc. in Linux), cd to your source code directory containing also pep8.py, then you must run the script from there:
K:\test3>c:\python32\python pep8.py --show-pep8 --show-source my_program.py
All 9 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
e-papa
commented:
Thanks a million.
+1
e-papa
13
Posting Pro in Training
TrustyTony
888
pyMod
Team Colleague
Featured Poster
e-papa
13
Posting Pro in Training
e-papa
13
Posting Pro in Training
e-papa
13
Posting Pro in Training
TrustyTony
888
pyMod
Team Colleague
Featured Poster
e-papa
commented:
Another great one.
+1
e-papa
13
Posting Pro in Training
e-papa
13
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.