Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
081bb457
Commit
081bb457
authored
Oct 03, 2008
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo fix
parent
d7b7dde9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Doc/whatsnew/2.2.rst
Doc/whatsnew/2.2.rst
+1
-1
Lib/test/test_datetime.py
Lib/test/test_datetime.py
+1
-1
No files found.
Doc/whatsnew/2.2.rst
View file @
081bb457
...
...
@@ -714,7 +714,7 @@ Python's division operator, ``/``, behaves like C's division operator when
presented with two integer arguments: it returns an integer result that's
truncated down when there would be a fractional part. For example, ``3/2`` is
1, not 1.5, and ``(-1)/2`` is -1, not -0.5. This means that the results of
divison can vary unexpectedly depending on the type of the two operands and
divis
i
on can vary unexpectedly depending on the type of the two operands and
because Python is dynamically typed, it can be difficult to determine the
possible types of the operands.
...
...
Lib/test/test_datetime.py
View file @
081bb457
...
...
@@ -253,7 +253,7 @@ class TestTimeDelta(HarmlessMixedComparison, unittest.TestCase):
self
.
assertRaises
(
TypeError
,
lambda
:
a
//
x
)
self
.
assertRaises
(
TypeError
,
lambda
:
x
//
a
)
# Divison of int by timedelta doesn't make sense.
# Divis
i
on of int by timedelta doesn't make sense.
# Division by zero doesn't make sense.
for
zero
in
0
,
0L
:
self
.
assertRaises
(
TypeError
,
lambda
:
zero
//
a
)
...
...
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