Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Boxiang Sun
Pyston
Commits
f9b80106
Commit
f9b80106
authored
Aug 04, 2015
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test file for future builtin functions
parent
b26e85f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
test/tests/builtins_future.py
test/tests/builtins_future.py
+21
-0
No files found.
test/tests/builtins_future.py
0 → 100644
View file @
f9b80106
from
future_builtins
import
hex
,
oct
,
map
,
zip
,
filter
from
itertools
import
imap
,
izip
,
ifilter
value_list1
=
[
0
,
42
,
42L
,
-
42
,
-
42L
,
""
,
(),
{},
[]]
value_list2
=
[
0
,
100
,
100L
,
-
100
,
-
100L
]
for
value1
in
value_list1
:
try
:
print
(
hex
(
value1
))
except
Exception
as
e
:
print
(
type
(
e
),
e
.
message
)
for
value2
in
value_list2
:
try
:
print
(
oct
(
value2
))
except
Exception
as
e
:
print
(
type
(
e
),
e
.
message
)
print
(
map
==
imap
)
print
(
zip
==
izip
)
print
(
filter
==
ifilter
)
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