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

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

Resolving How To Give An Attribute In A Class In Python

I have the following class: class Point(object): __slots__= ('x','y','z'… Read more Resolving How To Give An Attribute In A Class In Python

Tool To Enforce Python Code Style/standards

I'm trying to find a tool to check for coding style in python. For PHP I've seen there is t… Read more Tool To Enforce Python Code Style/standards

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?

Pythonic Alternative To Dict-style Setter?

People tend to consider getters and setters un-Pythonic, prefering to use @property instead. I'… Read more Pythonic Alternative To Dict-style Setter?

Are There Any 'gotchas' With This Python Pattern?

Here's the pattern I'm thinking of using: class Dicty(dict): def __init__(self): … Read more Are There Any 'gotchas' With This Python Pattern?

How To Cleanly Keep Below 80-char Width With Long Strings?

I'm attempting to keep my code to 80 chars or less nowadays as I think it looks more aesthetica… Read more How To Cleanly Keep Below 80-char Width With Long Strings?

How Do I Avoid Users Of My Code Having To Type Redundant Import Lines?

So I have a project called 'Pants' that lives on GitHub.com. Originally the project was a … Read more How Do I Avoid Users Of My Code Having To Type Redundant Import Lines?