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

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?

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?

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

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

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)

Pythonic Way To Implement A Tokenizer

I'm going to implement a tokenizer in Python and I was wondering if you could offer some style … Read more Pythonic Way To Implement A Tokenizer