mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	bpo-31708: Allow async generator expressions in synchronous functions (#3905)
This commit is contained in:
		
							parent
							
								
									faa135acbf
								
							
						
					
					
						commit
						b8ab9d3fc8
					
				
					 5 changed files with 52 additions and 9 deletions
				
			
		|  | @ -149,6 +149,14 @@ def bar(): | |||
|                  [i async for i in els] | ||||
|             """, | ||||
| 
 | ||||
|             """def bar(): | ||||
|                  {i: i async for i in els} | ||||
|             """, | ||||
| 
 | ||||
|             """def bar(): | ||||
|                  {i async for i in els} | ||||
|             """, | ||||
| 
 | ||||
|             """def bar(): | ||||
|                  [await i for i in els] | ||||
|             """, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yury Selivanov
						Yury Selivanov