[New-bugs-announce] [issue5333] os.kill() inconsistency

Giampaolo Rodola' report at bugs.python.org
Fri Feb 20 22:51:51 CET 2009


New submission from Giampaolo Rodola' <billiejoex at users.sourceforge.net>:

On Linux Ubuntu equipped with Python 2.6.1 I get this:

>>> os.kill(99999, 0)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OSError: [Errno 3] No such process
>>> print os.kill(-1, 0)
None
>>>


IMHO the latter case should raise "No such process" for consistency or,
at least ValueError, but surely not returning None.

----------
messages: 82549
nosy: giampaolo.rodola
severity: normal
status: open
title: os.kill() inconsistency
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5333>
_______________________________________


More information about the New-bugs-announce mailing list