mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Fix a problem in Tkinter introduced by SF patch #869468 (checked in as
1.179): delete bogus __hasattr__ and __delattr__ methods on class Tk that were breaking Tkdnd.
This commit is contained in:
parent
8321b42f38
commit
49a4b68b8b
2 changed files with 4 additions and 6 deletions
|
|
@ -1652,12 +1652,6 @@ class Tk(Misc, Wm):
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
"Delegate attribute access to the interpreter object"
|
"Delegate attribute access to the interpreter object"
|
||||||
return getattr(self.tk, attr)
|
return getattr(self.tk, attr)
|
||||||
def __hasattr__(self, attr):
|
|
||||||
"Delegate attribute access to the interpreter object"
|
|
||||||
return hasattr(self.tk, attr)
|
|
||||||
def __delattr__(self, attr):
|
|
||||||
"Delegate attribute access to the interpreter object"
|
|
||||||
return delattr(self.tk, attr)
|
|
||||||
|
|
||||||
# Ideally, the classes Pack, Place and Grid disappear, the
|
# Ideally, the classes Pack, Place and Grid disappear, the
|
||||||
# pack/place/grid methods are defined on the Widget class, and
|
# pack/place/grid methods are defined on the Widget class, and
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@ What's New in Python 2.5 alpha 1?
|
||||||
Core and builtins
|
Core and builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Fix a problem in Tkinter introduced by SF patch #869468: delete bogus
|
||||||
|
__hasattr__ and __delattr__ methods on class Tk that were breaking
|
||||||
|
Tkdnd.
|
||||||
|
|
||||||
- SF bug #1238681: freed pointer is used in longobject.c:long_pow().
|
- SF bug #1238681: freed pointer is used in longobject.c:long_pow().
|
||||||
|
|
||||||
- SF bug #1229429: PyObject_CallMethod failed to decrement some
|
- SF bug #1229429: PyObject_CallMethod failed to decrement some
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue