Our great sponsors
- InfluxDB - Access the most powerful time series database as a service
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- Sonar - Write Clean Python Code. Always.
- CodiumAI - TestGPT | Generating meaningful tests for busy devs
-
Generally yes, but I'd add a couple of blank lines to separate the code into "visual blocks". Two blank lines each before and after the function block of cease. One blank line each before if direction == "encode": and elif direction == "decode":. Tools like autopep8 or black can help you automate some of that.
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- I have some legacy code which has been ported to Python 3 recently, but is still quite ugly. What are recommended points for coding style to improve it and make it more modern/pleasant in style?
- autopep8 or styler equivalent in Julia
- PEP8 and long if and/or statements
- J’ai créé un générateur de mdp pour ceux que ça intéresse !
- Improve your Django Code with pre-commit