[PATCH 1 of 3] getch() -- to read one keystroke from console

Bryan O'Sullivan bos at serpentine.com
Wed Dec 26 05:05:50 UTC 2007


> +# getch, taken from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892
> +class _Getch:

This code is horribly overcomplicated.  Please follow the coding style
in the util and util_win32 modules, add the code there, use the normal
demandimport machinery, and keep it simple instead of introducing those
classes.

Thanks,

	<b



More information about the Mercurial-devel mailing list