Popular recipes by Alexander Belchenko http://code.activestate.com/recipes/users/2623877/2007-06-05T08:09:47-07:00ActiveState Code RecipesComparing version info (Python) 2007-06-05T08:09:47-07:00Alexander Belchenkohttp://code.activestate.com/recipes/users/2623877/http://code.activestate.com/recipes/521888-comparing-version-info/ <p style="color: grey"> Python recipe 521888 by <a href="/recipes/users/2623877/">Alexander Belchenko</a> . </p> <p>This module provide useful class for manipulating with version info in the form: major.minor.release.build</p> <p>Main operations is comparing between different versions. Also it could be useful for pretty formatting of version numbers, or to use as container for version info.</p> <p>Loaded with examples (they actually are doctests for this module).</p> Determine size of console window on Windows (Python) 2006-04-29T20:26:33-07:00Alexander Belchenkohttp://code.activestate.com/recipes/users/2623877/http://code.activestate.com/recipes/440694-determine-size-of-console-window-on-windows/ <p style="color: grey"> Python recipe 440694 by <a href="/recipes/users/2623877/">Alexander Belchenko</a> (<a href="/recipes/tags/ui/">ui</a>). Revision 3. </p> <p>This recipe is Python implementation of few lines of C-code that get useful information about current working console on Windows. It may be useful for console application to proper formatting output. Recipe need ctypes package to be installed.</p> <p>This is the second version of recipe. When use handle of stdout for determining size of console and connect output of program via pipe to another program (e.g. pager 'more') then you get default 80x25 size. In case of using handle of stderr for this purpose then pipe don't destroy actual size.</p>