About 50 results
Open links in new tab
  1. oop - What is an Object in Python? - Stack Overflow

    May 26, 2019 · In the context of Python and all other Object Oriented Programming (OOP) languages, objects have two main characteristics: state and behavior. You can think of a …

  2. How do I look inside a Python object? - Stack Overflow

    Jun 17, 2009 · I'm starting to code in various projects using Python (including Django web development and Panda3D game development). To help me understand what's going on, I …

  3. Python, creating objects - Stack Overflow

    Feb 26, 2013 · The so called "factory method" pattern, the one where you use a method or a function to create object of some kind instead of creating them directly in the code, is a useful …

  4. python - Determine the type of an object? - Stack Overflow

    2398 There are two built-in functions that help you identify the type of an object. You can use type() if you need the exact type of an object, and isinstance() to check an object’s type …

  5. What's the canonical way to check for type in Python?

    Aug 3, 2014 · In Python, you can use the built-in isinstance() function to check if an object is of a given type, or if it inherits from a given type. To check if the object o is of type str, you would …

  6. python - List attributes of an object - Stack Overflow

    If you want to learn about what methods and such exist for an object to understand how it works, use help. help(a) will show you a formatted output about the object's class based on its …

  7. How to convert JSON data into a Python object? - Stack Overflow

    May 10, 2016 · I want to convert JSON data into a Python object. I receive JSON data objects from the Facebook API, which I want to store in my database. My current View in Django …

  8. How do I determine the size of an object in Python?

    The question asks how to do it in python, not just finding memory usage of python objects, and using a Mac's activity monitor or any other similar software isn't programmatically using python.

  9. python - How to dynamically build a JSON object? - Stack Overflow

    I am new to Python and I am playing with JSON data. I would like to dynamically build a JSON object by adding some key-value to an existing JSON object. I tried the following but I get …

  10. Get all object attributes in Python? - Stack Overflow

    Get all object attributes in Python? [duplicate] Asked 14 years, 7 months ago Modified 4 years, 9 months ago Viewed 1.0m times