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
dcd340ee
Kaydet (Commit)
dcd340ee
authored
Kas 23, 2013
tarafından
Larry Hastings
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19358: "make clinic" now runs the Argument Clinic preprocessor
over all CPython source files.
üst
ebdcb50b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
3 deletions
+36
-3
Makefile.pre.in
Makefile.pre.in
+6
-0
NEWS
Misc/NEWS
+6
-0
clinic.py
Tools/clinic/clinic.py
+24
-3
No files found.
Makefile.pre.in
Dosyayı görüntüle @
dcd340ee
...
...
@@ -526,6 +526,12 @@ coverage-report:
:
# build lcov report
$(MAKE)
coverage-lcov
# Run "Argument Clinic" over all source files
# (depends on python having already been built)
.PHONY
=
clinic
clinic
:
$(BUILDPYTHON)
$(RUNSHARED)
$(PYTHON_FOR_BUILD)
./Tools/clinic/clinic.py
--make
# Build the interpreter
$(BUILDPYTHON)
:
Modules/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
$(LINKCC)
$(PY_LDFLAGS)
$(LINKFORSHARED)
-o
$@
Modules/python.o
$(BLDLIBRARY)
$(LIBS)
$(MODLIBS)
$(SYSLIBS)
$(LDLAST)
...
...
Misc/NEWS
Dosyayı görüntüle @
dcd340ee
...
...
@@ -9,6 +9,7 @@ Projected release date: 2013-11-24
Core and Builtins
-----------------
- Use the repr of a module name in more places in import, especially
exceptions.
...
...
@@ -66,6 +67,7 @@ Core and Builtins
Library
-------
-
Issue
#
19722
:
Added
opcode
.
stack_effect
(),
which
computes
the
stack
effect
of
bytecode
instructions
.
...
...
@@ -403,6 +405,9 @@ Documentation
Build
-----
- Issue #19358: "make clinic" now runs the Argument Clinic preprocessor
over all CPython source files.
- Update SQLite to 3.8.1, xz to 5.0.5, and Tcl/Tk to 8.6.1 on Windows.
- Issue #16632: Enable DEP and ASLR on Windows.
...
...
@@ -449,6 +454,7 @@ Build
Tools/Demos
-----------
- Issue #19730: Argument Clinic now supports all the existing PyArg
"format units" as legacy converters, as well as two new features:
"self converters" and the "version" directive.
...
...
Tools/clinic/clinic.py
Dosyayı görüntüle @
dcd340ee
...
...
@@ -988,7 +988,6 @@ class BlockPrinter:
dsl_name
=
block
.
dsl_name
write
=
self
.
f
.
write
assert
(
not
input
)
or
(
input
.
endswith
(
'
\n
'
))
assert
not
((
dsl_name
==
None
)
^
(
output
==
None
)),
"you must specify dsl_name and output together, dsl_name "
+
repr
(
dsl_name
)
if
not
dsl_name
:
...
...
@@ -1122,12 +1121,16 @@ def parse_file(filename, *, verify=True, output=None, encoding='utf-8'):
clinic
=
Clinic
(
language
,
verify
=
verify
,
filename
=
filename
)
with
open
(
filename
,
'r'
,
encoding
=
encoding
)
as
f
:
text
=
clinic
.
parse
(
f
.
read
())
raw
=
f
.
read
()
cooked
=
clinic
.
parse
(
raw
)
if
cooked
==
raw
:
return
directory
=
os
.
path
.
dirname
(
filename
)
or
'.'
with
tempfile
.
TemporaryDirectory
(
prefix
=
"clinic"
,
dir
=
directory
)
as
tmpdir
:
bytes
=
text
.
encode
(
encoding
)
bytes
=
cooked
.
encode
(
encoding
)
tmpfilename
=
os
.
path
.
join
(
tmpdir
,
os
.
path
.
basename
(
filename
))
with
open
(
tmpfilename
,
"wb"
)
as
f
:
f
.
write
(
bytes
)
...
...
@@ -2619,6 +2622,7 @@ def main(argv):
cmdline
.
add_argument
(
"-f"
,
"--force"
,
action
=
'store_true'
)
cmdline
.
add_argument
(
"-o"
,
"--output"
,
type
=
str
)
cmdline
.
add_argument
(
"--converters"
,
action
=
'store_true'
)
cmdline
.
add_argument
(
"--make"
,
action
=
'store_true'
)
cmdline
.
add_argument
(
"filename"
,
type
=
str
,
nargs
=
"*"
)
ns
=
cmdline
.
parse_args
(
argv
)
...
...
@@ -2697,6 +2701,23 @@ def main(argv):
print
(
"All return converters also accept (doc_default=None)."
)
sys
.
exit
(
0
)
if
ns
.
make
:
if
ns
.
output
or
ns
.
filename
:
print
(
"Usage error: can't use -o or filenames with --make."
)
print
()
cmdline
.
print_usage
()
sys
.
exit
(
-
1
)
for
root
,
dirs
,
files
in
os
.
walk
(
'.'
):
for
rcs_dir
in
(
'.svn'
,
'.git'
,
'.hg'
):
if
rcs_dir
in
dirs
:
dirs
.
remove
(
rcs_dir
)
for
filename
in
files
:
if
not
filename
.
endswith
(
'.c'
):
continue
path
=
os
.
path
.
join
(
root
,
filename
)
parse_file
(
path
,
verify
=
not
ns
.
force
)
return
if
not
ns
.
filename
:
cmdline
.
print_usage
()
sys
.
exit
(
-
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