Python Featured Classy Classes With Python Data Classes Python has well-known data holders. If you need a sequence, you can use a list. If you need an immutable sequence, use a tuple. If you need a homogeneous array, use the array module. If you need a hash table, a dictionary is likely what you want.
Data How to Generate Fake Data With Python Mimesis Generating fake data can be a task far beyond the infamous lorem ipsum. Mimesis, as describe by the library authors: > "Is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages." Let's install Mimesis and see how it plays: pip
Python Working With JSON in Python The implementation of JSON in Python is small and concise, and you can read its source code (written in Python) at Lib/json [https://github.com/python/cpython/blob/master/Lib/json/__init__.py]. Although similar looking, Python Dictionaries and JSON are quite different. Dictionaries are high-level Python Objects, while
Python Changing the Default Debugger in Python Python comes with a built in debugger called pdb. You drop the line below at any part or your code, and a debugger will show up: import pdb; pdb.set_trace() Python 3.7 introduced the debugger() keyword, allowing you to simplify the code above and initiate a debugger with
Django Featured Deep Dive into Django's Pagination When paginating with Django Paginators, the code is not just splitting the content on the UI, but it is trully querying the database in smaller chunks.