Because that would require duplicating the logic in create_datagram_endpoint(), which is totally separate (all the way down to the I/O callbacks).
Feel free to add a feature request to the tracker for this though. Be sure to indicate an actual use case (rather than just abstract interest). E.g. do you expect to need this in OpenStack? How? On Wed, Feb 19, 2014 at 4:22 AM, Victor Stinner <[email protected]>wrote: > Hi, > > I see that new methods were added to support the AF_UNIX family. The > socket type is hardcoded to SOCK_STREAM. It looks like AF_UNIX can be > used with SOCK_DGRAM. > > http://stackoverflow.com/questions/18711996/using-abstract-sockets-with-af-unix-sock-dgram > > Why not adding an option to make the user choose the socket type? > > Victor > -- --Guido van Rossum (python.org/~guido)
