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
6006629c
Commit
6006629c
authored
Oct 15, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete __dynamic__ distinction.
parent
1ce150c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
76 deletions
+1
-76
Lib/test/test_inspect.py
Lib/test/test_inspect.py
+1
-74
Lib/xml/dom/minidom.py
Lib/xml/dom/minidom.py
+0
-2
No files found.
Lib/test/test_inspect.py
View file @
6006629c
...
@@ -297,10 +297,9 @@ test(('m', 'method', B) in attrs, 'missing plain method')
...
@@ -297,10 +297,9 @@ test(('m', 'method', B) in attrs, 'missing plain method')
test
((
'm1'
,
'method'
,
D
)
in
attrs
,
'missing plain method'
)
test
((
'm1'
,
'method'
,
D
)
in
attrs
,
'missing plain method'
)
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
# Repeat all that, but w/ new-style
non-dynamic
classes.
# Repeat all that, but w/ new-style classes.
class
A
(
object
):
class
A
(
object
):
__dynamic__
=
0
def
s
():
pass
def
s
():
pass
s
=
staticmethod
(
s
)
s
=
staticmethod
(
s
)
...
@@ -326,7 +325,6 @@ test(('m1', 'method', A) in attrs, 'missing plain method')
...
@@ -326,7 +325,6 @@ test(('m1', 'method', A) in attrs, 'missing plain method')
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
class
B
(
A
):
class
B
(
A
):
__dynamic__
=
0
def
m
(
self
):
pass
def
m
(
self
):
pass
...
@@ -340,7 +338,6 @@ test(('datablob', 'data', A) in attrs, 'missing data')
...
@@ -340,7 +338,6 @@ test(('datablob', 'data', A) in attrs, 'missing data')
class
C
(
A
):
class
C
(
A
):
__dynamic__
=
0
def
m
(
self
):
pass
def
m
(
self
):
pass
def
c
(
self
):
pass
def
c
(
self
):
pass
...
@@ -354,76 +351,6 @@ test(('m1', 'method', A) in attrs, 'missing plain method')
...
@@ -354,76 +351,6 @@ test(('m1', 'method', A) in attrs, 'missing plain method')
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
class
D
(
B
,
C
):
class
D
(
B
,
C
):
__dynamic__
=
0
def
m1
(
self
):
pass
attrs
=
attrs_wo_objs
(
D
)
test
((
's'
,
'static method'
,
A
)
in
attrs
,
'missing static method'
)
test
((
'c'
,
'method'
,
C
)
in
attrs
,
'missing plain method'
)
test
((
'p'
,
'property'
,
A
)
in
attrs
,
'missing property'
)
test
((
'm'
,
'method'
,
B
)
in
attrs
,
'missing plain method'
)
test
((
'm1'
,
'method'
,
D
)
in
attrs
,
'missing plain method'
)
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
# And again, but w/ new-style dynamic classes.
class
A
(
object
):
__dynamic__
=
1
def
s
():
pass
s
=
staticmethod
(
s
)
def
c
(
cls
):
pass
c
=
classmethod
(
c
)
def
getp
(
self
):
pass
p
=
property
(
getp
)
def
m
(
self
):
pass
def
m1
(
self
):
pass
datablob
=
'1'
attrs
=
attrs_wo_objs
(
A
)
test
((
's'
,
'static method'
,
A
)
in
attrs
,
'missing static method'
)
test
((
'c'
,
'class method'
,
A
)
in
attrs
,
'missing class method'
)
test
((
'p'
,
'property'
,
A
)
in
attrs
,
'missing property'
)
test
((
'm'
,
'method'
,
A
)
in
attrs
,
'missing plain method'
)
test
((
'm1'
,
'method'
,
A
)
in
attrs
,
'missing plain method'
)
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
class
B
(
A
):
__dynamic__
=
1
def
m
(
self
):
pass
attrs
=
attrs_wo_objs
(
B
)
test
((
's'
,
'static method'
,
A
)
in
attrs
,
'missing static method'
)
test
((
'c'
,
'class method'
,
A
)
in
attrs
,
'missing class method'
)
test
((
'p'
,
'property'
,
A
)
in
attrs
,
'missing property'
)
test
((
'm'
,
'method'
,
B
)
in
attrs
,
'missing plain method'
)
test
((
'm1'
,
'method'
,
A
)
in
attrs
,
'missing plain method'
)
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
class
C
(
A
):
__dynamic__
=
1
def
m
(
self
):
pass
def
c
(
self
):
pass
attrs
=
attrs_wo_objs
(
C
)
test
((
's'
,
'static method'
,
A
)
in
attrs
,
'missing static method'
)
test
((
'c'
,
'method'
,
C
)
in
attrs
,
'missing plain method'
)
test
((
'p'
,
'property'
,
A
)
in
attrs
,
'missing property'
)
test
((
'm'
,
'method'
,
C
)
in
attrs
,
'missing plain method'
)
test
((
'm1'
,
'method'
,
A
)
in
attrs
,
'missing plain method'
)
test
((
'datablob'
,
'data'
,
A
)
in
attrs
,
'missing data'
)
class
D
(
B
,
C
):
__dynamic__
=
1
def
m1
(
self
):
pass
def
m1
(
self
):
pass
...
...
Lib/xml/dom/minidom.py
View file @
6006629c
...
@@ -34,8 +34,6 @@ import xml.dom
...
@@ -34,8 +34,6 @@ import xml.dom
if
list
is
type
([]):
if
list
is
type
([]):
class
NodeList
(
list
):
class
NodeList
(
list
):
__dynamic__
=
0
def
item
(
self
,
index
):
def
item
(
self
,
index
):
if
0
<=
index
<
len
(
self
):
if
0
<=
index
<
len
(
self
):
return
self
[
index
]
return
self
[
index
]
...
...
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