Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor picobox.ext.flaskscopes #97

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Refactor picobox.ext.flaskscopes #97

merged 1 commit into from
Jun 26, 2024

Conversation

ikalnytskyi
Copy link
Owner

There are two main reasons of this refactoring:

  1. Switch internal storage from dictionary to WeakKeyDectionary in order to make sure that dependencies got garbage collected once the scope instance is got removed.

  2. Add an internal _store property that returns the per-scope store instance to ease set()/get() implementations.

There are two main reasons of this refactoring:

1. Switch internal storage from dictionary to WeakKeyDectionary in order
   to make sure that dependencies got garbage collected once the scope
   instance is got removed.

2. Add an internal _store property that returns the per-scope store
   instance to ease set()/get() implementations.
@ikalnytskyi ikalnytskyi merged commit 1526bc6 into master Jun 26, 2024
15 checks passed
@ikalnytskyi ikalnytskyi deleted the chore/flaskscopes branch June 26, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant