1313- ``open`` (equivalent to io.open on Py2)
1414- ``super`` (backport of Py3's magic zero-argument super() function
1515- ``round`` (new "Banker's Rounding" behaviour from Py3)
16+ - ``max`` (new max behaviour from Py3)
17+ - ``min`` (new min behaviour from Py3)
1618
1719``isinstance`` is also currently exported for backwards compatibility
1820with v0.8.2, although this has been deprecated since v0.9.
5961 from future .builtins .newnext import newnext as next
6062 from future .builtins .newround import newround as round
6163 from future .builtins .newsuper import newsuper as super
64+ from future .builtins .new_min_max import newmax as max
65+ from future .builtins .new_min_max import newmin as min
6266 from future .types .newint import newint
6367
6468 _SENTINEL = object ()
@@ -89,11 +93,12 @@ def pow(x, y, z=_SENTINEL):
8993 else :
9094 return _builtin_pow (x + 0j , y , z )
9195
96+
9297 # ``future`` doesn't support Py3.0/3.1. If we ever did, we'd add this:
9398 # callable = __builtin__.callable
9499
95100 __all__ = ['ascii' , 'chr' , 'hex' , 'input' , 'isinstance' , 'next' , 'oct' ,
96- 'open' , 'pow' , 'round' , 'super' ]
101+ 'open' , 'pow' , 'round' , 'super' , 'max' , 'min' ]
97102
98103else :
99104 import builtins
@@ -109,6 +114,8 @@ def pow(x, y, z=_SENTINEL):
109114 pow = builtins .pow
110115 round = builtins .round
111116 super = builtins .super
117+ max = builtins .max
118+ min = builtins .min
112119
113120 __all__ = []
114121
0 commit comments