DAY 16: Done with my blog basics, just a bit of #design tweaking and integration with @Medium and am done... Oh, and of course a domain
#python
#flask
#100DaysOfCode
#blog
#site
kraftyblog.herokuapp.com/
#python_ninja β retweeted
Day 9
Implemented user authentication and secured endpoints with tokens.
#100DaysOfCode #Python #TDD
#100DaysOfCode So today: DAY 15, learning about memory management in #python for python applications.
Memory management is basically the process by which applications read and write data
Follow the thread for all details
credits @realpython
#memory
#computer
for more information about Cpython's memory allocation, you can visit the link and also scroll at the top for more info or to start from the begining
Thanks @realpython
realpython.com/python-memoryβ¦
4
#CPython has an object allocator that is responsible for allocating memory within the object memory area. This object allocator is where most of the magic happens. It gets called every time a new object needs space allocated or deleted.
1
When CPython(The default python implementation) handles memory, it uses the GIL to ensure that it does so safely.
1
The GIL(Global Interpreter Lock) is a solution to the common problem of dealing with shared resources, like memory in a computer. which prevents garbled mess where neither of the threads ends up with what they wanted.
1
Memory is a shared resource on the computer, and bad things can happen if two different processes try to write to the same location at the same time.
1
Each object also has an object-specific memory deallocator that βfreesβ the memory once itβs no longer needed.
#Python
The PyObject, the grand-daddy of all objects in #Python, contains only two things:
* ob_refcnt: reference count
* ob_type: pointer to another type
1
A struct, or structure, in #C, is a custom data type that groups together different data types. To compare to object-oriented languages, itβs like a class with attributes and no methods.
#programming
#Python
1
If you have ever noticed a .pyc file or a __pycache__ folder and you've never actually noticed what they are... Then, know that they are the byte-compiled code that gets interpreted by the virtual machine.
#Python
3
Virtual machines are like physical computers, but they are implemented in software. They typically process basic instructions similar to Assembly instructions.
en.wikipedia.org/wiki/Assembβ¦
1
π€£π he is the one who introduced us to codewars by the way
#codewarriors
#code
1
#python_ninja β retweeted
DevFest Dar-es-Salaam oscarolotu.com/devfest-dar-eβ¦







