mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Add some miscellanea.
This commit is contained in:
		
							parent
							
								
									2c7f314eaf
								
							
						
					
					
						commit
						cf1be88b43
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		
							
								
								
									
										10
									
								
								Misc/NEWS
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								Misc/NEWS
									
										
									
									
									
								
							| 
						 | 
					@ -75,7 +75,8 @@ Core and Builtins
 | 
				
			||||||
- Classes listed in an 'except' clause must inherit from BaseException.
 | 
					- Classes listed in an 'except' clause must inherit from BaseException.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
 | 
					- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
 | 
				
			||||||
  and .keys(), .items(), .values() return dict views.
 | 
					  and .keys(), .items(), .values() return dict views, which behave
 | 
				
			||||||
 | 
					  like sets.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- PEP 3105: print is now a function.  Also (not in the PEP) the
 | 
					- PEP 3105: print is now a function.  Also (not in the PEP) the
 | 
				
			||||||
  'softspace' attribute of files is now gone (since print() doesn't use
 | 
					  'softspace' attribute of files is now gone (since print() doesn't use
 | 
				
			||||||
| 
						 | 
					@ -151,10 +152,13 @@ Core and Builtins
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Remove C API support for restricted execution.
 | 
					- Remove C API support for restricted execution.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- zip returns an iterator
 | 
					- zip(), map() and filter() now return iterators, behaving like their
 | 
				
			||||||
 | 
					  itertools counterparts. This also affect map()'s behavior on
 | 
				
			||||||
 | 
					  sequences of unequal length -- it now stops after the shortest one
 | 
				
			||||||
 | 
					  is exhausted.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Additions:
 | 
					- Additions:
 | 
				
			||||||
  set literals, ellipsis literal
 | 
					  set literals, set comprehensions, ellipsis literal.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Added class decorators per PEP 3129.
 | 
					- Added class decorators per PEP 3129.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue