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
e2e86b78
Commit
e2e86b78
authored
May 01, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backslash normalization.
parent
21c189d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
trunk/doc/guide/modules.tex
trunk/doc/guide/modules.tex
+3
-3
No files found.
trunk/doc/guide/modules.tex
View file @
e2e86b78
...
...
@@ -170,7 +170,7 @@ Total ordering means three things:
\item
Transitivity. Whenever
\code
{
\var
{
x
}
<=
\var
{
y
}}
and
\code
{
\var
{
y
}
<=
\var
{
z
}}
, it's also true that
\code
{
\var
{
x
}
<=
\var
{
z
}}
.
end
{
enumerate
}
\
end{enumerate}
The default comparison functions for most objects that come with Python
satisfy these rules, with some crucial cautions explained later. Complex
...
...
@@ -268,7 +268,7 @@ results within a single program run).
Another problem occurs with instances of classes that do define
\method
{__
cmp
__
()
}
, but define it incorrectly. It's possible but
rare for a custom
\method
\
{
__
cmp
__
()
}
implementation to violate one
rare for a custom
\method
{__
cmp
__
()
}
implementation to violate one
of the three required formal properties directly. It's more common for
it to fall back" to address-based comparison by mistake.
For example,
...
...
@@ -313,4 +313,4 @@ only with great care:
Any part of a comparison implementation that relies (explicitly
or implicitly) on an address-based comparison result will
eventually cause serious failure.
end
{
enumerate
}
\
end{enumerate}
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