mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Documented the 2's-comp business for the new long opcodes.
This commit is contained in:
		
							parent
							
								
									5eed340267
								
							
						
					
					
						commit
						bdbe74183c
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -631,7 +631,7 @@ def read_long1(f):
 | 
				
			||||||
    doc="""A binary long, little-endian, using 1-byte size.
 | 
					    doc="""A binary long, little-endian, using 1-byte size.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    This first reads one byte as an unsigned size, then reads that
 | 
					    This first reads one byte as an unsigned size, then reads that
 | 
				
			||||||
    many bytes and interprets them as a little-endian long.
 | 
					    many bytes and interprets them as a little-endian 2's-complement long.
 | 
				
			||||||
    """)
 | 
					    """)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def read_long2(f):
 | 
					def read_long2(f):
 | 
				
			||||||
| 
						 | 
					@ -661,7 +661,7 @@ def read_long2(f):
 | 
				
			||||||
    doc="""A binary long, little-endian, using 2-byte size.
 | 
					    doc="""A binary long, little-endian, using 2-byte size.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    This first reads two byte as an unsigned size, then reads that
 | 
					    This first reads two byte as an unsigned size, then reads that
 | 
				
			||||||
    many bytes and interprets them as a little-endian long.
 | 
					    many bytes and interprets them as a little-endian 2's-complement long.
 | 
				
			||||||
    """)
 | 
					    """)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def read_long4(f):
 | 
					def read_long4(f):
 | 
				
			||||||
| 
						 | 
					@ -694,7 +694,7 @@ def read_long4(f):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    This first reads four bytes as a signed size (but requires the
 | 
					    This first reads four bytes as a signed size (but requires the
 | 
				
			||||||
    size to be >= 0), then reads that many bytes and interprets them
 | 
					    size to be >= 0), then reads that many bytes and interprets them
 | 
				
			||||||
    as a little-endian long.
 | 
					    as a little-endian 2's-complement long.
 | 
				
			||||||
    """)
 | 
					    """)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue