mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	byteswap() method: Tell *what* exception gets raised when the type
cannot be byteswapped.
This commit is contained in:
		
							parent
							
								
									9118f7cfc4
								
							
						
					
					
						commit
						ac00c4c1c6
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -78,8 +78,9 @@ operations are applied to it.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\begin{methoddesc}[array]{byteswap}{x}
 | 
					\begin{methoddesc}[array]{byteswap}{x}
 | 
				
			||||||
``Byteswap'' all items of the array.  This is only supported for
 | 
					``Byteswap'' all items of the array.  This is only supported for
 | 
				
			||||||
integer values.  It is useful when reading data from a file written
 | 
					integer values; for other types of values, \exception{RuntimeError} is
 | 
				
			||||||
on a machine with a different byte order.
 | 
					raised.  It is useful when reading data from a file written on a
 | 
				
			||||||
 | 
					machine with a different byte order.
 | 
				
			||||||
\end{methoddesc}
 | 
					\end{methoddesc}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\begin{methoddesc}[array]{fromfile}{f, n}
 | 
					\begin{methoddesc}[array]{fromfile}{f, n}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue