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
7b3cc06a
Kaydet (Commit)
7b3cc06a
authored
Ara 03, 2007
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Forward-port r59310:
os.access now returns True on Windows for any existing directory.
üst
e227263a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
NEWS
Misc/NEWS
+2
-0
posixmodule.c
Modules/posixmodule.c
+5
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
7b3cc06a
...
...
@@ -310,6 +310,8 @@ Core and builtins
Library
-------
- os.access now returns True on Windows for any existing directory.
- Issue #1727780: Support loading pickles of random.Random objects created
on 32-bit systems on 64-bit systems, and vice versa. As a consequence
of the change, Random pickles created by Python 2.6 cannot be loaded
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
7b3cc06a
...
...
@@ -1540,8 +1540,11 @@ finish:
/* File does not exist, or cannot read attributes */
return
PyBool_FromLong
(
0
);
/* Access is possible if either write access wasn't requested, or
the file isn't read-only. */
return PyBool_FromLong(!(mode & 2) || !(attr & FILE_ATTRIBUTE_READONLY));
the file isn't read-only, or if it's a directory, as there are
no read-only directories on Windows. */
return
PyBool_FromLong
(
!
(
mode
&
2
)
||
!
(
attr
&
FILE_ATTRIBUTE_READONLY
)
||
(
attr
&
FILE_ATTRIBUTE_DIRECTORY
));
#else
int
res
;
if
(
!
PyArg_ParseTuple
(
args
,
"eti:access"
,
...
...
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