Commits

Denis Bilenko  committed 632f519

subprocess: add __repr__ to Popen

  • Participants
  • Parent commits 24e69d3

Comments (0)

Files changed (1)

File gevent/subprocess.py

             else:
                 self.stderr = FileObject(errread, 'rb')
 
+    def __repr__(self):
+        return '<%s at 0x%x pid=%r returncode=%r>' % (self.__class__.__name__, id(self), self.pid, self.returncode)
+
     def _on_child(self, watcher):
         watcher.stop()
         self._handle_exitstatus(watcher.rstatus)