{"id":23103307,"url":"https://github.com/themusharraf/python-memory-managment","last_synced_at":"2025-08-16T15:31:46.300Z","repository":{"id":243649481,"uuid":"813015885","full_name":"themusharraf/Python-memory-managment","owner":"themusharraf","description":"VARIABLES \u0026 MEMORY MANAGEMENT  EXAMPLE","archived":false,"fork":false,"pushed_at":"2024-09-10T16:15:01.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-10T18:08:52.509Z","etag":null,"topics":["advanced-programming","ctypes","garbage-collection","memory","memory-management","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/themusharraf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-10T10:46:38.000Z","updated_at":"2024-09-10T16:15:04.000Z","dependencies_parsed_at":"2024-06-10T12:32:38.334Z","dependency_job_id":"1a2e3f87-48a9-4402-840b-4b04fa6cbb49","html_url":"https://github.com/themusharraf/Python-memory-managment","commit_stats":null,"previous_names":["themusharraf/python-memory-managment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FPython-memory-managment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FPython-memory-managment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FPython-memory-managment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FPython-memory-managment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themusharraf","download_url":"https://codeload.github.com/themusharraf/Python-memory-managment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230043146,"owners_count":18163966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advanced-programming","ctypes","garbage-collection","memory","memory-management","python"],"created_at":"2024-12-17T00:13:30.832Z","updated_at":"2024-12-17T00:13:31.401Z","avatar_url":"https://github.com/themusharraf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VARIABLES \u0026 MEMORY MANAGEMENT \n### 1. [Garbage Collection](https://github.com/themusharraf/Python-memory-managment/blob/master/garbage_c.py)\n### 2. [References](https://github.com/themusharraf/Python-memory-managment/blob/master/references.py)\n### 3. [Dynamic Typing](https://github.com/themusharraf/Python-memory-managment/blob/master/dynamic_type.py)\n### 4. [Mutable and Immutable](https://github.com/themusharraf/Python-memory-managment/blob/master/mutable_Immutable.py)  \n### 5. [Python is operator](https://github.com/themusharraf/Python-memory-managment/blob/master/is_operator.py)\n### 6. [Python None](https://github.com/themusharraf/Python-memory-managment/blob/master/none_not_is.py)\n\n\n \n[Garbage Collection](https://github.com/themusharraf/Python-memory-managment/blob/master/garbage_c.py) Python’da avtomatik xotira boshqaruvi va chiqindilarni tozalash mexanizmini ko’rsatadi. Kodda ctypes moduli yordamida obyektlarning xotira manzillari orqali ular ustida ishlash va chiqindilarni tozalash (garbage collection) yoqilgan va o’chirilgan holatda obyektlar mavjudligini tekshirish amalga oshiriladi.\n\n## Funksiyalar\n- `ref_count(address)`: Bu funksiya ko’rsatilgan xotira manzilidagi obyektning foydalanish sonini qaytaradi.\n- `object_exists(object_id)`: Bu funksiya ko’rsatilgan obyekt identifikatori (ID) bo’yicha obyekt mavjudligini tekshiradi.\n## Sinflar\n- `A`: Bu sinf B sinfidan obyektni yaratadi va undan nusxa oladi.\n- `B`: Bu sinf A sinfidan obyektni yaratadi va undan nusxa oladi.\n## Chiqindilarni tozalash\n- `gc.disable()`: Chiqindilarni tozalash mexanizmini o'chiradi.\n- `gc.collect()`: Chiqindilarni tozalash mexanizmini qo'lda chaqiradi.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemusharraf%2Fpython-memory-managment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemusharraf%2Fpython-memory-managment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemusharraf%2Fpython-memory-managment/lists"}