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
77aad9a0
Kaydet (Commit)
77aad9a0
authored
Eyl 15, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport uuid doc cleanup from rev. 51883.
üst
fe20482a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
22 deletions
+21
-22
libuuid.tex
Doc/lib/libuuid.tex
+21
-22
No files found.
Doc/lib/libuuid.tex
Dosyayı görüntüle @
77aad9a0
...
...
@@ -95,10 +95,10 @@ The UUID as a URN as specified in RFC 4122.
\begin{memberdesc}
{
variant
}
The UUID variant, which determines the internal layout of the UUID.
This will be
an integer equal to one of the
constants
This will be
one of the integer
constants
\constant
{
RESERVED
_
NCS
}
,
\constant
{
RFC
_
4122
}
,
\constant
{
RESERVED
_
MICROSOFT
}
, or
\constant
{
RESERVED
_
FUTURE
}
)
.
\constant
{
RESERVED
_
FUTURE
}
.
\end{memberdesc}
\begin{memberdesc}
{
version
}
...
...
@@ -106,7 +106,7 @@ The UUID version number (1 through 5, meaningful only
when the variant is
\constant
{
RFC
_
4122
}
).
\end{memberdesc}
The
\module
{
uuid
}
module defines the following functions
The
\module
{
uuid
}
module defines the following functions
:
\begin{funcdesc}
{
getnode
}{}
Get the hardware address as a 48-bit positive integer. The first time this
...
...
@@ -129,11 +129,8 @@ otherwise a random 14-bit sequence number is chosen.
\index
{
uuid1
}
\begin{funcdesc}
{
uuid3
}{
namespace, name
}
Generate a UUID based upon a MD5 hash of the
\var
{
name
}
string value
drawn from a specified namespace.
\var
{
namespace
}
must be one of
\constant
{
NAMESPACE
_
DNS
}
,
\constant
{
NAMESPACE
_
URL
}
,
\constant
{
NAMESPACE
_
OID
}
,
or
\constant
{
NAMESPACE
_
X500
}
.
Generate a UUID based on the MD5 hash
of a namespace identifier (which is a UUID) and a name (which is a string).
\end{funcdesc}
\index
{
uuid3
}
...
...
@@ -143,31 +140,32 @@ Generate a random UUID.
\index
{
uuid4
}
\begin{funcdesc}
{
uuid5
}{
namespace, name
}
Generate a UUID based upon a SHA-1 hash of the
\var
{
name
}
string value
drawn from a specified namespace.
\var
{
namespace
}
must be one of
\constant
{
NAMESPACE
_
DNS
}
,
\constant
{
NAMESPACE
_
URL
}
,
\constant
{
NAMESPACE
_
OID
}
,
or
\constant
{
NAMESPACE
_
X500
}
.
Generate a UUID based on the SHA-1 hash
of a namespace identifier (which is a UUID) and a name (which is a string).
\end{funcdesc}
\index
{
uuid5
}
The
\module
{
uuid
}
module defines the following namespace
constant
s
The
\module
{
uuid
}
module defines the following namespace
identifier
s
for use with
\function
{
uuid3()
}
or
\function
{
uuid5()
}
.
\begin{datadesc}
{
NAMESPACE
_
DNS
}
Fully-qualified domain name namespace UUID.
When this namespace is specified,
the
\var
{
name
}
string is a fully-qualified domain name.
\end{datadesc}
\begin{datadesc}
{
NAMESPACE
_
URL
}
URL namespace UUID.
When this namespace is specified,
the
\var
{
name
}
string is a URL.
\end{datadesc}
\begin{datadesc}
{
NAMESPACE
_
OID
}
ISO OID namespace UUID.
When this namespace is specified,
the
\var
{
name
}
string is an ISO OID.
\end{datadesc}
\begin{datadesc}
{
NAMESPACE
_
X500
}
X.500 DN namespace UUID.
When this namespace is specified,
the
\var
{
name
}
string is an X.500 DN in DER or a text output format.
\end{datadesc}
The
\module
{
uuid
}
module defines the following constants
...
...
@@ -178,11 +176,11 @@ Reserved for NCS compatibility.
\end{datadesc}
\begin{datadesc}
{
RFC
_
4122
}
Uses UUID layout specified
in
\rfc
{
4122
}
.
Specifies the UUID layout given
in
\rfc
{
4122
}
.
\end{datadesc}
\begin{datadesc}
{
RESERVED
_
MICROSOFT
}
Reserved for Microsoft
backward
compatibility.
Reserved for Microsoft compatibility.
\end{datadesc}
\begin{datadesc}
{
RESERVED
_
FUTURE
}
...
...
@@ -192,12 +190,13 @@ Reserved for future definition.
\begin{seealso}
\seerfc
{
4122
}{
A Universally Unique IDentifier (UUID) URN Namespace
}{
This specifies a Uniform Resource Name namespace for UUIDs.
}
This specification defines a Uniform Resource Name namespace for UUIDs,
the internal format of UUIDs, and methods of generating UUIDs.
}
\end{seealso}
\subsection
{
Example
\label
{
uuid-example
}}
Here
is a typical usag
e:
Here
are some examples of typical usage of the
\module
{
uuid
}
modul
e:
\begin{verbatim}
>>> import uuid
...
...
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