mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	bpo-46031: add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE (GH-30019)
This commit is contained in:
		
							parent
							
								
									35d6540c90
								
							
						
					
					
						commit
						3db762db72
					
				
					 9 changed files with 86 additions and 14 deletions
				
			
		|  | @ -378,6 +378,7 @@ def _write_atomic(path, data, mode=0o666): | |||
| #     Python 3.11a4 3470 (bpo-46221: PREP_RERAISE_STAR no longer pushes lasti) | ||||
| #     Python 3.11a4 3471 (bpo-46202: remove pop POP_EXCEPT_AND_RERAISE) | ||||
| #     Python 3.11a4 3472 (bpo-46009: replace GEN_START with POP_TOP) | ||||
| #     Python 3.11a4 3473 (Add POP_JUMP_IF_NOT_NONE/POP_JUMP_IF_NONE opcodes) | ||||
| 
 | ||||
| # | ||||
| # MAGIC must change whenever the bytecode emitted by the compiler may no | ||||
|  | @ -387,7 +388,7 @@ def _write_atomic(path, data, mode=0o666): | |||
| # Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array | ||||
| # in PC/launcher.c must also be updated. | ||||
| 
 | ||||
| MAGIC_NUMBER = (3472).to_bytes(2, 'little') + b'\r\n' | ||||
| MAGIC_NUMBER = (3473).to_bytes(2, 'little') + b'\r\n' | ||||
| _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little')  # For import.c | ||||
| 
 | ||||
| _PYCACHE = '__pycache__' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 penguin_wwy
						penguin_wwy