[Python-checkins] [python/cpython] 62c7d9: #30014: refactor poll-related classes (#1035)

GitHub noreply at github.com
Sat May 20 05:34:45 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 62c7d90b6446288be1a7906581befe3c211fad5f
      https://github.com/python/cpython/commit/62c7d90b6446288be1a7906581befe3c211fad5f
  Author: Giampaolo Rodola <g.rodola at gmail.com>
  Date:   2017-05-20 (Sat, 20 May 2017)

  Changed paths:
    M Lib/selectors.py

  Log Message:
  -----------
  #30014: refactor poll-related classes (#1035)

* #30014: refactor poll-related classes so that poll(), epoll() and devpoll() share the same methods for register(), unregister(), close() and select()

* remove unused attribute

* use specific class attributes instead of select.* constants

* have all classes except SelectSelector a _selector attribute

* BaseException -> Exception

* be explicit in defining a close() method only for selectors which have it

* fix AttributeError




More information about the Python-checkins mailing list