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?

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

Python: Is There Syntax-level Support For Unpacking, From Tuples, The Arguments To An *anonymous* Function?

Suppose we have the following: args = (4,7,5) def foo(a,b,c): return a*b%c Python conveniently all… Read more Python: Is There Syntax-level Support For Unpacking, From Tuples, The Arguments To An *anonymous* Function?

Implement A Script In A Function. Some Suggestions?

first of all, i am quite new in Python (an programming area) but i wish to learn and convert a func… Read more Implement A Script In A Function. Some Suggestions?

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

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?