Is there an equivalent in C to python () set?

Im looking for some equivalent in C type variable python set () have any ideas? here is the python docs document about http://docs.python.org/2/library/sets.html

and could you explain to me / help me help? you are welcome

+4
source share
1 answer

No no. The Python data type relies on many things related to Python objects that the lower-level data that is usually handled in C simply does not.

As an opportunity for reliable comparison of two "objects", regardless of their type or internal structure.

The more you know about your data, the easier it will be to collapse your own, of course.

I would recommend you look at the glib hash tables if you want to use the library.

+5
source

Source: https://habr.com/ru/post/1443462/


All Articles