Skip to content

Overload function in all subfunctions in scope

Let’s say that I want to overload a standard function with a customized version, I can simply write original_function_name = customized_function For example I can do: However this override is only valid inside fun1. If I do the custom print function is not passed (clearly) to fun2 which uses the standar…

print gives different output

I’m trying to make a 12×12 binary-puzzle game in python. There’s no GUI in the game, just the shell. To get the values of the tiles, I made an import function which imports values from an excel-document using xlrd. Now I’m making a function to print out the board, but something’s …