pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/9c3f5031a9c3e0557cf28e72fa1f74f23b9144f6

48faa60c69660fa.css" /> Issue #13701: Fix decorator avoidance (due to desire for Python 2.3 c… · python/cpython@9c3f503 · GitHub
Skip to content

Commit 9c3f503

Browse files
committed
Issue #13701: Fix decorator avoidance (due to desire for Python 2.3 compatibility) in decimal module.
1 parent a28cf6f commit 9c3f503

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/decimal.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,7 @@ def __new__(cls, value="0", context=None):
703703

704704
raise TypeError("Cannot convert %r to Decimal" % value)
705705

706-
# @classmethod, but @decorator is not valid Python 2.3 syntax, so
707-
# don't use it (see notes on Py2.3 compatibility at top of file)
706+
@classmethod
708707
def from_float(cls, f):
709708
"""Converts a float to a decimal number, exactly.
710709
@@ -743,7 +742,6 @@ def from_float(cls, f):
743742
return result
744743
else:
745744
return cls(result)
746-
from_float = classmethod(from_float)
747745

748746
def _isnan(self):
749747
"""Returns whether the number is not actually one.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy