Skip to content

Instantly share code, notes, and snippets.

@abiodun0
Created October 26, 2016 12:49
Show Gist options
  • Save abiodun0/66ebfd9df897814222d32e6f207af443 to your computer and use it in GitHub Desktop.
Save abiodun0/66ebfd9df897814222d32e6f207af443 to your computer and use it in GitHub Desktop.
set attribut with socket.io
import socket
setattr(socket._socketobject, 'x', 'someting')
socket = socket.socket()
print socket.x
print(type(socket))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment