Python Forum
Working socket() program...isn't
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working socket() program...isn't
#3
(Nov-01-2019, 06:32 AM)Gribouillis Wrote: Can you log the output of dir(socket.socket()) ?

Quote:Python 3.6.6 (default, Aug 13 2018, 18:24:23)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> dir(socket.socket())
['__class__', '__del__', '__delattr__', '__dir__', '__doc__', '__enter__', '__eq__', '__exit__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '__weakref__', '_accept', '_check_sendfile_params', '_closed', '_decref_socketios', '_io_refs', '_real_close', '_sendfile_use_send', '_sendfile_use_sendfile', 'accept', 'bind', 'close', 'connect', 'connect_ex', 'detach', 'dup', 'family', 'fileno', 'get_inheritable', 'getpeername', 'getsockname', 'getsockopt', 'gettimeout', 'listen', 'makefile', 'proto', 'recv', 'recv_into', 'recvfrom', 'recvfrom_into', 'recvmsg', 'recvmsg_into', 'send', 'sendall', 'sendfile', 'sendmsg', 'sendmsg_afalg', 'sendto', 'set_inheritable', 'setblocking', 'setsockopt', 'settimeout', 'shutdown', 'timeout', 'type']
>>>

I know it has to do with context management, of which I understand the theory, and a lot of my searches for the error mention this. But what's really confounding is that this worked before and I haven't knowingly changed anything.

Thanks for looking.
Reply


Messages In This Thread
Working socket() program...isn't - by ptrivino - Nov-01-2019, 01:50 AM
RE: Working socket() program...isn't - by ptrivino - Nov-01-2019, 05:07 PM
RE: Working socket() program...isn't - by ptrivino - Nov-01-2019, 06:54 PM
RE: Working socket() program...isn't - by nilamo - Nov-01-2019, 07:14 PM
RE: Working socket() program...isn't - by ptrivino - Nov-01-2019, 07:51 PM
RE: Working socket() program...isn't - by nilamo - Nov-01-2019, 08:58 PM
RE: Working socket() program...isn't - by ptrivino - Nov-01-2019, 10:35 PM
RE: Working socket() program...isn't - by ptrivino - Nov-02-2019, 12:25 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020