Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.024 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.01; 'url:pypi': 0.03; 'float': 0.05; 'python3': 0.05; 'subject:ANN': 0.07; 'received:localnet': 0.09; 'compatible.': 0.16; 'doc:': 0.16; 'subject:] ': 0.19; 'module': 0.25; 'header:User-Agent:1': 0.26; 'specify': 0.27; 'operators': 0.29; 'project:': 0.29; 'allows': 0.30; "i'm": 0.30; 'point': 0.33; 'url:python': 0.33; 'utility': 0.33; 'url:org': 0.36; 'charset:us-ascii': 0.37; 'subject:[': 0.39; 'to:addr:python.org': 0.40; 'hello,': 0.40; 'url:3': 0.60; 'hope': 0.61; 'complete': 0.63; 'url:readthedocs': 0.84; 'url:tutorial': 0.91; 'url:fr': 0.96 X-Virus-Scanned: Debian amavisd-new at limsi.fr From: Laurent Pointal To: python-announce-list@python.org Subject: [ANN] floatrange - a range() for floats Date: Mon, 21 Sep 2015 13:15:38 +0200 Organization: LIMSI User-Agent: KMail/4.13.3 (Linux/3.13.0-63-generic; KDE/4.13.3; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Mailman-Approved-At: Mon, 21 Sep 2015 13:21:47 +0200 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Approved: python-announce-list@python.org Newsgroups: comp.lang.python.announce Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442834509 news.xs4all.nl 23756 [2001:888:2000:d::a6]:50541 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python.announce:1865 Hello, I'm please to publish a small utility module allowing to produce float based range sequences, with I hope a complete range-like interface. Because of floating point arithmetic, floatrange allows to specify a precision for "equality" when working with operators like 'in'. It is Python2 and Python3 compatible. PyPI: https://pypi.python.org/pypi/floatrange/ Doc: http://floatrange.readthedocs.org/ Project: https://perso.limsi.fr/pointal/python:floatrange Float arithmetic: https://docs.python.org/3/tutorial/floatingpoint.html A+ Laurent Pointal.