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

In Python, What's The Best Way To Avoid Using The Same Name For A __init__ Argument And An Instance Variable?

Whats the best way to initialize instance variables in an init function. Is it poor style to use th… Read more In Python, What's The Best Way To Avoid Using The Same Name For A __init__ Argument And An Instance Variable?

Python Style Guide: Intermittent Variables

I was searching for a Python style guide in terms of 'intermittent variables' and readabili… Read more Python Style Guide: Intermittent Variables

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?

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?

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

Is It A Good Practice To Add Names To __all__ Using A Decorator?

Is this a good practice in Python (from Active State Recipes -- Public Decorator)? import sys def … Read more Is It A Good Practice To Add Names To __all__ Using A Decorator?