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
81b64ff0
Kaydet (Commit)
81b64ff0
authored
Ara 31, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #26267: Merge from 3.6
üst
d489ac91
9db22dd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
uuid.rst
Doc/library/uuid.rst
+7
-0
test_uuid.py
Lib/test/test_uuid.py
+4
-0
No files found.
Doc/library/uuid.rst
Dosyayı görüntüle @
81b64ff0
...
...
@@ -45,6 +45,13 @@ random UUID.
variant and version number set according to RFC 4122, overriding bits in the
given *hex*, *bytes*, *bytes_le*, *fields*, or *int*.
Comparison of UUID objects are made by way of comparing their
:attr:`UUID.int` attributes. Comparison with a non-UUID object
raises a :exc:`TypeError`.
``str(uuid)`` returns a string in the form
``12345678-1234-5678-1234-567812345678`` where the 32 hexadecimal digits
represent the UUID.
:class:`UUID` instances have these read-only attributes:
...
...
Lib/test/test_uuid.py
Dosyayı görüntüle @
81b64ff0
...
...
@@ -292,6 +292,10 @@ class TestUUID(unittest.TestCase):
badtype
(
lambda
:
setattr
(
u
,
'clock_seq_low'
,
0
))
badtype
(
lambda
:
setattr
(
u
,
'node'
,
0
))
# Comparison with a non-UUID object
badtype
(
lambda
:
u
<
object
())
badtype
(
lambda
:
u
>
object
())
def
test_getnode
(
self
):
node1
=
uuid
.
getnode
()
self
.
assertTrue
(
0
<
node1
<
(
1
<<
48
),
'
%012
x'
%
node1
)
...
...
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