Python on OS X Leopard lacks select.poll()

I was trying to get phpsh working the other day, and it kept dying with

Traceback (most recent call last):
 File "./phpsh", line 329, in <module>
   select.poll().register(p.stderr)
AttributeError: 'module' object has no attribute 'poll'

As it turns out, Python as shipped with Mac OS X Leopard was compiled without select.poll(). I have no idea why, but it’s most irritating. It’s also perhaps the only good reason to use something like MacPorts, which I have complained about before.

I’ve reported the bug to Apple as #6444485.

2008/12/14

Discussion

Apple always seems to screw something up with interpreters in every release. Ruby, Python, blah. Use macports — works just fine.

mrkris
2008/12/14

Participate