Rodger FrancisDifferent ways on concatenating strings in pythonPython is a really versatile language and thus gives programmers multiple ways to perform certain task I am going to cover the different…Feb 11Feb 11
Rodger FrancisHow to import a module in python without using the import keywordPython has a reasonably straightforward way to work with custom modules by using the builtin statement. However there is a caveat when the…Jan 18, 2023Jan 18, 2023
Rodger FrancisUsing the inspect module to get the source of a functionMany times when I playing around with the python interpreter, I import a library and explore the functions. I wonder about the…Oct 2, 2022Oct 2, 2022
Rodger FrancisUsing the monkey patch pattern in pythonI will be demonstrating the monkey patch design pattern in python by adding a function to the math module at runtime, I wouldn’t recommend…Sep 18, 2022Sep 18, 2022
Rodger FrancisUsing the code and traceback modules to debug python scriptsNumerous times when dealing with errors in small scripts and projects I would spend way too long on finding the bug and then after fixing…Sep 11, 2022Sep 11, 2022