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
dfe980bb
Kaydet (Commit)
dfe980bb
authored
Nis 05, 2012
tarafından
Andrew Svetlov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8515: Set __file__ when run file in IDLE.
üst
0130ad14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
NEWS.txt
Lib/idlelib/NEWS.txt
+3
-0
ScriptBinding.py
Lib/idlelib/ScriptBinding.py
+6
-6
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/NEWS.txt
Dosyayı görüntüle @
dfe980bb
What's New in IDLE 3.3?
What's New in IDLE 3.3?
=========================
=========================
- Issue #8515: Set __file__ when run file in IDLE.
Initial patch by Bruce Frederiksen.
- IDLE can be launched as `python -m idlelib`
- IDLE can be launched as `python -m idlelib`
- Issue #14409: IDLE now properly executes commands in the Shell window
- Issue #14409: IDLE now properly executes commands in the Shell window
...
...
Lib/idlelib/ScriptBinding.py
Dosyayı görüntüle @
dfe980bb
...
@@ -150,16 +150,16 @@ class ScriptBinding:
...
@@ -150,16 +150,16 @@ class ScriptBinding:
dirname
=
os
.
path
.
dirname
(
filename
)
dirname
=
os
.
path
.
dirname
(
filename
)
# XXX Too often this discards arguments the user just set...
# XXX Too often this discards arguments the user just set...
interp
.
runcommand
(
"""if 1:
interp
.
runcommand
(
"""if 1:
_
filename =
%
r
_
_file__ = {filename!r}
import sys as _sys
import sys as _sys
from os.path import basename as _basename
from os.path import basename as _basename
if (not _sys.argv or
if (not _sys.argv or
_basename(_sys.argv[0]) != _basename(_
filename
)):
_basename(_sys.argv[0]) != _basename(_
_file__
)):
_sys.argv = [_
filename
]
_sys.argv = [_
_file__
]
import os as _os
import os as _os
_os.chdir(
%
r
)
_os.chdir(
{dirname!r}
)
del _
filename, _
sys, _basename, _os
del _sys, _basename, _os
\n
"""
%
(
filename
,
dirname
))
\n
"""
.
format
(
filename
=
filename
,
dirname
=
dirname
))
interp
.
prepend_syspath
(
filename
)
interp
.
prepend_syspath
(
filename
)
# XXX KBK 03Jul04 When run w/o subprocess, runtime warnings still
# XXX KBK 03Jul04 When run w/o subprocess, runtime warnings still
# go to __stderr__. With subprocess, they go to the shell.
# go to __stderr__. With subprocess, they go to the shell.
...
...
Misc/ACKS
Dosyayı görüntüle @
dfe980bb
...
@@ -333,6 +333,7 @@ Doug Fort
...
@@ -333,6 +333,7 @@ Doug Fort
John Fouhy
John Fouhy
Andrew Francis
Andrew Francis
Martin Franklin
Martin Franklin
Bruce Frederiksen
Robin Friedrich
Robin Friedrich
Ivan Frohne
Ivan Frohne
Matthias Fuchs
Matthias Fuchs
...
...
Misc/NEWS
Dosyayı görüntüle @
dfe980bb
...
@@ -19,6 +19,9 @@ Core and Builtins
...
@@ -19,6 +19,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #8515: Set __file__ when run file in IDLE.
Initial patch by Bruce Frederiksen.
- Issue #14496: Fix wrong name in idlelib/tabbedpages.py.
- Issue #14496: Fix wrong name in idlelib/tabbedpages.py.
Patch by Popa Claudiu.
Patch by Popa Claudiu.
...
...
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