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
f854cf2f
Commit
f854cf2f
authored
Feb 06, 2015
by
Travis Hance
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved test case for type __name__
parent
3dbee69b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
test/tests/classname.py
test/tests/classname.py
+22
-0
No files found.
test/tests/classname.py
View file @
f854cf2f
...
...
@@ -10,3 +10,25 @@ print C
C
.
__module__
=
1
print
C
def
set_name
(
cls
,
name
):
try
:
cls
.
__name__
=
name
except
Exception
as
e
:
print
type
(
e
),
e
print
cls
def
del_name
(
cls
):
try
:
del
cls
.
__name__
except
Exception
as
e
:
print
type
(
e
),
e
print
cls
set_name
(
int
,
"bob"
)
#TODO implement __del__ for getset descriptors
#del_name(int)
#del_name(C)
set_name
(
C
,
5
)
set_name
(
C
,
"b
\
0
b"
)
set_name
(
C
,
"car"
)
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