[issue7684] decimal.py: infinity coefficients in tuples

2010-01-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I also prefer to leave as-is. It's harmless. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ _

[issue7684] decimal.py: infinity coefficients in tuples

2010-01-29 Thread Mark Dickinson
Mark Dickinson added the comment: Issue 1: (passing coefficients to decimal constructor): While I agree that passing a coefficient for an infinity doesn't make a lot of sense, there's a backwards compatibility problem here: it worked in 3.1, so making it raise an exception in 3.2 might break

[issue7684] decimal.py: infinity coefficients in tuples

2010-01-12 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7684] decimal.py: infinity coefficients in tuples

2010-01-12 Thread Stefan Krah
New submission from Stefan Krah : It should not be possible to pass coefficients when constructing infinities from tuples. Otherwise it looks like infinities can have payloads (which they can't). Example: >>> import decimal, cdecimal >>> d = decimal.Decimal((0, (4, 5, 3, 4), 'F')) >>> d Decim