mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 10:26:02 +00:00 
			
		
		
		
	Merged revisions 82051 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82051 | mark.dickinson | 2010-06-17 19:24:52 +0100 (Thu, 17 Jun 2010) | 2 lines Add note about changes to the `round` function between 2.x and 3.x. ........
This commit is contained in:
		
							parent
							
								
									28fdadb768
								
							
						
					
					
						commit
						ff0aea26c3
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -798,6 +798,15 @@ Builtins | |||
| * A new builtin :func:`next` was added to call the :meth:`__next__` | ||||
|   method on an object. | ||||
| 
 | ||||
| * The :func:`round` function rounding strategy and return type have | ||||
|   changed.  Exact halfway cases are now rounded to the nearest even | ||||
|   result instead of away from zero.  (For example, ``round(2.5)`` now | ||||
|   returns ``2`` rather than ``3``.)  :func:`round(x[, n])` now | ||||
|   delegates to ``x.__round__([n])`` instead of always returning a | ||||
|   float.  It generally returns an integer when called with a single | ||||
|   argument and a value of the same type as ``x`` when called with two | ||||
|   arguments. | ||||
| 
 | ||||
| * Moved :func:`intern` to :func:`sys.intern`. | ||||
| 
 | ||||
| * Removed: :func:`apply`.  Instead of ``apply(f, args)`` use | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Dickinson
						Mark Dickinson