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
e72b90eb
Kaydet (Commit)
e72b90eb
authored
Ara 11, 2013
tarafından
Ned Deily
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #18270: merge from 3.3
üst
7f7f3d78
f3c6589e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
PyShell.py
Lib/idlelib/PyShell.py
+14
-11
NEWS
Misc/NEWS
+4
-1
No files found.
Lib/idlelib/PyShell.py
100644 → 100755
Dosyayı görüntüle @
e72b90eb
...
...
@@ -1540,20 +1540,22 @@ def main():
args
.
remove
(
filename
)
if
not
args
:
flist
.
new
()
if
enable_shell
:
shell
=
flist
.
open_shell
()
if
not
shell
:
return
# couldn't open shell
if
macosxSupport
.
runningAsOSXApp
()
and
flist
.
dict
:
# On OSX: when the user has double-clicked on a file that causes
# IDLE to be launched the shell window will open just in front of
# the file she wants to see. Lower the interpreter window when
# there are open files.
shell
.
top
.
lower
()
else
:
shell
=
flist
.
pyshell
shell
=
flist
.
py
shell
#
handle remaining options:
# Handle remaining options. If any of these are set, enable_
shell
#
was set also, so shell must be true to reach here.
if
debug
:
shell
.
open_debugger
()
if
startup
:
...
...
@@ -1561,7 +1563,7 @@ def main():
os
.
environ
.
get
(
"PYTHONSTARTUP"
)
if
filename
and
os
.
path
.
isfile
(
filename
):
shell
.
interp
.
execfile
(
filename
)
if
shell
and
cmd
or
script
:
if
cmd
or
script
:
shell
.
interp
.
runcommand
(
"""if 1:
import sys as _sys
_sys.argv =
%
r
...
...
@@ -1572,13 +1574,14 @@ def main():
elif
script
:
shell
.
interp
.
prepend_syspath
(
script
)
shell
.
interp
.
execfile
(
script
)
# Check for problematic OS X Tk versions and print a warning message
# in the IDLE shell window; this is less intrusive than always opening
# a separate window.
tkversionwarning
=
macosxSupport
.
tkVersionWarning
(
root
)
if
tkversionwarning
:
shell
.
interp
.
runcommand
(
''
.
join
((
"print('"
,
tkversionwarning
,
"')"
)))
elif
shell
:
# If there is a shell window and no cmd or script in progress,
# check for problematic OS X Tk versions and print a warning
# message in the IDLE shell window; this is less intrusive
# than always opening a separate window.
tkversionwarning
=
macosxSupport
.
tkVersionWarning
(
root
)
if
tkversionwarning
:
shell
.
interp
.
runcommand
(
"print('
%
s')"
%
tkversionwarning
)
while
flist
.
inversedict
:
# keep IDLE running while files are open.
root
.
mainloop
()
...
...
Misc/NEWS
Dosyayı görüntüle @
e72b90eb
...
...
@@ -131,7 +131,10 @@ Library
IDLE
----
- Issue #19481: print() of string subclass instance in IDLE no more hangs.
- Issue #19481: print() of string subclass instance in IDLE no longer hangs.
- Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
shell window is present.
Tests
-----
...
...
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