python Programming Glossary: smell
How to assign a variable in IF, and then return it. (Python) http://stackoverflow.com/questions/1550134/how-to-assign-a-variable-in-if-and-then-return-it-python or even wishing for the Holder trick non idiom is a design smell which suggests looking for a different and more Pythonic approach..
Test if a variable is a list or tuple http://stackoverflow.com/questions/2184955/test-if-a-variable-is-a-list-or-tuple It should be noted that too much type checking is a code smell that indicates that you might want to do some refactoring but..
How to add a timeout to a function in Python http://stackoverflow.com/questions/2196999/how-to-add-a-timeout-to-a-function-in-python to be subclassed at all. In general self.__foo is a code smell that should be accompanied by a comment along the lines of #..
Python: List to Dictionary http://stackoverflow.com/questions/4576115/python-list-to-dictionary will be with range and len which would normally be a code smell. b a i a i 1 for i in range 0 len a 2 So the iter izip method..
How can I evaluate variable to another variable before assigning? http://stackoverflow.com/questions/4590407/how-can-i-evaluate-variable-to-another-variable-before-assigning files f open '. ' f .read python variable assignment code smell evaluation share improve this question It looks like you're..
Serializing SQLAlchemy models for a REST API while respecting access control? http://stackoverflow.com/questions/5232461/serializing-sqlalchemy-models-for-a-rest-api-while-respecting-access-control While this is very explicit the request coupling is a code smell and I'm trying to see how to do this cleanly. One way I've thought..
Why is it “Easier to ask forgiveness than permission” in python, but not in Java? [closed] http://stackoverflow.com/questions/6092992/why-is-it-easier-to-ask-forgiveness-than-permission-in-python-but-not-in-java a dozen machine instructions. The Catching NPE is code smell scenario is a bit different. The problem there is that NPE's.. catch Exception. The second aspect of Catching NPE is code smell is that people typically resort to this because they are getting..
How to learn Python: Good Example Code? [closed] http://stackoverflow.com/questions/918/how-to-learn-python-good-example-code at least in my very limited exposure and it just doesn't smell right to me. So maybe this is more Enterprise Python that hobbyist..
|