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
8f23be71
Commit
8f23be71
authored
Dec 18, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iobench.py: add more info in the header
Write the Python version, Unicode implementation and the platform.
parent
35734762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
Tools/iobench/iobench.py
Tools/iobench/iobench.py
+15
-4
No files found.
Tools/iobench/iobench.py
View file @
8f23be71
# -*- coding: utf-8 -*-
# This file should be kept compatible with both Python 2.6 and Python >= 3.0.
import
time
import
functools
import
hashlib
import
itertools
import
os
import
platform
import
re
import
sys
import
hashlib
import
functools
import
itertools
import
time
from
optparse
import
OptionParser
out
=
sys
.
stdout
...
...
@@ -307,6 +308,16 @@ def run_all_tests(options):
"large"
:
2
,
}
print
(
"Python %s"
%
sys
.
version
)
if
sys
.
version_info
<
(
3
,
3
):
if
sys
.
maxunicode
>
0xffff
:
text
=
"UCS-4 (wide build)"
else
:
text
=
"UTF-16 (narrow build)"
else
:
text
=
"PEP 393"
print
(
"Unicode: %s"
%
text
)
print
(
platform
.
platform
())
binary_files
=
list
(
get_binary_files
())
text_files
=
list
(
get_text_files
())
if
"b"
in
options
:
...
...
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