TypeError argument must be an int or have a fileno() method

前端 未结 1 929
再見小時候
再見小時候 2021-01-19 14:09

Seen here https://stackoverflow.com/search?q=TypeError+argument+must+be+an+int+or+have+a+fileno%28%29+method

But just can\'t quite find my answer. I am trying out a c

相关标签:
1条回答
  • 2021-01-19 14:48

    select doesn't work with non-socket objects on Windows. For more information see the documentation about select.select, where it mentions that:

    File objects on Windows are not acceptable, but sockets are. On Windows, the underlying select() function is provided by the WinSock library, and does not handle file descriptors that don’t originate from WinSock.

    0 讨论(0)
提交回复
热议问题