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
28d4ba24
Kaydet (Commit)
28d4ba24
authored
Eyl 11, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Another batch...
üst
c458e945
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
54 additions
and
28 deletions
+54
-28
posixfil.py
Lib/dos-8x3/posixfil.py
+3
-0
simpleht.py
Lib/dos-8x3/simpleht.py
+0
-12
test_mat.py
Lib/dos-8x3/test_mat.py
+3
-2
test_str.py
Lib/dos-8x3/test_str.py
+21
-0
posixfil.py
Lib/dos_8x3/posixfil.py
+3
-0
simpleht.py
Lib/dos_8x3/simpleht.py
+0
-12
test_mat.py
Lib/dos_8x3/test_mat.py
+3
-2
test_str.py
Lib/dos_8x3/test_str.py
+21
-0
No files found.
Lib/dos-8x3/posixfil.py
Dosyayı görüntüle @
28d4ba24
...
...
@@ -196,6 +196,9 @@ class _posixfile_:
elif
sys
.
platform
in
[
'aix3'
,
'aix4'
]:
l_type
,
l_whence
,
l_start
,
l_len
,
l_sysid
,
l_pid
,
l_vfs
=
\
struct
.
unpack
(
'hhlllii'
,
flock
)
elif
sys
.
platform
==
"linux2"
:
l_type
,
l_whence
,
l_start
,
l_len
,
l_pid
,
l_sysid
=
\
struct
.
unpack
(
'hhllhh'
,
flock
)
else
:
l_type
,
l_whence
,
l_start
,
l_len
,
l_sysid
,
l_pid
=
\
struct
.
unpack
(
'hhllhh'
,
flock
)
...
...
Lib/dos-8x3/simpleht.py
Dosyayı görüntüle @
28d4ba24
...
...
@@ -10,7 +10,6 @@ __version__ = "0.3"
import
os
import
pwd
import
sys
import
time
import
socket
...
...
@@ -20,17 +19,6 @@ import SocketServer
import
BaseHTTPServer
def
nobody_uid
():
"""Internal routine to get nobody's uid"""
try
:
nobody
=
pwd
.
getpwnam
(
'nobody'
)[
2
]
except
pwd
.
error
:
nobody
=
1
+
max
(
map
(
lambda
x
:
x
[
2
],
pwd
.
getpwall
()))
return
nobody
nobody
=
nobody_uid
()
class
SimpleHTTPRequestHandler
(
BaseHTTPServer
.
BaseHTTPRequestHandler
):
"""Simple HTTP request handler with GET and HEAD commands.
...
...
Lib/dos-8x3/test_mat.py
Dosyayı görüntüle @
28d4ba24
...
...
@@ -3,8 +3,9 @@
from
test_support
import
*
eps
=
1e-5
print
'math module, testing with eps'
,
eps
seps
=
'1e-05'
eps
=
eval
(
seps
)
print
'math module, testing with eps'
,
seps
import
math
def
testit
(
name
,
value
,
expected
):
...
...
Lib/dos-8x3/test_str.py
0 → 100644
Dosyayı görüntüle @
28d4ba24
import
strop
,
sys
def
test
(
name
,
input
,
output
):
f
=
getattr
(
strop
,
name
)
try
:
value
=
f
(
input
)
except
:
value
=
sys
.
exc_type
print
sys
.
exc_value
if
value
!=
output
:
print
f
,
`input`
,
`output`
,
`value`
test
(
'atoi'
,
" 1 "
,
1
)
test
(
'atoi'
,
" 1x"
,
ValueError
)
test
(
'atoi'
,
" x1 "
,
ValueError
)
test
(
'atol'
,
" 1 "
,
1L
)
test
(
'atol'
,
" 1x "
,
ValueError
)
test
(
'atol'
,
" x1 "
,
ValueError
)
test
(
'atof'
,
" 1 "
,
1.0
)
test
(
'atof'
,
" 1x "
,
ValueError
)
test
(
'atof'
,
" x1 "
,
ValueError
)
Lib/dos_8x3/posixfil.py
Dosyayı görüntüle @
28d4ba24
...
...
@@ -196,6 +196,9 @@ class _posixfile_:
elif
sys
.
platform
in
[
'aix3'
,
'aix4'
]:
l_type
,
l_whence
,
l_start
,
l_len
,
l_sysid
,
l_pid
,
l_vfs
=
\
struct
.
unpack
(
'hhlllii'
,
flock
)
elif
sys
.
platform
==
"linux2"
:
l_type
,
l_whence
,
l_start
,
l_len
,
l_pid
,
l_sysid
=
\
struct
.
unpack
(
'hhllhh'
,
flock
)
else
:
l_type
,
l_whence
,
l_start
,
l_len
,
l_sysid
,
l_pid
=
\
struct
.
unpack
(
'hhllhh'
,
flock
)
...
...
Lib/dos_8x3/simpleht.py
Dosyayı görüntüle @
28d4ba24
...
...
@@ -10,7 +10,6 @@ __version__ = "0.3"
import
os
import
pwd
import
sys
import
time
import
socket
...
...
@@ -20,17 +19,6 @@ import SocketServer
import
BaseHTTPServer
def
nobody_uid
():
"""Internal routine to get nobody's uid"""
try
:
nobody
=
pwd
.
getpwnam
(
'nobody'
)[
2
]
except
pwd
.
error
:
nobody
=
1
+
max
(
map
(
lambda
x
:
x
[
2
],
pwd
.
getpwall
()))
return
nobody
nobody
=
nobody_uid
()
class
SimpleHTTPRequestHandler
(
BaseHTTPServer
.
BaseHTTPRequestHandler
):
"""Simple HTTP request handler with GET and HEAD commands.
...
...
Lib/dos_8x3/test_mat.py
Dosyayı görüntüle @
28d4ba24
...
...
@@ -3,8 +3,9 @@
from
test_support
import
*
eps
=
1e-5
print
'math module, testing with eps'
,
eps
seps
=
'1e-05'
eps
=
eval
(
seps
)
print
'math module, testing with eps'
,
seps
import
math
def
testit
(
name
,
value
,
expected
):
...
...
Lib/dos_8x3/test_str.py
0 → 100644
Dosyayı görüntüle @
28d4ba24
import
strop
,
sys
def
test
(
name
,
input
,
output
):
f
=
getattr
(
strop
,
name
)
try
:
value
=
f
(
input
)
except
:
value
=
sys
.
exc_type
print
sys
.
exc_value
if
value
!=
output
:
print
f
,
`input`
,
`output`
,
`value`
test
(
'atoi'
,
" 1 "
,
1
)
test
(
'atoi'
,
" 1x"
,
ValueError
)
test
(
'atoi'
,
" x1 "
,
ValueError
)
test
(
'atol'
,
" 1 "
,
1L
)
test
(
'atol'
,
" 1x "
,
ValueError
)
test
(
'atol'
,
" x1 "
,
ValueError
)
test
(
'atof'
,
" 1 "
,
1.0
)
test
(
'atof'
,
" 1x "
,
ValueError
)
test
(
'atof'
,
" x1 "
,
ValueError
)
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