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
73215147
Kaydet (Commit)
73215147
authored
Eki 09, 1995
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed bug in optional argument error checking (and generated all
suites anew).
üst
a1db48b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
24 deletions
+30
-24
AppleScript_Suite.py
Mac/Lib/toolbox/AppleScript_Suite.py
+0
-0
Metrowerks_Shell_Suite.py
Mac/Lib/toolbox/Metrowerks_Shell_Suite.py
+0
-0
Required_Suite.py
Mac/Lib/toolbox/Required_Suite.py
+4
-4
Standard_Suite.py
Mac/Lib/toolbox/Standard_Suite.py
+15
-15
gensuitemodule.py
Mac/scripts/gensuitemodule.py
+11
-5
No files found.
Mac/Lib/toolbox/AppleScript_Suite.py
Dosyayı görüntüle @
73215147
This diff is collapsed.
Click to expand it.
Mac/Lib/toolbox/Metrowerks_Shell_Suite.py
Dosyayı görüntüle @
73215147
This diff is collapsed.
Click to expand it.
Mac/Lib/toolbox/Required_Suite.py
Dosyayı görüntüle @
73215147
...
@@ -25,9 +25,9 @@ class Required_Suite:
...
@@ -25,9 +25,9 @@ class Required_Suite:
_code
=
'aevt'
_code
=
'aevt'
_subcode
=
'odoc'
_subcode
=
'odoc'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -45,9 +45,9 @@ class Required_Suite:
...
@@ -45,9 +45,9 @@ class Required_Suite:
_code
=
'aevt'
_code
=
'aevt'
_subcode
=
'pdoc'
_subcode
=
'pdoc'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -64,9 +64,9 @@ class Required_Suite:
...
@@ -64,9 +64,9 @@ class Required_Suite:
_code
=
'aevt'
_code
=
'aevt'
_subcode
=
'quit'
_subcode
=
'quit'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
if
_no_object
!=
None
:
raise
TypeError
,
'No direct arg expected'
if
_no_object
!=
None
:
raise
TypeError
,
'No direct arg expected'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -83,9 +83,9 @@ class Required_Suite:
...
@@ -83,9 +83,9 @@ class Required_Suite:
_code
=
'aevt'
_code
=
'aevt'
_subcode
=
'oapp'
_subcode
=
'oapp'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
if
_no_object
!=
None
:
raise
TypeError
,
'No direct arg expected'
if
_no_object
!=
None
:
raise
TypeError
,
'No direct arg expected'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
...
Mac/Lib/toolbox/Standard_Suite.py
Dosyayı görüntüle @
73215147
...
@@ -61,9 +61,9 @@ class Standard_Suite:
...
@@ -61,9 +61,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'qobj'
_subcode
=
'qobj'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_class_info
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_class_info
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -88,9 +88,9 @@ class Standard_Suite:
...
@@ -88,9 +88,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'clos'
_subcode
=
'clos'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_close
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_close
)
aetools
.
enumsubst
(
_arguments
,
'savo'
,
_Enum_savo
)
aetools
.
enumsubst
(
_arguments
,
'savo'
,
_Enum_savo
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
...
@@ -115,9 +115,9 @@ class Standard_Suite:
...
@@ -115,9 +115,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'cnte'
_subcode
=
'cnte'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_count
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_count
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -141,9 +141,9 @@ class Standard_Suite:
...
@@ -141,9 +141,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'dsiz'
_subcode
=
'dsiz'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_data_size
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_data_size
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -161,9 +161,9 @@ class Standard_Suite:
...
@@ -161,9 +161,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'delo'
_subcode
=
'delo'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -187,9 +187,9 @@ class Standard_Suite:
...
@@ -187,9 +187,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'clon'
_subcode
=
'clon'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_duplicate
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_duplicate
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -213,9 +213,9 @@ class Standard_Suite:
...
@@ -213,9 +213,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'gtei'
_subcode
=
'gtei'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_event_info
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_event_info
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -234,9 +234,9 @@ class Standard_Suite:
...
@@ -234,9 +234,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'doex'
_subcode
=
'doex'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -265,9 +265,9 @@ class Standard_Suite:
...
@@ -265,9 +265,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'crel'
_subcode
=
'crel'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_make
)
if
_no_object
!=
None
:
raise
TypeError
,
'No direct arg expected'
if
_no_object
!=
None
:
raise
TypeError
,
'No direct arg expected'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_make
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -291,9 +291,9 @@ class Standard_Suite:
...
@@ -291,9 +291,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'move'
_subcode
=
'move'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_move
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_move
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -311,9 +311,9 @@ class Standard_Suite:
...
@@ -311,9 +311,9 @@ class Standard_Suite:
_code
=
'aevt'
_code
=
'aevt'
_subcode
=
'odoc'
_subcode
=
'odoc'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -331,9 +331,9 @@ class Standard_Suite:
...
@@ -331,9 +331,9 @@ class Standard_Suite:
_code
=
'aevt'
_code
=
'aevt'
_subcode
=
'pdoc'
_subcode
=
'pdoc'
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
if
_arguments
:
raise
TypeError
,
'No optional args expected'
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -355,9 +355,9 @@ class Standard_Suite:
...
@@ -355,9 +355,9 @@ class Standard_Suite:
_code
=
'aevt'
_code
=
'aevt'
_subcode
=
'quit'
_subcode
=
'quit'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_quit
)
if
_no_object
!=
None
:
raise
TypeError
,
'No direct arg expected'
if
_no_object
!=
None
:
raise
TypeError
,
'No direct arg expected'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_quit
)
aetools
.
enumsubst
(
_arguments
,
'savo'
,
_Enum_savo
)
aetools
.
enumsubst
(
_arguments
,
'savo'
,
_Enum_savo
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
...
@@ -383,9 +383,9 @@ class Standard_Suite:
...
@@ -383,9 +383,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'save'
_subcode
=
'save'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_save
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_save
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
@@ -409,9 +409,9 @@ class Standard_Suite:
...
@@ -409,9 +409,9 @@ class Standard_Suite:
_code
=
'core'
_code
=
'core'
_subcode
=
'gtsi'
_subcode
=
'gtsi'
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_suite_info
)
_arguments
[
'----'
]
=
_object
_arguments
[
'----'
]
=
_object
aetools
.
keysubst
(
_arguments
,
self
.
_argmap_suite_info
)
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_reply
,
_arguments
,
_attributes
=
self
.
send
(
_code
,
_subcode
,
_arguments
,
_attributes
)
_arguments
,
_attributes
)
...
...
Mac/scripts/gensuitemodule.py
Dosyayı görüntüle @
73215147
...
@@ -311,6 +311,16 @@ def compileevent(fp, event):
...
@@ -311,6 +311,16 @@ def compileevent(fp, event):
#
#
fp
.
write
(
"
\t\t
_code =
%
s
\n
"
%
`code`
)
fp
.
write
(
"
\t\t
_code =
%
s
\n
"
%
`code`
)
fp
.
write
(
"
\t\t
_subcode =
%
s
\n\n
"
%
`subcode`
)
fp
.
write
(
"
\t\t
_subcode =
%
s
\n\n
"
%
`subcode`
)
#
# Do keyword name substitution
#
if
arguments
:
fp
.
write
(
"
\t\t
aetools.keysubst(_arguments, self._argmap_
%
s)
\n
"
%
funcname
)
else
:
fp
.
write
(
"
\t\t
if _arguments: raise TypeError, 'No optional args expected'
\n
"
)
#
# Stuff required arg (if there is one) into arguments
#
if
has_arg
:
if
has_arg
:
fp
.
write
(
"
\t\t
_arguments['----'] = _object
\n
"
)
fp
.
write
(
"
\t\t
_arguments['----'] = _object
\n
"
)
elif
opt_arg
:
elif
opt_arg
:
...
@@ -320,12 +330,8 @@ def compileevent(fp, event):
...
@@ -320,12 +330,8 @@ def compileevent(fp, event):
fp
.
write
(
"
\t\t
if _no_object != None: raise TypeError, 'No direct arg expected'
\n
"
)
fp
.
write
(
"
\t\t
if _no_object != None: raise TypeError, 'No direct arg expected'
\n
"
)
fp
.
write
(
"
\n
"
)
fp
.
write
(
"
\n
"
)
#
#
# Do
key
substitution
# Do
enum-name
substitution
#
#
if
arguments
:
fp
.
write
(
"
\t\t
aetools.keysubst(_arguments, self._argmap_
%
s)
\n
"
%
funcname
)
else
:
fp
.
write
(
"
\t\t
if _arguments: raise TypeError, 'No optional args expected'
\n
"
)
for
a
in
arguments
:
for
a
in
arguments
:
if
is_enum
(
a
[
2
]):
if
is_enum
(
a
[
2
]):
kname
=
a
[
1
]
kname
=
a
[
1
]
...
...
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