mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	SF 563530 added missing methods for emulating numeric types
This commit is contained in:
		
							parent
							
								
									669f4c3850
								
							
						
					
					
						commit
						10cbe8dcbc
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -1433,6 +1433,8 @@ the alternate context; \exception{TypeError} will be raised instead.
 | 
				
			||||||
\methodline[numeric object]{__rsub__}{self, other}
 | 
					\methodline[numeric object]{__rsub__}{self, other}
 | 
				
			||||||
\methodline[numeric object]{__rmul__}{self, other}
 | 
					\methodline[numeric object]{__rmul__}{self, other}
 | 
				
			||||||
\methodline[numeric object]{__rdiv__}{self, other}
 | 
					\methodline[numeric object]{__rdiv__}{self, other}
 | 
				
			||||||
 | 
					\methodline[numeric object]{__rtruediv__}{self, other}
 | 
				
			||||||
 | 
					\methodline[numeric object]{__rfloordiv__}{self, other}	     
 | 
				
			||||||
\methodline[numeric object]{__rmod__}{self, other}
 | 
					\methodline[numeric object]{__rmod__}{self, other}
 | 
				
			||||||
\methodline[numeric object]{__rdivmod__}{self, other}
 | 
					\methodline[numeric object]{__rdivmod__}{self, other}
 | 
				
			||||||
\methodline[numeric object]{__rpow__}{self, other}
 | 
					\methodline[numeric object]{__rpow__}{self, other}
 | 
				
			||||||
| 
						 | 
					@ -1461,7 +1463,9 @@ complicated).
 | 
				
			||||||
\methodline[numeric object]{__isub__}{self, other}
 | 
					\methodline[numeric object]{__isub__}{self, other}
 | 
				
			||||||
\methodline[numeric object]{__imul__}{self, other}
 | 
					\methodline[numeric object]{__imul__}{self, other}
 | 
				
			||||||
\methodline[numeric object]{__idiv__}{self, other}
 | 
					\methodline[numeric object]{__idiv__}{self, other}
 | 
				
			||||||
\methodline[numeric object]{__imod__}{self, other}
 | 
					\methodline[numeric object]{__itruediv__}{self, other}
 | 
				
			||||||
 | 
					\methodline[numeric object]{__ifloordiv__}{self, other}
 | 
				
			||||||
 | 
					\methodline[numeric object]{__imod__}{self, other}		     
 | 
				
			||||||
\methodline[numeric object]{__ipow__}{self, other\optional{, modulo}}
 | 
					\methodline[numeric object]{__ipow__}{self, other\optional{, modulo}}
 | 
				
			||||||
\methodline[numeric object]{__ilshift__}{self, other}
 | 
					\methodline[numeric object]{__ilshift__}{self, other}
 | 
				
			||||||
\methodline[numeric object]{__irshift__}{self, other}
 | 
					\methodline[numeric object]{__irshift__}{self, other}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue