mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Issue #12672: remove confusing part of sentence in documentation
This commit is contained in:
		
							parent
							
								
									b2761186af
								
							
						
					
					
						commit
						f6854cb0f0
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -30,8 +30,7 @@ The Python runtime sees all Python objects as variables of type
 | 
			
		|||
just contains the refcount and a pointer to the object's "type object".  This is
 | 
			
		||||
where the action is; the type object determines which (C) functions get called
 | 
			
		||||
when, for instance, an attribute gets looked up on an object or it is multiplied
 | 
			
		||||
by another object.  These C functions are called "type methods" to distinguish
 | 
			
		||||
them from things like ``[].append`` (which we call "object methods").
 | 
			
		||||
by another object.  These C functions are called "type methods".
 | 
			
		||||
 | 
			
		||||
So, if you want to define a new object type, you need to create a new type
 | 
			
		||||
object.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue