Over the last couple of years, I faced a Windows issue preventing me to delete directories or files with paths exceeding a certain size. Using the default Windows tools such as
Windows Explorer, resulted in errors
The directory name ... is too long or
The source file name(s) are larger than is supported by the file system.
Python exposes a number of built-in functions enriched with a plethora of modules composing The Python Standard Library. It is a pragmatic language that does not confine the developer in a specific programming paradigm. A Python developer can write imperative, procedural, object oriented or functional code. In Python, common functional constructs are available as built-in functions (e.g.
sum...). Additional higher-order functions are regrouped in the functools module (e.g.
partial...). Prior to crafting some Python code, let's take a detour in some potentially more arcane areas of functional programming, in particular surrounding the
On several occasions people have asked me which technical podcasts I have been listening to. This post gives me the opportunity to list my favorite technical podcasts without any order of preference.
This python recipe demonstrates how to use ShowHTMLDialog with Python, ctypes and comtypes on Windows.
The recipe described in this post demonstrates how to write foreground and background colored text in a Windows Command Line with Python and ctypes.
The previous Python Tip, XML Schema Validation with Python, MSXML and PyWin32, described how to use PyWin32 and MSXML to validate XML contents against an XML Schema. The adaptation to perform the same with
comtypes instead of
PyWin32 is a simple translation.
On Microsoft Windows one uses intensively Windows Explorer to access files on the system. Sometimes it is also necessary to open a command line in order to run commands that are not available via Windows Explorer. Wouldn't it be nice to open a command line in a folder from Windows Explorer? This article describes some of the options and provides complementary resources.