Skip to content Skip to sidebar Skip to footer
Showing posts with the label Coding Style

Style, Formatting The Slice Operator

PEP 8 doesn't mention the slice operator. From my understanding, unlike other operators, it sho… Read more Style, Formatting The Slice Operator

Correct Style For Element-wise Operations On Lists Without Numpy (python)

I would like to operate on lists element by element without using numpy, for example, i want add([1… Read more Correct Style For Element-wise Operations On Lists Without Numpy (python)

Using The Name "function" For A Variable In Python Code

Is using the word function for the name of an argument considered bad style in Python code? def con… Read more Using The Name "function" For A Variable In Python Code

Accessing "module Scope" Vars

I'm currently learning Python, and I have to work on a Python 2.7 project. Accessing 'modul… Read more Accessing "module Scope" Vars

Long Imports In Python

I sometimes have to write something like from blqblq.lqlqlqlq.bla import fobarbazbarbarbazar as fo… Read more Long Imports In Python

Where Are Detailed The Rules, Concepts And Usages Behind Each Pylint's Warnings?

I am still discovering Pylint and I understand why many Pythonists deactivate some (or many) warnin… Read more Where Are Detailed The Rules, Concepts And Usages Behind Each Pylint's Warnings?

What's The Preferred Way To Include Unicode In Python Source Files?

When using unicode strings in source code, there seems to be many ways to skin a cat. The docs and… Read more What's The Preferred Way To Include Unicode In Python Source Files?

Where Are Detailed The Rules, Concepts And Usages Behind Each Pylint's Warnings?

I am still discovering Pylint and I understand why many Pythonists deactivate some (or many) warnin… Read more Where Are Detailed The Rules, Concepts And Usages Behind Each Pylint's Warnings?