mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	Per discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment about not removing yet.
This commit is contained in:
		
							parent
							
								
									df95cb6ae3
								
							
						
					
					
						commit
						ab51f5f24d
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		|  | @ -40,7 +40,10 @@ typedef struct { | ||||||
| */ | */ | ||||||
| #define CO_NOFREE       0x0040 | #define CO_NOFREE       0x0040 | ||||||
| 
 | 
 | ||||||
| #define CO_GENERATOR_ALLOWED    0x1000 /* no longer used in an essential way */ | #if 0 | ||||||
|  | /* This is no longer used.  Stopped defining in 2.5, do not re-use. */ | ||||||
|  | #define CO_GENERATOR_ALLOWED    0x1000 | ||||||
|  | #endif | ||||||
| #define CO_FUTURE_DIVISION    	0x2000 | #define CO_FUTURE_DIVISION    	0x2000 | ||||||
| 
 | 
 | ||||||
| #define CO_MAXBLOCKS 20 /* Max static block nesting within a function */ | #define CO_MAXBLOCKS 20 /* Max static block nesting within a function */ | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ extern "C" { | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #define PyCF_MASK (CO_FUTURE_DIVISION) | #define PyCF_MASK (CO_FUTURE_DIVISION) | ||||||
| #define PyCF_MASK_OBSOLETE (CO_GENERATOR_ALLOWED | CO_NESTED) | #define PyCF_MASK_OBSOLETE (CO_NESTED) | ||||||
| #define PyCF_SOURCE_IS_UTF8  0x0100 | #define PyCF_SOURCE_IS_UTF8  0x0100 | ||||||
| #define PyCF_DONT_IMPLY_DEDENT 0x0200 | #define PyCF_DONT_IMPLY_DEDENT 0x0200 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz