mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Add normpath(). Clarify normcase(). (Note -- this doc section
probably needs more work, describing new functions and the differences between unix/mac/win.
This commit is contained in:
		
							parent
							
								
									daa2d5d4ea
								
							
						
					
					
						commit
						1931c0c961
					
				
					 2 changed files with 24 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -90,9 +90,18 @@ between components, unless \var{p} is empty.
 | 
			
		|||
\end{funcdesc}
 | 
			
		||||
 | 
			
		||||
\begin{funcdesc}{normcase}{p}
 | 
			
		||||
Normalize the case of a pathname.  This returns the path unchanged;
 | 
			
		||||
however, a similar function in \code{macpath} converts upper case to
 | 
			
		||||
lower case.
 | 
			
		||||
Normalize the case of a pathname.  On \UNIX{}, this returns the path
 | 
			
		||||
unchanged; on case-insensitive filesystems, it converts the path to
 | 
			
		||||
lowercase.  On Windows, it also converts forward slashes to backward
 | 
			
		||||
slashes.
 | 
			
		||||
\end{funcdesc}
 | 
			
		||||
 | 
			
		||||
\begin{funcdesc}{normpath}{p}
 | 
			
		||||
Normalize a pathname.  This collapses redundant separators and
 | 
			
		||||
up-level references, e.g. \code{A//B}, \code{A/./B} and
 | 
			
		||||
\code{A/foo/../B} all become \code{A/B}.  It does not normalize the
 | 
			
		||||
case (use \code{normcase()} for that).  On Windows, it does converts
 | 
			
		||||
forward slashes to backward slashes.
 | 
			
		||||
\end{funcdesc}
 | 
			
		||||
 | 
			
		||||
\begin{funcdesc}{samefile}{p\, q}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -90,9 +90,18 @@ between components, unless \var{p} is empty.
 | 
			
		|||
\end{funcdesc}
 | 
			
		||||
 | 
			
		||||
\begin{funcdesc}{normcase}{p}
 | 
			
		||||
Normalize the case of a pathname.  This returns the path unchanged;
 | 
			
		||||
however, a similar function in \code{macpath} converts upper case to
 | 
			
		||||
lower case.
 | 
			
		||||
Normalize the case of a pathname.  On \UNIX{}, this returns the path
 | 
			
		||||
unchanged; on case-insensitive filesystems, it converts the path to
 | 
			
		||||
lowercase.  On Windows, it also converts forward slashes to backward
 | 
			
		||||
slashes.
 | 
			
		||||
\end{funcdesc}
 | 
			
		||||
 | 
			
		||||
\begin{funcdesc}{normpath}{p}
 | 
			
		||||
Normalize a pathname.  This collapses redundant separators and
 | 
			
		||||
up-level references, e.g. \code{A//B}, \code{A/./B} and
 | 
			
		||||
\code{A/foo/../B} all become \code{A/B}.  It does not normalize the
 | 
			
		||||
case (use \code{normcase()} for that).  On Windows, it does converts
 | 
			
		||||
forward slashes to backward slashes.
 | 
			
		||||
\end{funcdesc}
 | 
			
		||||
 | 
			
		||||
\begin{funcdesc}{samefile}{p\, q}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue