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
ec3402f2
Commit
ec3402f2
authored
Dec 05, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo
parent
bd3a240e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/tut/tut.tex
Doc/tut/tut.tex
+4
-4
No files found.
Doc/tut/tut.tex
View file @
ec3402f2
...
...
@@ -4454,7 +4454,7 @@ running \samp{python demo.py one two three} at the command line:
\begin
{
verbatim
}
>>> import sys
>>> print sys.argv
[]
>>> print sys.argv
[
'demo.py', 'one', 'two', 'three'
]
\end
{
verbatim
}
...
...
@@ -4500,7 +4500,7 @@ optimized solutions:
\section
{
Mathematics
\label
{
mathematics
}}
The
\ulink
{
\module
{
math
}}{
..
/
lib
/
module
-
math.html
}
m
ath m
odule gives
The
\ulink
{
\module
{
math
}}{
..
/
lib
/
module
-
math.html
}
module gives
access to the underlying C library functions for floating point math:
\begin
{
verbatim
}
...
...
@@ -4618,9 +4618,9 @@ quickly demonstrates that the traditional approach is faster:
\begin
{
verbatim
}
>>> from timeit import Timer
>>> dir
(
Timer
)
>>> Timer
(
't
=
a; a
=
b; b
=
t', 'a
=
1
; b
=
1
'
)
.timeit
()
>>> Timer
(
't
=
a; a
=
b; b
=
t', 'a
=
1
; b
=
2
'
)
.timeit
()
0
.
60864915603680925
>>> Timer
(
'a,b
=
b,a', 'a
=
1
; b
=
1
'
)
.timeit
()
>>> Timer
(
'a,b
=
b,a', 'a
=
1
; b
=
2
'
)
.timeit
()
0
.
8625194857439773
\end
{
verbatim
}
...
...
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