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
371935fc
Kaydet (Commit)
371935fc
authored
Şub 01, 2003
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
All over: changed comments to reflect pickling is straightforward now,
not the maze it was.
üst
8a60c223
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
datetimemodule.c
Modules/datetimemodule.c
+5
-7
No files found.
Modules/datetimemodule.c
Dosyayı görüntüle @
371935fc
...
@@ -1947,8 +1947,8 @@ delta_str(PyDateTime_Delta *self)
...
@@ -1947,8 +1947,8 @@ delta_str(PyDateTime_Delta *self)
return
NULL
;
return
NULL
;
}
}
/* Pickle support
. This is a plain application of __reduce__.
/* Pickle support
, a simple use of __reduce__. */
*/
static
PyObject
*
static
PyObject
*
delta_getstate
(
PyDateTime_Delta
*
self
)
delta_getstate
(
PyDateTime_Delta
*
self
)
{
{
...
@@ -2523,7 +2523,7 @@ date_weekday(PyDateTime_Date *self)
...
@@ -2523,7 +2523,7 @@ date_weekday(PyDateTime_Date *self)
return
PyInt_FromLong
(
dow
);
return
PyInt_FromLong
(
dow
);
}
}
/* Pickle support
. Quite a maze!
*/
/* Pickle support
, a simple use of __reduce__.
*/
static
PyObject
*
static
PyObject
*
date_getstate
(
PyDateTime_Date
*
self
)
date_getstate
(
PyDateTime_Date
*
self
)
...
@@ -3335,9 +3335,7 @@ time_nonzero(PyDateTime_Time *self)
...
@@ -3335,9 +3335,7 @@ time_nonzero(PyDateTime_Time *self)
return
(
TIME_GET_MINUTE
(
self
)
-
offset
+
TIME_GET_HOUR
(
self
)
*
60
)
!=
0
;
return
(
TIME_GET_MINUTE
(
self
)
-
offset
+
TIME_GET_HOUR
(
self
)
*
60
)
!=
0
;
}
}
/*
/* Pickle support, a simple use of __reduce__. */
* Pickle support. Quite a maze!
*/
/* Let basestate be the non-tzinfo data string.
/* Let basestate be the non-tzinfo data string.
* If tzinfo is None, this returns (basestate,), else (basestate, tzinfo).
* If tzinfo is None, this returns (basestate,), else (basestate, tzinfo).
...
@@ -4337,7 +4335,7 @@ datetime_utctimetuple(PyDateTime_DateTime *self)
...
@@ -4337,7 +4335,7 @@ datetime_utctimetuple(PyDateTime_DateTime *self)
return
build_struct_time
(
y
,
m
,
d
,
hh
,
mm
,
ss
,
0
);
return
build_struct_time
(
y
,
m
,
d
,
hh
,
mm
,
ss
,
0
);
}
}
/* Pickle support
. Quite a maze!
*/
/* Pickle support
, a simple use of __reduce__.
*/
/* Let basestate be the non-tzinfo data string.
/* Let basestate be the non-tzinfo data string.
* If tzinfo is None, this returns (basestate,), else (basestate, tzinfo).
* If tzinfo is None, this returns (basestate,), else (basestate, tzinfo).
...
...
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