{"id":19673701,"url":"https://github.com/besnik/pycon2017-closures","last_synced_at":"2025-10-07T15:55:55.121Z","repository":{"id":145691778,"uuid":"84471715","full_name":"besnik/pycon2017-closures","owner":"besnik","description":"Slides and sample source code in Python, Java, C#, Javascript for talk Closures in Python @ Pycon SK 2017","archived":false,"fork":false,"pushed_at":"2021-08-20T10:49:48.000Z","size":994,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T05:30:02.830Z","etag":null,"topics":["2017","closure","pycon","python"],"latest_commit_sha":null,"homepage":null,"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/besnik.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":"2017-03-09T17:46:52.000Z","updated_at":"2022-03-26T17:55:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"582a0c3e-292f-4325-ad7f-22ab5ca5e4a9","html_url":"https://github.com/besnik/pycon2017-closures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/besnik/pycon2017-closures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besnik%2Fpycon2017-closures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besnik%2Fpycon2017-closures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besnik%2Fpycon2017-closures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besnik%2Fpycon2017-closures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/besnik","download_url":"https://codeload.github.com/besnik/pycon2017-closures/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besnik%2Fpycon2017-closures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278802799,"owners_count":26048566,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["2017","closure","pycon","python"],"created_at":"2024-11-11T17:16:04.479Z","updated_at":"2025-10-07T15:55:55.094Z","avatar_url":"https://github.com/besnik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Closures in Python\n\nThis is supportive material for my talk `Closures in Python` presented at PyCon SK 2017 in Bratislava, Slovakia.\n\nWatch now on youtube:\n\n[![Closures in Python](https://img.youtube.com/vi/djY0-7jNQI0/0.jpg)](https://www.youtube.com/watch?v=djY0-7jNQI0)\n\nThe aim of talk was to introduce closures concent in general to the audience.\n\nPresentation includes examples also from other languages like Java, C# or Javascript.\n\n# Slides\n\nCheck out `pycon2017-closures.pdf` in root folder.\n\n# Folder structure\n\n- `python` - contains examples in python\n- `js` - contains examples in javascript / node.js\n- `csharp` - contains examples in C#, .NET (Core)\n- `java` - contains examples in Java 8\n\n# Agenda\n\n1. Introduction, Bottom-Up explanation\n2. Pool - usage of python, java, c#, javascript\n3. Question - example with list of functions (10,10,10...10)\n4. Scopes (local vs global variables)\n5. Functions as first class citizen\n6. Lambdas\n7. Classes (vs Functions)\n8. Simple example of closure\n9. Where is closed variable stored, GC discussion\n10. More closures examples (counter, average)\n11. Closures with functions\n12. Decorators, combined decorators\n13. Closures vs Classes\n14. Answer to initial question\n15. Answer in C#, Java\n16. Answer in Javascript\n17. Q\u0026A\n\n# Support\n\nIn case of questions do not hesitate to contact me. Feel free to send patch or pull request.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbesnik%2Fpycon2017-closures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbesnik%2Fpycon2017-closures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbesnik%2Fpycon2017-closures/lists"}