[issue8257] Decimal constructor to accept float

Raymond Hettinger report at bugs.python.org
Mon Mar 29 01:12:21 CEST 2010


New submission from Raymond Hettinger <rhettinger at users.sourceforge.net>:

Per discussion on python-dev, let Decimal(x) accept floats as a possible input, making Decimal.from_float unnecessary.

See attached patch.

----------
assignee: mark.dickinson
files: deci_float_constructor.diff
keywords: easy, patch
messages: 101882
nosy: mark.dickinson, rhettinger
severity: normal
stage: patch review
status: open
title: Decimal constructor to accept float
type: feature request
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16683/deci_float_constructor.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8257>
_______________________________________


More information about the Python-bugs-list mailing list