Arruda

Um Blog Sobre Tecnologia, Informação, Literatura e Coisas da Vida

#import Articles


Python - Relative Imports and Headaches

Just got my hands on the great book "Two Scoops of Django - Best Pratices for Django 1.6" and decided to put in pratice one of their advises: The Relative Imports. :${IMAGE_TAG} Whooo Relatives Imports, that's great! Yep, pretty neat stuff. If you always is afraid of obscuring a absolute …

Python: Use Warnings!

Have you ever confronted a code like this: ``` {lang="python"} shouldn't use this function anymore! Now use XYZ! def some_old_function(arg1,arg2): return arg1 + arg2 This is something that I see too often, and this could be done better. :${IMAGE_TAG} Warnings -------- There is something in python called **warnings**, and guess …