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
26f66767
Kaydet (Commit)
26f66767
authored
Agu 01, 2015
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge with 3.4
üst
a0a28b07
231007fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
PyShell.py
Lib/idlelib/PyShell.py
+6
-7
ScriptBinding.py
Lib/idlelib/ScriptBinding.py
+1
-1
ACKS
Misc/ACKS
+1
-0
No files found.
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
26f66767
...
...
@@ -469,7 +469,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
self
.
poll_subprocess
()
return
self
.
rpcclt
def
restart_subprocess
(
self
,
with_cwd
=
False
):
def
restart_subprocess
(
self
,
with_cwd
=
False
,
filename
=
''
):
if
self
.
restarting
:
return
self
.
rpcclt
self
.
restarting
=
True
...
...
@@ -497,14 +497,13 @@ class ModifiedInterpreter(InteractiveInterpreter):
console
.
stop_readline
()
# annotate restart in shell window and mark it
console
.
text
.
delete
(
"iomark"
,
"end-1c"
)
if
was_executing
:
console
.
write
(
'
\n
'
)
console
.
showprompt
()
halfbar
=
((
int
(
console
.
width
)
-
16
)
//
2
)
*
'='
console
.
write
(
halfbar
+
' RESTART '
+
halfbar
)
tag
=
'RUN '
+
filename
if
filename
else
'RESTART Shell'
halfbar
=
((
int
(
console
.
width
)
-
len
(
tag
)
-
4
)
//
2
)
*
'='
console
.
write
(
"
\n
{0} {1} {0}"
.
format
(
halfbar
,
tag
))
console
.
text
.
mark_set
(
"restart"
,
"end-1c"
)
console
.
text
.
mark_gravity
(
"restart"
,
"left"
)
console
.
showprompt
()
if
not
filename
:
console
.
showprompt
()
# restart subprocess debugger
if
debug
:
# Restarted debugger connects to current instance of debug GUI
...
...
Lib/idlelib/ScriptBinding.py
Dosyayı görüntüle @
26f66767
...
...
@@ -142,7 +142,7 @@ class ScriptBinding:
return
'break'
interp
=
self
.
shell
.
interp
if
PyShell
.
use_subprocess
:
interp
.
restart_subprocess
(
with_cwd
=
False
)
interp
.
restart_subprocess
(
with_cwd
=
False
,
filename
=
code
.
co_filename
)
dirname
=
os
.
path
.
dirname
(
filename
)
# XXX Too often this discards arguments the user just set...
interp
.
runcommand
(
"""if 1:
...
...
Misc/ACKS
Dosyayı görüntüle @
26f66767
...
...
@@ -1442,6 +1442,7 @@ Fraser Tweedale
Doobee R. Tzeck
Eren Türkay
Lionel Ulmer
Adnan Umer
Roger Upole
Daniel Urban
Michael Urman
...
...
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