Re: Python packages hardcoding errno values

2010-08-04 Thread Petr Salinger
Hi. only symbolic names should be used in programs because hurd-i386 is the only platform on which these kinds of bugs can manifest themselves in practice. There are differences also between Linux and FreeBSD and even between CPUs on Linux, i.e. i386/hppa. They have common only range 1-34, w

Python packages hardcoding errno values

2010-08-03 Thread Jakub Wilk
There are ca 70 packages in the archive that does things like: try: eggs() except OSError, e: if e.errno == 17: ham() This is wrong, because according to POSIX[0], “only […] symbolic names should be used in programs, since the actual value of the error number is unspec