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
fa78560d
Kaydet (Commit)
fa78560d
authored
Eki 07, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test cache
üst
fc146cb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
0 deletions
+83
-0
tcache.fd
Demo/sgi/flp/tcache.fd
+51
-0
tcache.py
Demo/sgi/flp/tcache.py
+32
-0
No files found.
Demo/sgi/flp/tcache.fd
0 → 100755
Dosyayı görüntüle @
fa78560d
Magic: 12321
Internal Form Definition File
(do not change)
Number of forms: 2
=============== FORM ===============
Name: first
Width: 340.000000
Height: 160.000000
Number of Objects: 1
--------------------
class: 1
type: 1
box: 0.000000 0.000000 340.000000 160.000000
boxtype: 1
colors: 47 47
alignment: 4
style: 0
size: 10.000000
lcol: 0
label:
name:
callback:
argument:
=============== FORM ===============
Name: second
Width: 150.000000
Height: 400.000000
Number of Objects: 1
--------------------
class: 1
type: 1
box: 0.000000 0.000000 150.000000 400.000000
boxtype: 1
colors: 47 47
alignment: 4
style: 0
size: 10.000000
lcol: 0
label:
name:
callback:
argument:
==============================
create_the_forms
Demo/sgi/flp/tcache.py
0 → 100755
Dosyayı görüntüle @
fa78560d
# Test bug in caching of forms
import
sys
import
os
import
flp
filename
=
'tcache.fd'
cachename
=
filename
+
's'
def
first
():
try
:
os
.
unlink
(
cachename
)
except
os
.
error
:
pass
first
=
flp
.
parse_form
(
filename
,
'first'
)
def
second
():
forms
=
flp
.
parse_forms
(
filename
)
k
=
forms
.
keys
()
if
'first'
in
k
and
'second'
in
k
:
print
'OK'
else
:
print
'BAD!'
,
k
def
main
():
if
sys
.
argv
[
1
:]:
second
()
else
:
first
()
print
'Now run the script again with an argument'
main
()
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