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
597ac207
Commit
597ac207
authored
May 12, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trivial little change: timer tokens shouldn't have a Print() function,
they should have a Repr() function.
parent
b298a300
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Modules/_tkinter.c
Modules/_tkinter.c
+7
-8
No files found.
Modules/_tkinter.c
View file @
597ac207
...
...
@@ -1286,17 +1286,16 @@ Tktt_Dealloc(self)
PyMem_DEL
(
self
);
}
static
int
Tktt_
Print
(
self
,
fp
,
flags
)
static
PyObject
*
Tktt_
Repr
(
self
)
PyObject
*
self
;
FILE
*
fp
;
int
flags
;
{
TkttObject
*
v
=
(
TkttObject
*
)
self
;
char
buf
[
100
];
fprintf
(
fp
,
"<tktimertoken at 0x%lx%s>"
,
(
long
)
v
,
sprintf
(
buf
,
"<tktimertoken at 0x%lx%s>"
,
(
long
)
v
,
v
->
func
==
NULL
?
", handler deleted"
:
""
);
return
0
;
return
PyString_FromString
(
buf
)
;
}
static
PyObject
*
...
...
@@ -1315,11 +1314,11 @@ static PyTypeObject Tktt_Type =
sizeof
(
TkttObject
),
/*tp_basicsize */
0
,
/*tp_itemsize */
Tktt_Dealloc
,
/*tp_dealloc */
Tktt_Print
,
/*tp_print */
0
,
/*tp_print */
Tktt_GetAttr
,
/*tp_getattr */
0
,
/*tp_setattr */
0
,
/*tp_compare */
0
,
/*tp_repr */
Tktt_Repr
,
/*tp_repr */
0
,
/*tp_as_number */
0
,
/*tp_as_sequence */
0
,
/*tp_as_mapping */
...
...
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