mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Document CodeType.replace (GH-17776)
This commit is contained in:
		
							parent
							
								
									37143a8e3b
								
							
						
					
					
						commit
						22424c02e5
					
				
					 3 changed files with 11 additions and 5 deletions
				
			
		|  | @ -610,7 +610,7 @@ code.replace | |||
|     co_name: unicode(c_default="self->co_name") = None | ||||
|     co_lnotab: PyBytesObject(c_default="(PyBytesObject *)self->co_lnotab") = None | ||||
| 
 | ||||
| Return a new code object with new specified fields. | ||||
| Return a copy of the code object with new values for the specified fields. | ||||
| [clinic start generated code]*/ | ||||
| 
 | ||||
| static PyObject * | ||||
|  | @ -622,7 +622,7 @@ code_replace_impl(PyCodeObject *self, int co_argcount, | |||
|                   PyObject *co_varnames, PyObject *co_freevars, | ||||
|                   PyObject *co_cellvars, PyObject *co_filename, | ||||
|                   PyObject *co_name, PyBytesObject *co_lnotab) | ||||
| /*[clinic end generated code: output=25c8e303913bcace input=77189e46579ec426]*/ | ||||
| /*[clinic end generated code: output=25c8e303913bcace input=d9051bc8f24e6b28]*/ | ||||
| { | ||||
| #define CHECK_INT_ARG(ARG) \ | ||||
|         if (ARG < 0) { \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Anthony Sottile
						Anthony Sottile