Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
c5301ef2
Kaydet (Commit)
c5301ef2
authored
May 28, 2012
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue12510: Attempting to get invalid tooltip no longer closes Idle.
Original patch by Roger Serwy.
üst
e1398f77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
CallTips.py
Lib/idlelib/CallTips.py
+6
-3
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/CallTips.py
Dosyayı görüntüle @
c5301ef2
...
@@ -110,7 +110,9 @@ class CallTips:
...
@@ -110,7 +110,9 @@ class CallTips:
namespace
.
update
(
__main__
.
__dict__
)
namespace
.
update
(
__main__
.
__dict__
)
try
:
try
:
return
eval
(
name
,
namespace
)
return
eval
(
name
,
namespace
)
except
(
NameError
,
AttributeError
):
# any exception is possible if evalfuncs True in open_calltip
# at least Syntax, Name, Attribute, Index, and Key E. if not
except
:
return
None
return
None
def
_find_constructor
(
class_ob
):
def
_find_constructor
(
class_ob
):
...
@@ -125,9 +127,10 @@ def _find_constructor(class_ob):
...
@@ -125,9 +127,10 @@ def _find_constructor(class_ob):
return
None
return
None
def
get_argspec
(
ob
):
def
get_argspec
(
ob
):
"""Get a string describing the arguments for the given object."""
"""Get a string describing the arguments for the given object,
only if it is callable."""
argspec
=
""
argspec
=
""
if
ob
is
not
None
:
if
ob
is
not
None
and
hasattr
(
ob
,
'__call__'
)
:
if
isinstance
(
ob
,
type
):
if
isinstance
(
ob
,
type
):
fob
=
_find_constructor
(
ob
)
fob
=
_find_constructor
(
ob
)
if
fob
is
None
:
if
fob
is
None
:
...
...
Misc/NEWS
Dosyayı görüntüle @
c5301ef2
...
@@ -67,6 +67,9 @@ Core and Builtins
...
@@ -67,6 +67,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue12510: Attempting to get invalid tooltip no longer closes Idle.
Original patch by Roger Serwy.
- Issue #10365: File open dialog now works instead of crashing
- Issue #10365: File open dialog now works instead of crashing
even when parent window is closed. Patch by Roger Serwy.
even when parent window is closed. Patch by Roger Serwy.
...
...
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