About 532,000 results
Open links in new tab
  1. 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 …

  2. 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.

  3. 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 …

  4. 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?

  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. Complex matlab-like data structure in python (numpy/scipy)

    Dec 22, 2014 · I have to translate this data structure to python, but I am new to numpy and python lists. What is the best way of structuring this data in python with numpy/scipy?

  7. 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 …

  8. 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 …

  9. What is the underlying data structure for Python lists?

    Apr 25, 2014 · What is the typical underlying data structure used to implement Python's built-in list data type?

  10. Representing graphs (data structure) in Python - Stack Overflow

    Oct 20, 2013 · From Python built-in data types point-of-view, any value contained elsewhere is expressed as a (hidden) reference to the target object. If it is a variable (i.e. named reference), …