About 548,000 results
Open links in new tab
  1. How to persist a data structure to a file in python?

    The easiest way would be JSON because it's structuring data similar to Python dictionary. Luckily, python has a bundled JSON module. All you need to do is just import json.

  2. data structures - How can I implement a tree in Python? - Stack …

    How can I implement a general tree in Python? Is there a built-in data structure for this?

  3. struct - C-like structures in Python - Stack Overflow

    Aug 30, 2008 · With the introduction of Data Classes in Python 3.7 we get very close. The following example is similar to the NamedTuple example below, but the resulting object is …

  4. sorting - Is there a standard Python data structure that keeps …

    To this end, I would like a data structure that cheaply maintained its elements in sorted order, and quickly allowed me to find the element before or after a given element. Is there a better way to …

  5. python - Data structure for maintaining tabular data in memory?

    Data structure for maintaining tabular data in memory? Asked 16 years, 4 months ago Modified 9 years ago Viewed 143k times

  6. Are Python data types classes, or data structures? - Stack Overflow

    So, mapping dictionaries are data types, but they're also abstract data structures—and, under the covers, Python's dict objects are built from a specific concrete data structure (open-chained …

  7. Data Structures in Python - Stack Overflow

    Dec 31, 2009 · 25 Python gives you some powerful, highly optimized data structures, both as built-ins and as part of a few modules in the standard library (list s and dict s, of course, but …

  8. Are Python built-in containers thread-safe? - Stack Overflow

    Feb 9, 2010 · I would like to know if the Python built-in containers (list, vector, set...) are thread-safe? Or do I need to implement a locking/unlocking environment for my shared variable?

  9. data structures - How are Python's Built In Dictionaries …

    Nov 29, 2008 · Does anyone know how the built in dictionary type for python is implemented? My understanding is that it is some sort of hash table, but I haven't been able to find any sort of …

  10. What is the fastest (to access) struct-like object in Python?

    Oct 29, 2014 · I'm optimizing some code whose main bottleneck is running through and accessing a very large list of struct-like objects. Currently I'm using namedtuples, for readability. But …