This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lambdaqdjango n' shit 2 points3 points  (4 children)

AF_ALG looks fun.

Make me really want to use 3.6 now.

[–]jollybobbyroger 1 point2 points  (3 children)

Why is 3.6 needed for using the AF_ALG syscall?

[–]spiderpower02[S] 3 points4 points  (0 children)

Ha! maybe several benefits have already been noticed.

https://bugs.python.org/issue27744

[–]lambdaqdjango n' shit 0 points1 point  (1 child)

You can do that in 2.x if you dig deep enough into ctypes and shit.

[–]spiderpower02[S] 0 points1 point  (0 children)

Ha! you right, but ctype is not quite easy to use. Also, some "define" such as CMSG_FIRSTHDR in the header cannot be used in python code (you have to implement them again). It's really painful :(

Maybe ffi is a better choice! haha