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
2cc1ed16
Commit
2cc1ed16
authored
Jan 15, 2008
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily revert 59967 until GC can be added.
parent
81fa749a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
12 deletions
+1
-12
Lib/test/test_structseq.py
Lib/test/test_structseq.py
+0
-6
Misc/ACKS
Misc/ACKS
+0
-1
Misc/NEWS
Misc/NEWS
+0
-4
Objects/structseq.c
Objects/structseq.c
+1
-1
No files found.
Lib/test/test_structseq.py
View file @
2cc1ed16
...
...
@@ -26,12 +26,6 @@ class StructSeqTest(unittest.TestCase):
for
i
in
xrange
(
-
len
(
t
),
len
(
t
)
-
1
):
self
.
assertEqual
(
t
[
i
],
astuple
[
i
])
def
test_tuple_subclass
(
self
):
# Issue 1820
t
=
time
.
localtime
()
s
=
(
'%s '
*
len
(
t
))
%
t
# This used to fail because t was not a tuple subclass
self
.
assert_
(
isinstance
(
t
,
tuple
))
def
test_repr
(
self
):
t
=
time
.
gmtime
()
self
.
assert_
(
repr
(
t
))
...
...
Misc/ACKS
View file @
2cc1ed16
...
...
@@ -686,7 +686,6 @@ Wojtek Walczak
Charles Waldman
Richard Walker
Larry Wall
Leif Walsh
Greg Ward
Barry Warsaw
Steve Waterbury
...
...
Misc/NEWS
View file @
2cc1ed16
...
...
@@ -975,10 +975,6 @@ Library
Extension
Modules
-----------------
-
Issue
1820
:
structseq
objects
did
not
subclass
from
tuple
so
they
did
not
pass
isinstance
(
t
,
tuple
)
tests
and
they
could
not
be
passed
to
the
%
string
formatting
operator
as
an
input
tuple
.
-
_winreg
's HKEY object has gained __enter__ and __exit__ methods to support
the context manager protocol. The _winreg module also gained a new function
``ExpandEnvironmentStrings`` to expand REG_EXPAND_SZ keys.
...
...
Objects/structseq.c
View file @
2cc1ed16
...
...
@@ -460,7 +460,7 @@ static PyTypeObject _struct_sequence_template = {
structseq_methods
,
/* tp_methods */
NULL
,
/* tp_members */
0
,
/* tp_getset */
&
PyTuple_Type
,
/* tp_base */
0
,
/* tp_base */
0
,
/* tp_dict */
0
,
/* tp_descr_get */
0
,
/* tp_descr_set */
...
...
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