Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
12e6a776
Commit
12e6a776
authored
Mar 12, 2023
by
Mikael Lövqvist
Committed by
GitHub
Mar 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected a few typos
parent
90f912c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/ZODB/utils.rst
src/ZODB/utils.rst
+3
-3
No files found.
src/ZODB/utils.rst
View file @
12e6a776
...
...
@@ -15,7 +15,7 @@ more.
ZODB uses 64-bit transaction ids that are typically represented as
strings, but are sometimes manipulated as integers. Object ids are
strings too and it is common to
i
se 64-bit strings that are just
strings too and it is common to
u
se 64-bit strings that are just
packed integers.
Functions p64 and u64 pack and unpack integers as strings:
...
...
@@ -26,7 +26,7 @@ Functions p64 and u64 pack and unpack integers as strings:
>>> print(ZODB.utils.u64(b'\x03yi\xf7"\xa8\xfb '))
250347764455111456
The contant z64 has zero packed as a 64-bit string:
The con
s
tant z64 has zero packed as a 64-bit string:
>>> ZODB.utils.z64
'\x00\x00\x00\x00\x00\x00\x00\x00'
...
...
@@ -36,7 +36,7 @@ Transaction id generation
Storages assign transaction ids as transactions are committed. These
are based on UTC time, but must be strictly increasing. The
newTid function akes this pretty easy.
newTid function
m
akes this pretty easy.
To see this work (in a predictable way), we'll first hack time.time:
...
...
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