mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Cleanup
This commit is contained in:
		
							parent
							
								
									eb461904eb
								
							
						
					
					
						commit
						f336c8b7e9
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -179,9 +179,7 @@ def from_continued_fraction(cls, seq): | ||||||
|         for e in reversed(seq): |         for e in reversed(seq): | ||||||
|             n, d = d, n |             n, d = d, n | ||||||
|             n += e * d |             n += e * d | ||||||
|         if seq: |         return cls(n, d) if seq else cls(0) | ||||||
|             return cls(n, d) |  | ||||||
|         return cls(0) |  | ||||||
| 
 | 
 | ||||||
|     def as_continued_fraction(self): |     def as_continued_fraction(self): | ||||||
|         'Return continued fraction expressed as a list' |         'Return continued fraction expressed as a list' | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger