Opened 5 years ago
Last modified 5 years ago
#60406 new defect
python27 @2.7.18_1 lacks select.poll in OS <10.9
Reported by: | fhgwright (Fred Wright) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | jmroot (Joshua Root) | |
Port: | python27 |
Description
Sample:
MacML:~ fw$ python -c 'import select; select.poll' Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute 'poll'
This worked in 2.7.17_0 in all OS versions. In 2.7.18_1, it only works in OS versions >=10.9.
Change History (2)
comment:1 Changed 5 years ago by jmroot (Joshua Root)
comment:2 Changed 5 years ago by fhgwright (Fred Wright)
Well, breaking something that used to work as part of a "minor" update is rather non-hippocratic.
Longer term, fixing poll() in legacy-support would probably make sense.
Note: See
TracTickets for help on using
tickets.
This is working as intended, as select is broken on these OS versions. This matches the python 3.x ports and the python that Apple ships with the OS. The documentations states that select.poll is not available on all platforms. I would recommend using the
selectors2
module from PyPI to automatically use the best implementation (it works the same as theselectors
standard library module in python 3.5+).