[Python-checkins] r87969 - python/branches/py3k/Lib/numbers.py

raymond.hettinger python-checkins at python.org
Wed Jan 12 21:52:40 CET 2011


Author: raymond.hettinger
Date: Wed Jan 12 21:52:39 2011
New Revision: 87969
Log:
Remove the funky function annotation from numbers.py.
Modified:
 python/branches/py3k/Lib/numbers.py
Modified: python/branches/py3k/Lib/numbers.py
==============================================================================
--- python/branches/py3k/Lib/numbers.py	(original)
+++ python/branches/py3k/Lib/numbers.py	Wed Jan 12 21:52:39 2011
@@ -189,7 +189,7 @@
 raise NotImplementedError
 
 @abstractmethod
- def __round__(self, ndigits:"Integral"=None):
+ def __round__(self, ndigits=None):
 """Rounds self to ndigits decimal places, defaulting to 0.
 
 If ndigits is omitted or None, returns an Integral, otherwise


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /