Skip to content

Drop module level mutability for GIL - #58

Merged
aldroid1 merged 7 commits into
mainfrom
chore/change-configuration-syntax
Jul 23, 2026
Merged

Drop module level mutability for GIL#58
aldroid1 merged 7 commits into
mainfrom
chore/change-configuration-syntax

Conversation

@aldroid1

@aldroid1 aldroid1 commented Jul 23, 2026

Copy link
Copy Markdown
Owner
  • Drop shared module-level mutable state to avoid using GIL across calls. Simply means that any custom configuration must be assigned per instance and not globally.

  • Introduce a builder class FuzzyDate that supports existing configuration and conversions. Direct functions remain the identical, calling the builder internally.

import fuzzydate as fd

result1 = (fd.FuzzyDate()
    # .add_patterns({...})
    # .add_tokens({...})
    # .set_first_weekday_sunday(True)
    .to_date('yesterday'))
    
result2 = fd.to_date('...')

assert result1 == result2

@aldroid1
aldroid1 merged commit 9662ff4 into main Jul 23, 2026
18 checks passed
@aldroid1
aldroid1 deleted the chore/change-configuration-syntax branch July 23, 2026 09: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