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
fe33d0ba
Kaydet (Commit)
fe33d0ba
authored
Ock 16, 2005
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Default stat_float_times to true.
üst
22b457e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
libos.tex
Doc/lib/libos.tex
+7
-11
NEWS
Misc/NEWS
+2
-0
posixmodule.c
Modules/posixmodule.c
+1
-1
No files found.
Doc/lib/libos.tex
Dosyayı görüntüle @
fe33d0ba
...
...
@@ -1012,17 +1012,13 @@ objects. If newval is True, future calls to stat() return floats, if
it is False, future calls return ints. If newval is omitted, return
the current setting.
For compatibility with older Python versions, accessing
\class
{
stat
_
result
}
as a tuple always returns integers. For
compatibility with Python 2.2, accessing the time stamps by field name
also returns integers. Applications that want to determine the
fractions of a second in a time stamp can use this function to have
time stamps represented as floats. Whether they will actually observe
non-zero fractions depends on the system.
Future Python releases will change the default of this setting;
applications that cannot deal with floating point time stamps can then
use this function to turn the feature off.
\versionchanged
[Python now returns float values by default. Applications
which do not work correctly with floating point time stamps can use
this function to restore the old behaviour]
{
2.5
}
The resolution of the timestamps (i.e. the smallest possible fraction)
depends on the system. Some systems only support second resolution;
on these systems, the fraction will always be zero.
It is recommended that this setting is only changed at program startup
time in the
\var
{__
main
__}
module; libraries should never change this
...
...
Misc/NEWS
Dosyayı görüntüle @
fe33d0ba
...
...
@@ -22,6 +22,8 @@ Core and builtins
Extension Modules
-----------------
- stat_float_times is now True.
- array.array objects are now picklable.
- the cPickle module no longer accepts the deprecated None option in the
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
fe33d0ba
...
...
@@ -789,7 +789,7 @@ statresult_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
/* If true, st_?time is float. */
static
int
_stat_float_times
=
0
;
static
int
_stat_float_times
=
1
;
PyDoc_STRVAR
(
stat_float_times__doc__
,
"stat_float_times([newval]) -> oldval
\n\n
\
...
...
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