Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6f2bbd35
Kaydet (Commit)
6f2bbd35
authored
Agu 24, 2005
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bug [ 1193849 ] os.path.expanduser documentation wrt. empty $HOME
üst
38387b8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
libposixpath.tex
Doc/lib/libposixpath.tex
+16
-8
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/lib/libposixpath.tex
Dosyayı görüntüle @
6f2bbd35
...
...
@@ -55,12 +55,20 @@ Equivalent to \function{exists()} on platforms lacking
\end{funcdesc}
\begin{funcdesc}
{
expanduser
}{
path
}
Return the argument with an initial component of
\samp
{
\~
}
or
\samp
{
\~\var
{
user
}}
replaced by that
\var
{
user
}
's home directory. An
initial
\samp
{
\~
{}}
is replaced by the environment variable
\envvar
{
HOME
}
; an initial
\samp
{
\~\var
{
user
}}
is looked up in the
password directory through the built-in module
\refmodule
{
pwd
}
\refbimodindex
{
pwd
}
. If the expansion fails, or if the
On
\UNIX
, return the argument with an initial component of
\samp
{
\~
}
or
\samp
{
\~\var
{
user
}}
replaced by that
\var
{
user
}
's home directory.
An initial
\samp
{
\~
}
is replaced by the environment variable
\envvar
{
HOME
}
if it is set; otherwise the current user's home directory
is looked up in the password directory through the built-in module
\refmodule
{
pwd
}
\refbimodindex
{
pwd
}
.
An initial
\samp
{
\~\var
{
user
}}
is looked up directly in the
password directory.
On Windows, only
\samp
{
\~
}
is supported; it is replaced by the
environment variable
\envvar
{
HOME
}
or by a combination of
\envvar
{
HOMEDRIVE
}
and
\envvar
{
HOMEPATH
}
.
If the expansion fails or if the
path does not begin with a tilde, the path is returned unchanged.
\end{funcdesc}
...
...
@@ -158,7 +166,7 @@ slashes.
\begin{funcdesc}
{
normpath
}{
path
}
Normalize a pathname. This collapses redundant separators and
up-level references
, e.g.
\code
{
A//B
}
,
\code
{
A/./B
}
and
up-level references
so that
\code
{
A//B
}
,
\code
{
A/./B
}
and
\code
{
A/foo/../B
}
all become
\code
{
A/B
}
. It does not normalize the
case (use
\function
{
normcase()
}
for that). On Windows, it converts
forward slashes to backward slashes. It should be understood that this may
...
...
@@ -234,7 +242,7 @@ is a directory). The argument \var{dirname} specifies the visited
directory, the argument
\var
{
names
}
lists the files in the directory
(gotten from
\code
{
os.listdir(
\var
{
dirname
}
)
}
).
The
\var
{
visit
}
function may modify
\var
{
names
}
to
influence the set of directories visited below
\var
{
dirname
}
, e.g.
,
to
influence the set of directories visited below
\var
{
dirname
}
, e.g. to
avoid visiting certain parts of the tree. (The object referred to by
\var
{
names
}
must be modified in place, using
\keyword
{
del
}
or slice
assignment.)
...
...
Misc/NEWS
Dosyayı görüntüle @
6f2bbd35
...
...
@@ -456,6 +456,8 @@ Tests
Documentation
-------------
-
Bug
#
1193849
:
Clarify
os
.
path
.
expanduser
()
documentation
.
-
Bug
#
1243192
:
re
.
UNICODE
and
re
.
LOCALE
affect
\
d
,
\
D
,
\
s
and
\
S
.
-
Bug
#
755617
:
Document
the
effects
of
os
.
chown
()
on
Windows
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment