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
6c50df2d
Commit
6c50df2d
authored
Dec 13, 2002
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Tkinter threading change
Fix markup errors Rewrite a sentence
parent
71fd01c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
Doc/whatsnew/whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+17
-3
No files found.
Doc/whatsnew/whatsnew23.tex
View file @
6c50df2d
...
...
@@ -1286,7 +1286,7 @@ sometimes have odd bugs. Brett Cannon contributed a portable
implementation that's written in pure Python, which should behave
identically on all platforms.
\item
The
\module
{
UserDict
)
has a new
\class
{
DictMixin
}
class which
\item
The
\module
{
UserDict
}
module
has a new
\class
{
DictMixin
}
class which
defines all dictionary methods for classes that already have a minimum
mapping interface. This greatly simplifies writing classes that need
to be substitutable for dictionaries, such as the classes in
...
...
@@ -1294,7 +1294,7 @@ the \module{shelve} module.
Adding the mixin as a superclass provides the full dictionary
interface whenever the class defines
\method
{__
getitem
__}
,
\method
{__
setitem
__}
,
\method
{__
delitem
__
)
, and
\method
{
keys
}
.
\method
{__
setitem
__}
,
\method
{__
delitem
__
}
, and
\method
{
keys
}
.
For example:
\begin{verbatim}
...
...
@@ -1371,6 +1371,20 @@ stamps, or if they use the tuple API. If used, the feature should be
activated on an application level instead of trying to enable it on a
per-use basis.
\item
The
\module
{
Tkinter
}
module now works with a thread-enabled
version of Tcl. Tcl's threading model requires that widgets only be
accessed from the thread in which they're created; accesses from
another thread can cause Tcl to panic. For certain Tcl interfaces,
\module
{
Tkinter
}
will now automatically avoid this by marshalling a
command, passing it to the correct thread, and waiting for the results
when a widget is accessed from a different thread. Other interfaces
can't be handled automatically but
\module
{
Tkinter
}
will now raise an
exception on such an access so that you can at least find out about
the problem. See
\url
{
http://mail.python.org/pipermail/python-dev/2002-December/031107.html
}
for a more detailed explanation of this change. (Implemented by
Martin von L
\"
owis.)
\item
Calling Tcl methods through
\module
{_
tkinter
}
no longer
returns only strings. Instead, if Tcl returns other objects those
objects are converted to their Python equivalent, if one exists, or
...
...
@@ -1392,7 +1406,7 @@ import Tkinter
Tkinter.wantobjects = 0
\end{verbatim}
Please report any breakage caused by this change
as a bug.
Any breakage caused by this change should be reported
as a bug.
\end{itemize}
...
...
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