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

Use mro lookup for class constants #19

Open
fleetingbytes opened this issue Apr 10, 2024 · 2 comments
Open

Use mro lookup for class constants #19

fleetingbytes opened this issue Apr 10, 2024 · 2 comments

Comments

@fleetingbytes
Copy link
Owner

General regex could have class constant properties lookup in MRO whether they shall return str or bytes. No building blocks would be necessary for Sre and Bre. They would probably become one and the same class?

@fleetingbytes
Copy link
Owner Author

Sre and Bre will still be distinct because they they will have str vs bytes as one of their mixin classes

@fleetingbytes
Copy link
Owner Author

Maybe use functools.cached_property instead of the normal property decorator for these class constants.

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

No branches or pull requests

1 participant