C. · @cazabon
166 followers · 4009 posts · Server mindly.social

@arfs6

PEP-8 still says 79 chars IIRC, but at this point that's honoured more in the breach than the observance.

With modern screens and editors, >80 isn't really a problem for most. Black defaults to 88; I happen to like 96. A company I work for has standardized on 120, which IMHO is too wide.

Pick something you like, configure black/your editor/etc to observe it, and be consistent, and you'll be fine.

#pep8 #linewidth #width #wide #chars #code #black

Last updated 1 year ago

Josep Ferrer · @rfeers
0 followers · 8 posts · Server me.dm

#5. Rewriting code using some style

can improve code maintainability by providing refactored code following coding conventions. like .

- Example: Asking to rewrite a piece of code folling the Pep-8 standard.

#chatgpt #pep8

Last updated 2 years ago

Linh Pham · @qlp
254 followers · 369 posts · Server linh.social

A number of the things discussed in the film can also be found in 's

#python #pep8

Last updated 2 years ago

Neil :emacs: :orgmode: · @nshephard
25 followers · 120 posts · Server fosstodon.org

Oooh, my cognitive/learnt bias towards snake-case seems at odds with CamelCase being the preferred style for on (/via @rudolf pointer to axbom.com/mastodon-tips/).

I tend to reserve CamelCase for class names in Python and it seems when typing them suggested hashtags are all lower-case.

Should one therefore use or ?

#hashtags #mastodon #pep8 #snake_case #camelcase

Last updated 2 years ago

🎐ブログ更新|Blog Post🎐
今回は、Python のコーディングスタイルに関する記事になります。
Python のスタイルガイドが記載されている PEP 8 の内容の中から、初心者の方でもすぐに取り入れやすい部分を抜粋して紹介しています。
This article is about Python coding style.
It introduces excerpts from the contents of PEP 8, which contains a Python style guide, that are easy for beginners to adopt immediately.

wataichi-nikki.com/python-codi

#blog #programming #pep8 #coding #python

Last updated 2 years ago

"🎵 The 8 Song 🎵"
🎤 youtube.com/watch?v=hgI0p1zf31
📄 pep8.org/
« You don't need any curly braces
just four spaces
just four spaces

Wildcard imports should be avoided
in most cases
in most cases

Try to make sure there's no trailing whitespace
it's confusing
it's confusing

Trailing commas go behind list items
git blame tightens
git blame tightens

And comments are important
as long as they're maintained
when comments are misleading it will drive people insane
[…] »

#pep8 #python #pep

Last updated 4 years ago