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
b5b5a260
Commit
b5b5a260
authored
Jun 04, 2002
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SF bug #557436, TclError is a str should be an Exception
Make Tkinter.TclError derive from Exception, it was a string.
parent
293dd4b7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Misc/NEWS
Misc/NEWS
+4
-0
Modules/_tkinter.c
Modules/_tkinter.c
+1
-1
No files found.
Misc/NEWS
View file @
b5b5a260
...
@@ -124,6 +124,10 @@ Extension modules
...
@@ -124,6 +124,10 @@ Extension modules
Library
Library
- Stop using strings for exceptions. String objects used for exceptions
now derive from Exception. The objects changed were: Tkinter.TclError,
bdb.BdbQuit, macpath.norm_error, tabnanny.NannyNag, and xdrlib.Error.
- Constants BOM_UTF8, BOM_UTF16, BOM_UTF16_LE, BOM_UTF16_BE,
- Constants BOM_UTF8, BOM_UTF16, BOM_UTF16_LE, BOM_UTF16_BE,
BOM_UTF32, BOM_UTF32_LE and BOM_UTF32_BE that represent the Byte
BOM_UTF32, BOM_UTF32_LE and BOM_UTF32_BE that represent the Byte
Order Mark in UTF-8, UTF-16 and UTF-32 encodings for little and
Order Mark in UTF-8, UTF-16 and UTF-32 encodings for little and
...
...
Modules/_tkinter.c
View file @
b5b5a260
...
@@ -2123,7 +2123,7 @@ init_tkinter(void)
...
@@ -2123,7 +2123,7 @@ init_tkinter(void)
m
=
Py_InitModule
(
"_tkinter"
,
moduleMethods
);
m
=
Py_InitModule
(
"_tkinter"
,
moduleMethods
);
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
Tkinter_TclError
=
Py
_BuildValue
(
"s"
,
"TclError"
);
Tkinter_TclError
=
Py
Err_NewException
(
"_tkinter.TclError"
,
NULL
,
NULL
);
PyDict_SetItemString
(
d
,
"TclError"
,
Tkinter_TclError
);
PyDict_SetItemString
(
d
,
"TclError"
,
Tkinter_TclError
);
ins_long
(
d
,
"READABLE"
,
TCL_READABLE
);
ins_long
(
d
,
"READABLE"
,
TCL_READABLE
);
...
...
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