Thanks Mark, that does help, but what is this errno module? I mean, does it apply to OSError or to IOError or both?
On 5 Jul 2006 14:44:28 -0700, Mark Peters <[EMAIL PROTECTED]> wrote: > > I did find this but it doesn't have numbers and I can't tell if it's > > even what I'm looking for: > > http://docs.python.org/lib/module-errno.html > > Error number picked at random: > > >>> import errno > >>> print errno.errorcode.keys() > [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, > 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 36, 38, 39, 40, 41, 42, > 10000, 10004, 10009, 10013, 10014, 10022, 10024, 10035, 10036, 10037, > 10038, 10039, 10040, 10041, 10042, 10043, 10044, 10045, 10046, 10047, > 10048, 10049, 10050, 10051, 10052, 10053, 10054, 10055, 10056, 10057, > 10058, 10059, 10060, 10061, 10062, 10063, 10064, 10065, 10066, 10067, > 10068, 10069, 10070, 10071, 10091, 10092, 10093, 10101] > >>> print errno.errorcode[10] > ECHILD > > or > > >>> import os > >>> print os.strerror(10) > No child processes > > Hope this helps, > Mark Peters > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Gregory Piñero Chief Innovation Officer Blended Technologies (www.blendedtechnologies.com) -- http://mail.python.org/mailman/listinfo/python-list