mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Mark the closed attribute of the profiler with PyDoc_STR(), and added
a docstring for the info attribute of the logreader object.
This commit is contained in:
		
							parent
							
								
									d1eb8b61d0
								
							
						
					
					
						commit
						5c3ed3db9a
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -1181,7 +1181,7 @@ profiler_get_closed(ProfilerObject *self, void *closure)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyGetSetDef profiler_getsets[] = {
 | 
					static PyGetSetDef profiler_getsets[] = {
 | 
				
			||||||
    {"closed", (getter)profiler_get_closed, NULL,
 | 
					    {"closed", (getter)profiler_get_closed, NULL,
 | 
				
			||||||
     "True if the profiler's output file has already been closed."},
 | 
					     PyDoc_STR("True if the profiler's output file has already been closed.")},
 | 
				
			||||||
    {NULL}
 | 
					    {NULL}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1250,7 +1250,8 @@ static PyMethodDef logreader_methods[] = {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyMemberDef logreader_members[] = {
 | 
					static PyMemberDef logreader_members[] = {
 | 
				
			||||||
    {"info", T_OBJECT, offsetof(LogReaderObject, info), RO},
 | 
					    {"info", T_OBJECT, offsetof(LogReaderObject, info), RO,
 | 
				
			||||||
 | 
					     PyDoc_STR("Dictionary mapping informational keys to lists of values.")},
 | 
				
			||||||
    {NULL}
 | 
					    {NULL}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue