About 320,000 results
Open links in new tab
  1. python - how to define a structure like in C - Stack Overflow

    Sep 6, 2010 · I am going to define a structure and pass it into a function: In C: struct stru { int a; int b; }; s = new stru() s->a = 10; func_a(s); How this can be done in Python?

  2. Python Data Structures - GeeksforGeeks

    Aug 16, 2024 · In this article, we will discuss the Data Structures in the Python Programming Language and how they are related to some specific Python Data Types. We will discuss all …

  3. How to Implement Your Own Data Structure in Python

    Nov 18, 2022 · Python provides full-fledged support for implementing your own data structure using classes and custom operators. In this tutorial, you will implement a custom pipeline data …

  4. Structures in Python - Medium

    Aug 31, 2020 · Structures come very handy to define a complex data type that is formed by using multiple simple primitive data types. In Python, there is a way where you can define a …

  5. Exploring C-like Structures in Python 3 Programming

    Sep 26, 2021 · In this article, we will explore how to use C-like structures in Python 3 programming, allowing for more efficient memory management and direct manipulation of …

  6. Solved: Creating C-like Structures in Python - sqlpey

    Dec 5, 2024 · Explore various methods to define C-like structures in Python, including named tuples, dictionaries, classes with slots, and ctypes.

  7. Python's Versatile Approach to Data Modeling: A Deep Dive

    Apr 26, 2025 · While Python doesn't have a direct equivalent to C's struct keyword, it offers several ways to represent structured data that mimic the concept. Here are the primary …

  8. 9. Classes — Python 3.13.3 documentation

    6 days ago · Compared with other programming languages, Python’s class mechanism adds classes with a minimum of new syntax and semantics. It is a mixture of the class mechanisms …

  9. Understanding and Leveraging Structs in Python with the struct …

    Jan 26, 2024 · In Python, the struct module serves as a powerful tool for working with binary data and creating struct-like data structures. This tutorial will delve into the concept of structs using …

  10. A Guide to Python Data Structures - Codecademy

    Apr 17, 2025 · In this guide, we covered the basics of data structures in Python, including built-in types like lists, tuples, dictionaries, and sets, and user-defined types such as arrays, linked …

Refresh