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
c8f65e69
Kaydet (Commit)
c8f65e69
authored
Eki 09, 2007
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allow interrupt only when executing user code in subprocess
Patch 1225 Tal Einat modified from IDLE-Spoon.
üst
e7f4d848
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
NEWS.txt
Lib/idlelib/NEWS.txt
+3
-0
run.py
Lib/idlelib/run.py
+10
-3
No files found.
Lib/idlelib/NEWS.txt
Dosyayı görüntüle @
c8f65e69
...
@@ -3,6 +3,9 @@ What's New in IDLE 2.6a1?
...
@@ -3,6 +3,9 @@ What's New in IDLE 2.6a1?
*Release date: XX-XXX-200X*
*Release date: XX-XXX-200X*
- Allow keyboard interrupt only when user code is executing in subprocess.
Patch 1225 Tal Einat (reworked from IDLE-Spoon).
- configDialog cleanup. Patch 1730217 Tal Einat.
- configDialog cleanup. Patch 1730217 Tal Einat.
- textView cleanup. Patch 1718043 Tal Einat.
- textView cleanup. Patch 1718043 Tal Einat.
...
...
Lib/idlelib/run.py
Dosyayı görüntüle @
c8f65e69
...
@@ -38,10 +38,11 @@ else:
...
@@ -38,10 +38,11 @@ else:
# Thread shared globals: Establish a queue between a subthread (which handles
# Thread shared globals: Establish a queue between a subthread (which handles
# the socket) and the main thread (which runs user code), plus global
# the socket) and the main thread (which runs user code), plus global
# completion
and exit
flags:
# completion
, exit and interruptable (the main thread)
flags:
exit_now
=
False
exit_now
=
False
quitting
=
False
quitting
=
False
interruptable
=
False
def
main
(
del_exitfunc
=
False
):
def
main
(
del_exitfunc
=
False
):
"""Start the Python execution server in a subprocess
"""Start the Python execution server in a subprocess
...
@@ -280,9 +281,14 @@ class Executive(object):
...
@@ -280,9 +281,14 @@ class Executive(object):
self
.
autocomplete
=
AutoComplete
.
AutoComplete
()
self
.
autocomplete
=
AutoComplete
.
AutoComplete
()
def
runcode
(
self
,
code
):
def
runcode
(
self
,
code
):
global
interruptable
try
:
try
:
self
.
usr_exc_info
=
None
self
.
usr_exc_info
=
None
exec
code
in
self
.
locals
interruptable
=
True
try
:
exec
code
in
self
.
locals
finally
:
interruptable
=
False
except
:
except
:
self
.
usr_exc_info
=
sys
.
exc_info
()
self
.
usr_exc_info
=
sys
.
exc_info
()
if
quitting
:
if
quitting
:
...
@@ -296,7 +302,8 @@ class Executive(object):
...
@@ -296,7 +302,8 @@ class Executive(object):
flush_stdout
()
flush_stdout
()
def
interrupt_the_server
(
self
):
def
interrupt_the_server
(
self
):
thread
.
interrupt_main
()
if
interruptable
:
thread
.
interrupt_main
()
def
start_the_debugger
(
self
,
gui_adap_oid
):
def
start_the_debugger
(
self
,
gui_adap_oid
):
return
RemoteDebugger
.
start_debugger
(
self
.
rpchandler
,
gui_adap_oid
)
return
RemoteDebugger
.
start_debugger
(
self
.
rpchandler
,
gui_adap_oid
)
...
...
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