[issue45285] c_char incorrectly treated as bytes in Structure

2021-09-25 Thread CireSnave
CireSnave added the comment: Wow. Thank you Eryk Sun. While that seems like a convoluted way to make a type act like the type it is...it works. Verified it with the following code: from ctypes import POINTER, c_char, sizeof, Structure class char_from_c(c_char): pass print("Si

[issue45285] c_char incorrectly treated as bytes in Structure

2021-09-24 Thread CireSnave
New submission from CireSnave : When dealing with a Structure containing c_char variables, the variables are incorrectly being typed as bytes. As a result, a pointer to those c_char variables can not be created because bytes is not a ctypes type. from ctypes import ( Structure

[issue45252] Missing support for Source Specific Multicast

2021-09-20 Thread CireSnave
New submission from CireSnave : It appears that Python's socket module is missing support for the IGMPv3 socket options needed to support Source Specific Multicast. Many developers appear to be adding the necessary constants through something like: if not hasattr(socket, "IP_UNBL