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
5b0533d9
Kaydet (Commit)
5b0533d9
authored
Ock 16, 1998
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Addition by Bill Bedford: Ordinal and NOrdinal classes so we can
implement "every", etc.
üst
48b805c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
aetypes.py
Mac/Lib/lib-toolbox/aetypes.py
+26
-1
No files found.
Mac/Lib/lib-toolbox/aetypes.py
Dosyayı görüntüle @
5b0533d9
...
@@ -185,6 +185,31 @@ class NComparison(Comparison):
...
@@ -185,6 +185,31 @@ class NComparison(Comparison):
def
__init__
(
self
,
obj1
,
obj2
):
def
__init__
(
self
,
obj1
,
obj2
):
Comparison
.
__init__
(
obj1
,
self
.
relo
,
obj2
)
Comparison
.
__init__
(
obj1
,
self
.
relo
,
obj2
)
class
Ordinal
:
"""An AE Ordinal"""
def
__init__
(
self
,
abso
):
# self.obj1 = obj1
self
.
abso
=
"
%-4.4
s"
%
str
(
abso
)
def
__repr__
(
self
):
return
"Ordinal(
%
s)"
%
(
`self.abso`
)
def
__str__
(
self
):
return
"
%
s"
%
(
string
.
strip
(
self
.
abso
))
def
__aepack__
(
self
):
return
pack
(
self
.
abso
,
'abso'
)
def
IsOrdinal
(
x
):
return
IsInstance
(
x
,
Ordinal
)
class
NOrdinal
(
Ordinal
):
# The class attribute 'abso' must be set in a subclass
def
__init__
(
self
):
Ordinal
.
__init__
(
self
,
self
.
abso
)
class
Logical
:
class
Logical
:
"""An AE logical expression object"""
"""An AE logical expression object"""
...
@@ -533,7 +558,7 @@ exec template % ("Text", 'text')
...
@@ -533,7 +558,7 @@ exec template % ("Text", 'text')
exec
template
%
(
"Character"
,
'cha '
)
exec
template
%
(
"Character"
,
'cha '
)
exec
template
%
(
"Word"
,
'cwor'
)
exec
template
%
(
"Word"
,
'cwor'
)
exec
template
%
(
"Line"
,
'clin'
)
exec
template
%
(
"Line"
,
'clin'
)
exec
template
%
(
"
P
aragraph"
,
'cpar'
)
exec
template
%
(
"
p
aragraph"
,
'cpar'
)
exec
template
%
(
"Window"
,
'cwin'
)
exec
template
%
(
"Window"
,
'cwin'
)
exec
template
%
(
"Document"
,
'docu'
)
exec
template
%
(
"Document"
,
'docu'
)
exec
template
%
(
"File"
,
'file'
)
exec
template
%
(
"File"
,
'file'
)
...
...
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