| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
My specific use-case was an event processor that routed messages based on their semver number, so for example, everything matching ~=1.2 would go to the latest event handler, ==1.1.* to a legacy handler and so on. However, I will say that I really don't like operator overloading and much prefer a match method or similar. |
Sorry, something went wrong.
Yeah, that's also one of the questions where I'm unsure about that. 🤔 |
Sorry, something went wrong.
Use parts of PEP 440
* Introduce Spec class to deal with such comparisons * Improve documentation * Simplify code in Version.match (delegates to Spec.match)
* Rename _MAJOR, _MINOR, _PATCH, _PRERELEASE, and _BUILD and remove the "_" prefix * Change _REGEX, _REGEX_TEMPLATE, and _REGEX_OPTIONAL_MINOR_AND_PATCH and remove the "_" prefix
From Version to VersionRegex
* Remove unused Int_or_Str type * Reuse String in SpecComparable
| Back | FazBrowse Home | New Git URL |
Implementation Questions