I’ve been searching documentation about build a Command Line Interpreter (CLI) from some time ago. My requirements were: I was needed a command history I was needed TAB auto-completion. … a easy framework. Against I could expect, I didn’t found a lot of information on Internet about this aim. So after some time searching documentation […]
Month: October 2010
Defining function args as list of arguments for Python
Python offers a way to define functions args as a tuple. The syntax is similar to C language, we’ll use *args to refer the tuple of arguments which are used in the function invocation. def test_args(*args): for arg in args: print “another arg:”, arg test_args(1, “two”, 3) Results: another arg: 1 another arg: two another […]
Photoblogeando
Recientemente, he tenido la suerte de toparme con un photoblog bastante curradillo del cual he extraido la cabecera actual de este blog. Dejo aquí el enlace: http://fotoblog.librodeapuntes.es
San Xurxo, the great lonely beach
This is a well known beach by the Ferrol people. It is a very beautiful place, with a lot of pretty views. This place has some kind of magic … nature, the brave sea, waves, bad weather in autum … all of these things give to this beach his intense coctel … of life. But […]
The best documentation in the blackboard, … always
This diagram is chairing my work office. It has been drawn in a little blackboard so that it is easilly visible for all members of the team. Many times, look up it is more useful than a big effort of our mind. The diagram show the different tables that IPTables is composited, the […]
Is not the same …
Usually, we don’t note little, but relevant, differents in the code that we are reviewing. For example, the two next classes, apparently, are equivalents: class A: l = [] __init__(self): … class B: def __init__(self): self.l = [] … But, really, this two classes are differ in their behavior: >>> a = A() >>> […]