First off, I’m new to Software Engineering SE, so I’m sorry if my question doesn’t fit the guidelines. I read the help pages and also tried to make sure this question wasn’t a duplicate, but if it is, please tell me so.
I’m writing a high level wrapper around the Python
socket.socket object. Specifically, I want to do this for IPv4 TCP sockets (though it would be useful to be able to expand the library later with other families / types). As you may know, the socket module defines these as
socket.SOCK_STREAM. Is it a good idea to ‘copy’ these constants and make them constant class attributes, i.e.:
import socket class IPv4TCPSocket(socket): FAMILY = socket.AF_INET TYPE = socket.SOCK_STREAM def __init__(self): ...
Or should I refer to them directly? I get this may seem like a weird question since they’re already constants in the
socket module, but referring to them by
<libname>.socket.AF_INET may be a bit awkward. Any thoughts on this?
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
99,9% servers uptime
No usage restrictions
Perfect for SEO
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!