Suche senden
Hochladen
PEP8 and-autopep8 - PyCon APAC 2013 LT
•
1 gefällt mir
•
1,264 views
Hattori Hideo
Folgen
Technologie
Melden
Teilen
Melden
Teilen
1 von 14
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
osakapy 2014.10 LT (CI for Python Project)
osakapy 2014.10 LT (CI for Python Project)
Hattori Hideo
image-matchの紹介
image-matchの紹介
Hattori Hideo
Php kansai-2013 lt-slide
Php kansai-2013 lt-slide
Hattori Hideo
Osakapy 20140313 lt
Osakapy 20140313 lt
Hattori Hideo
osakapy 2014.05 LT
osakapy 2014.05 LT
Hattori Hideo
Asynchronous programming in Python
Asynchronous programming in Python
Aurynn Shaw
Go破壊
Go破壊
Hattori Hideo
The state of PyPy
The state of PyPy
m_r_e
Empfohlen
osakapy 2014.10 LT (CI for Python Project)
osakapy 2014.10 LT (CI for Python Project)
Hattori Hideo
image-matchの紹介
image-matchの紹介
Hattori Hideo
Php kansai-2013 lt-slide
Php kansai-2013 lt-slide
Hattori Hideo
Osakapy 20140313 lt
Osakapy 20140313 lt
Hattori Hideo
osakapy 2014.05 LT
osakapy 2014.05 LT
Hattori Hideo
Asynchronous programming in Python
Asynchronous programming in Python
Aurynn Shaw
Go破壊
Go破壊
Hattori Hideo
The state of PyPy
The state of PyPy
m_r_e
Rina sim workshop
Rina sim workshop
ICT PRISTINE
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
dwvisser
2016/10/28: Reset ETSII UPM
2016/10/28: Reset ETSII UPM
JesusArroyoTorrens
Monitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntop
PyCon Italia
Python in real world.
Python in real world.
Alph@.M
Writing Fast Code - PyCon HK 2015
Writing Fast Code - PyCon HK 2015
Younggun Kim
Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015
Younggun Kim
Understanding Technologies - Presentation for College Students
Understanding Technologies - Presentation for College Students
Ketan Raval
PHPer100人にPythonを教えてみた
PHPer100人にPythonを教えてみた
kwatch
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Fred Moyer
Picamera, Flask and the Twitter API Raspberry Pi workshop
Picamera, Flask and the Twitter API Raspberry Pi workshop
bennuttall
Python x Django
Python x Django
Shin Tokiwa
ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
Ahmed Gad
TPOT: The data science assistant
TPOT: The data science assistant
Hoffman Lab
Plugin for CakePHP2.0
Plugin for CakePHP2.0
Takashi Nojima
Samsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of Python
Insuk (Chris) Cho
Python coding standards
Python coding standards
Sharad Singla
Telegram bots with python why not- v1.0
Telegram bots with python why not- v1.0
Carlos Martins
Python tutorial
Python tutorial
Guru99
Python Crash Course
Python Crash Course
Haim Michael
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
sudhanshuwaghmare1
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
Weitere ähnliche Inhalte
Ähnlich wie PEP8 and-autopep8 - PyCon APAC 2013 LT
Rina sim workshop
Rina sim workshop
ICT PRISTINE
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
dwvisser
2016/10/28: Reset ETSII UPM
2016/10/28: Reset ETSII UPM
JesusArroyoTorrens
Monitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntop
PyCon Italia
Python in real world.
Python in real world.
Alph@.M
Writing Fast Code - PyCon HK 2015
Writing Fast Code - PyCon HK 2015
Younggun Kim
Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015
Younggun Kim
Understanding Technologies - Presentation for College Students
Understanding Technologies - Presentation for College Students
Ketan Raval
PHPer100人にPythonを教えてみた
PHPer100人にPythonを教えてみた
kwatch
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Fred Moyer
Picamera, Flask and the Twitter API Raspberry Pi workshop
Picamera, Flask and the Twitter API Raspberry Pi workshop
bennuttall
Python x Django
Python x Django
Shin Tokiwa
ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
Ahmed Gad
TPOT: The data science assistant
TPOT: The data science assistant
Hoffman Lab
Plugin for CakePHP2.0
Plugin for CakePHP2.0
Takashi Nojima
Samsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of Python
Insuk (Chris) Cho
Python coding standards
Python coding standards
Sharad Singla
Telegram bots with python why not- v1.0
Telegram bots with python why not- v1.0
Carlos Martins
Python tutorial
Python tutorial
Guru99
Python Crash Course
Python Crash Course
Haim Michael
Ähnlich wie PEP8 and-autopep8 - PyCon APAC 2013 LT
(20)
Rina sim workshop
Rina sim workshop
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
2016/10/28: Reset ETSII UPM
2016/10/28: Reset ETSII UPM
Monitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntop
Python in real world.
Python in real world.
Writing Fast Code - PyCon HK 2015
Writing Fast Code - PyCon HK 2015
Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015
Understanding Technologies - Presentation for College Students
Understanding Technologies - Presentation for College Students
PHPer100人にPythonを教えてみた
PHPer100人にPythonを教えてみた
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Picamera, Flask and the Twitter API Raspberry Pi workshop
Picamera, Flask and the Twitter API Raspberry Pi workshop
Python x Django
Python x Django
ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
TPOT: The data science assistant
TPOT: The data science assistant
Plugin for CakePHP2.0
Plugin for CakePHP2.0
Samsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of Python
Python coding standards
Python coding standards
Telegram bots with python why not- v1.0
Telegram bots with python why not- v1.0
Python tutorial
Python tutorial
Python Crash Course
Python Crash Course
Kürzlich hochgeladen
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
sudhanshuwaghmare1
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
hans926745
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Andrey Devyatkin
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Antenna Manufacturer Coco
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Kürzlich hochgeladen
(20)
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
PEP8 and-autopep8 - PyCon APAC 2013 LT
1.
PEP 8 and autopep8 PyCon APAC 2013 LT / 2013.09.15 Hideo Hattori
2.
whoami C/Python/Zsh My Python Projects ,
, , ... code on , @hhatto pgmagick otamapy genzshcomp meow Github Bitbucket
3.
PEP 8 coding conventions for
the Python code Nc”úùk1 ÕúßÕc v ”c v göpvz̈v©–− 2013.08.01•ò&©¤ http://www.python.org/dev/peps/pep- 0008/
4.
PEP 8 modernisation 1 m¤ß”5ðcv •9¡−l¡ ׳•9¡−l¡ Python1.5.2•9¡−l¡w£Œ©–¤ß Python2/3•9¡−l¡wûl©¤ß http://hg.python.org/peps/rev/fb24c80e9afb
5.
About autopep8 simple command-line tool automatic
formatting for Python Code require v0.9.4 (2013.09.08) pep8 $ pip install autopep8
6.
For Example invalid PEP 8
code import sys, os n = True if n != None: print("none") def f(x): return 2 * x
7.
Output Auto-Formatting Code $ autopep8 invalid.py import
sys import os n = True if n != None: print("none") def f(x): return 2 * x
8.
Aggressive $ autopep8 -a
invalid.py import sys import os n = True if n is not None: print("none") def f(x): return 2 * x
9.
Print Diff $ autopep8 -d
invalid.py --- original/invalid.py +++ fixed/invalid.py @@ -1,7 +1,10 @@ -import sys, os +import sys +import os n = True if n != None: print("none") -def f(x): return 2 * x + +def f(x): + return 2 * x
10.
Other Feature ignore/select errors max-line recursive/jobs
11.
ofiØ#”O •PEP 8³
12.
⁄¿autopep8³³›–Æ–z“o
13.
https://github.com/hhatto/autopep8
14.
Thank you
Jetzt herunterladen