Closed GoogleCodeExporter closed 8 years ago
Fixed in r1137.
Original comment by g.rodola
on 23 Sep 2011 at 3:05
The main reason we overrode the __eq__ wasn't for is_running, it was so that
we had the ability to compare Process objects directly. i.e. a user could do
something like this:
pid1 = read_pid_from_file("foo")
pid2 = read_pid_from_file("bar")
p1 = psutil.Process(pid1)
p2 = psutil.Process(pid2)
if p1 == p2:
# do something
It's not a huge loss of functionality, but that was why we originally did it
that way. is_running was just implemented the way it was because we had just
finished implementing the __eq__ method and it seemed logical to make use of
it.
Original comment by jlo...@gmail.com
on 23 Sep 2011 at 3:27
Original comment by g.rodola
on 21 Oct 2011 at 11:44
Original comment by g.rodola
on 21 Oct 2011 at 11:45
Original comment by g.rodola
on 29 Oct 2011 at 3:44
[deleted comment]
Updated csets after the SVN -> Mercurial migration:
r1137 == revision dc6fa35bf17d
Original comment by g.rodola
on 2 Mar 2013 at 12:03
Original issue reported on code.google.com by
g.rodola
on 23 Sep 2011 at 2:37