mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	merge for issue #19963
This commit is contained in:
		
						commit
						706a7296d7
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -82,10 +82,13 @@ Functions
 | 
				
			||||||
    derived from :func:`importlib.__import__`, including requiring the package
 | 
					    derived from :func:`importlib.__import__`, including requiring the package
 | 
				
			||||||
    from which an import is occurring to have been previously imported
 | 
					    from which an import is occurring to have been previously imported
 | 
				
			||||||
    (i.e., *package* must already be imported). The most important difference
 | 
					    (i.e., *package* must already be imported). The most important difference
 | 
				
			||||||
    is that :func:`import_module` returns the most nested package or module
 | 
					    is that :func:`import_module` returns the specified package or module
 | 
				
			||||||
    that was imported (e.g. ``pkg.mod``), while :func:`__import__` returns the
 | 
					    (e.g. ``pkg.mod``), while :func:`__import__` returns the
 | 
				
			||||||
    top-level package or module (e.g. ``pkg``).
 | 
					    top-level package or module (e.g. ``pkg``).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    .. versionchanged:: 3.3
 | 
				
			||||||
 | 
					       Parent packages are automatically imported.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. function:: find_loader(name, path=None)
 | 
					.. function:: find_loader(name, path=None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   Find the loader for a module, optionally within the specified *path*. If the
 | 
					   Find the loader for a module, optionally within the specified *path*. If the
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue