giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.08k stars 1.37k forks source link

Rename Process.connections() to Process.net_connections() #2407

Closed giampaolo closed 2 months ago

giampaolo commented 2 months ago

Why: in order to be consistent with psutil.net_connections(). psutil.Process.connections() was wrongly named, it should have kept the net_ prefix.

The old method name will be left in place and work as an alias for the new name. At the same time it will also raise a DeprecationWarning.