mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Adapt/remove mentions of functions gone in 3.x
This commit is contained in:
		
							parent
							
								
									37b5f9eebc
								
							
						
					
					
						commit
						7af8ebb6ce
					
				
					 3 changed files with 2 additions and 11 deletions
				
			
		| 
						 | 
					@ -473,15 +473,6 @@ calling another function by using ``*`` and ``**``::
 | 
				
			||||||
       ...
 | 
					       ...
 | 
				
			||||||
       g(x, *args, **kwargs)
 | 
					       g(x, *args, **kwargs)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
In the unlikely case that you care about Python versions older than 2.0, use
 | 
					 | 
				
			||||||
:func:`apply`::
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   def f(x, *args, **kwargs):
 | 
					 | 
				
			||||||
       ...
 | 
					 | 
				
			||||||
       kwargs['width'] = '14.3c'
 | 
					 | 
				
			||||||
       ...
 | 
					 | 
				
			||||||
       apply(g, (x,)+args, kwargs)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
How do I write a function with output parameters (call by reference)?
 | 
					How do I write a function with output parameters (call by reference)?
 | 
				
			||||||
---------------------------------------------------------------------
 | 
					---------------------------------------------------------------------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -543,7 +543,7 @@ with multithreading-DLL options (``/MD``).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you can't change compilers or flags, try using :c:func:`Py_RunSimpleString`.
 | 
					If you can't change compilers or flags, try using :c:func:`Py_RunSimpleString`.
 | 
				
			||||||
A trick to get it to run an arbitrary file is to construct a call to
 | 
					A trick to get it to run an arbitrary file is to construct a call to
 | 
				
			||||||
:func:`execfile` with the name of your file as argument.
 | 
					:func:`exec` and :func:`open` with the name of your file as argument.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Also note that you can not mix-and-match Debug and Release versions.  If you
 | 
					Also note that you can not mix-and-match Debug and Release versions.  If you
 | 
				
			||||||
wish to use the Debug Multithreaded DLL, then your module *must* have ``_d``
 | 
					wish to use the Debug Multithreaded DLL, then your module *must* have ``_d``
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -492,7 +492,7 @@ Glossary
 | 
				
			||||||
      :func:`builtins.open` and :func:`os.open` are distinguished by their
 | 
					      :func:`builtins.open` and :func:`os.open` are distinguished by their
 | 
				
			||||||
      namespaces.  Namespaces also aid readability and maintainability by making
 | 
					      namespaces.  Namespaces also aid readability and maintainability by making
 | 
				
			||||||
      it clear which module implements a function.  For instance, writing
 | 
					      it clear which module implements a function.  For instance, writing
 | 
				
			||||||
      :func:`random.seed` or :func:`itertools.izip` makes it clear that those
 | 
					      :func:`random.seed` or :func:`itertools.islice` makes it clear that those
 | 
				
			||||||
      functions are implemented by the :mod:`random` and :mod:`itertools`
 | 
					      functions are implemented by the :mod:`random` and :mod:`itertools`
 | 
				
			||||||
      modules, respectively.
 | 
					      modules, respectively.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue