On this page
  1. uuid.int_
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

uuid.int_

Prev: uuid.getnode | Up: uuid | Next: uuid.main
Rel: uuid.bytes_, uuid.Enum, uuid.getnode, uuid.main
Ref: docs.python.org — uuid.int_
Tags: #public #python3 #stdlib #uuid


Import

import uuid
from uuid import int_

Signature & Overview

uuid.int_(...)

int(x, base=10) -> integer Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating-point

Methods & Attributes

Usage

import uuid

# Pass int= to uuid.UUID(int=n)
assert uuid.UUID(int=0) == uuid.UUID('00000000-0000-0000-0000-000000000000')

Gotchas

REPL Inspect

from uuid import int_
help(int_)

Linked from

Related notes