fastnumbers is a Python module with three objectives:
1. To provide drop-in replacements for the Python built-in `int` and
`float` that, on average, are around 2x faster. These functions
should behave identically to the Python built-ins except for a few
specific corner-cases as mentioned in the API documentation.
2. To provide a set of convenience functions that wrap the above int
and float replacements and provide error handling.
3. To provide a set of functions that can be used to identify whether
an input could be converted to int or float.
Provides
Requires
License
MIT
Changelog
* Fri Nov 22 2024 Matej Cepl <mcepl@cepl.eu>
- Add fix-compiler-errors.patch with upstream fixes for compiler
errors.
- Use %pytest_arch instead of home made calling of pytest.
* Fri Dec 29 2023 Dirk Müller <dmueller@suse.com>
- update to 5.1.0:
* Added the ``denoise`` option to convert floats to int without
* numerical noise (issues #69 and #77)
* Support for Python 3.12 (issues #73 and #75)
- switch to gcc 13 on SLE15
* Mon Jul 10 2023 ecsos <ecsos@opensuse.org>
- Update to 5.0.1
* Fixed
- Add back missing key option in type hints for deprecated fast_* functions
- Update to 5.0.0
* Added
- Added the map option to all try_* functions to enable very fast conversions of lists or other iterables (issues #61, #63 and #67)
- Added try_array to enable very fast conversions directly to numpy arrays (issues #62 and #65)
* Changed
- Move to a model where the return code is a value or error instead of a model where one has to check the error state after getting a value (issue #66)
- Significantly simplified the type annotations (by 4000+ lines!)
* Fixed
- Increased code coverage and fixed missing headers in codecov reaport (issue #64)
- Add %{?sle15_python_module_pythons}
- Ensure that SLE-15 uses gcc-12.
* Sun Jan 23 2022 Dirk Müller <dmueller@suse.com>
- update to 3.2.1:
* Support for Python 3.10
* Full coverage of mypy type-checking
* Support for Python 3.5
* Mon Apr 19 2021 Steve Kowalik <steven.kowalik@suse.com>
- Update to 3.1.0:
* Added
+ query_type function to determine what as type fastnumbers will
interpret a given input
* Fixed
+ Support for Python 3.9 (eliminate use of private Python C function
that is now hidden in 3.9)
* Thu Jan 30 2020 Todd R <toddrme2178@gmail.com>
- Update to 3.0.0
+ Added
* Support and tests for Python 3.8
* Text to highlight that `fastnumbers` is not always faster that native Python
* `on_fail` option that is identical to `key`, but has a more descriptive name
* Windows testing to Travis-CI
* Code quality checks to Travis-CI
* Deployment from Travis-CI
* RELEASING.md
+ Changed
* Cleaned up all test code so that it no longer includes unused code
and also conformes to flake8/black
* Near-complete re-write of the README, hop