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
156989aa
Kaydet (Commit)
156989aa
authored
Haz 03, 2012
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.2: issue #14937.
üst
fe4dfd2b
862d13a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
AutoComplete.py
Lib/idlelib/AutoComplete.py
+9
-2
AutoCompleteWindow.py
Lib/idlelib/AutoCompleteWindow.py
+9
-0
NEWS.txt
Lib/idlelib/NEWS.txt
+4
-1
No files found.
Lib/idlelib/AutoComplete.py
Dosyayı görüntüle @
156989aa
...
...
@@ -124,13 +124,20 @@ class AutoComplete:
curline
=
self
.
text
.
get
(
"insert linestart"
,
"insert"
)
i
=
j
=
len
(
curline
)
if
hp
.
is_in_string
()
and
(
not
mode
or
mode
==
COMPLETE_FILES
):
# Find the beginning of the string
# fetch_completions will look at the file system to determine whether the
# string value constitutes an actual file name
# XXX could consider raw strings here and unescape the string value if it's
# not raw.
self
.
_remove_autocomplete_window
()
mode
=
COMPLETE_FILES
while
i
and
curline
[
i
-
1
]
in
FILENAME_CHARS
:
# Find last separator or string start
while
i
and
curline
[
i
-
1
]
not
in
"'
\"
"
+
SEPS
:
i
-=
1
comp_start
=
curline
[
i
:
j
]
j
=
i
while
i
and
curline
[
i
-
1
]
in
FILENAME_CHARS
+
SEPS
:
# Find string start
while
i
and
curline
[
i
-
1
]
not
in
"'
\"
"
:
i
-=
1
comp_what
=
curline
[
i
:
j
]
elif
hp
.
is_in_code
()
and
(
not
mode
or
mode
==
COMPLETE_ATTRIBUTES
):
...
...
Lib/idlelib/AutoCompleteWindow.py
Dosyayı görüntüle @
156989aa
...
...
@@ -354,6 +354,15 @@ class AutoCompleteWindow:
# A modifier key, so ignore
return
elif
event
.
char
:
# Regular character with a non-length-1 keycode
self
.
_change_start
(
self
.
start
+
event
.
char
)
self
.
lasttypedstart
=
self
.
start
self
.
listbox
.
select_clear
(
0
,
int
(
self
.
listbox
.
curselection
()[
0
]))
self
.
listbox
.
select_set
(
self
.
_binary_search
(
self
.
start
))
self
.
_selection_changed
()
return
"break"
else
:
# Unknown event, close the window and let it through.
self
.
hide_window
()
...
...
Lib/idlelib/NEWS.txt
Dosyayı görüntüle @
156989aa
What's New in IDLE 3.3?
What's New in IDLE 3.3
.0
?
=========================
- Issue #14937: Perform auto-completion of filenames in strings even for
non-ASCII filenames.
- Issue #8515: Set __file__ when run file in IDLE.
Initial patch by Bruce Frederiksen.
...
...
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