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
e68a3ce0
Kaydet (Commit)
e68a3ce0
authored
Ara 16, 2013
tarafından
Charles-François Natali
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge.
üst
325a1027
8a1d1e64
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
4 deletions
+32
-4
compileall.py
Lib/compileall.py
+2
-1
test_compileall.py
Lib/test/test_compileall.py
+23
-0
NEWS
Misc/NEWS
+3
-0
mpdecimal.c
Modules/_decimal/libmpdec/mpdecimal.c
+4
-3
No files found.
Lib/compileall.py
Dosyayı görüntüle @
e68a3ce0
...
...
@@ -228,7 +228,8 @@ def main():
success
=
False
return
success
else
:
return
compile_path
(
legacy
=
args
.
legacy
)
return
compile_path
(
legacy
=
args
.
legacy
,
force
=
args
.
force
,
quiet
=
args
.
quiet
)
except
KeyboardInterrupt
:
print
(
"
\n
[interrupted]"
)
return
False
...
...
Lib/test/test_compileall.py
Dosyayı görüntüle @
e68a3ce0
...
...
@@ -177,6 +177,29 @@ class CommandLineTests(unittest.TestCase):
self
.
assertNotCompiled
(
self
.
initfn
)
self
.
assertNotCompiled
(
self
.
barfn
)
def
test_no_args_respects_force_flag
(
self
):
bazfn
=
script_helper
.
make_script
(
self
.
directory
,
'baz'
,
''
)
self
.
assertRunOK
(
PYTHONPATH
=
self
.
directory
)
pycpath
=
imp
.
cache_from_source
(
bazfn
)
# Set atime/mtime backward to avoid file timestamp resolution issues
os
.
utime
(
pycpath
,
(
time
.
time
()
-
60
,)
*
2
)
mtime
=
os
.
stat
(
pycpath
)
.
st_mtime
# Without force, no recompilation
self
.
assertRunOK
(
PYTHONPATH
=
self
.
directory
)
mtime2
=
os
.
stat
(
pycpath
)
.
st_mtime
self
.
assertEqual
(
mtime
,
mtime2
)
# Now force it.
self
.
assertRunOK
(
'-f'
,
PYTHONPATH
=
self
.
directory
)
mtime2
=
os
.
stat
(
pycpath
)
.
st_mtime
self
.
assertNotEqual
(
mtime
,
mtime2
)
def
test_no_args_respects_quiet_flag
(
self
):
script_helper
.
make_script
(
self
.
directory
,
'baz'
,
''
)
noisy
=
self
.
assertRunOK
(
PYTHONPATH
=
self
.
directory
)
self
.
assertIn
(
b
'Listing '
,
noisy
)
quiet
=
self
.
assertRunOK
(
'-q'
,
PYTHONPATH
=
self
.
directory
)
self
.
assertNotIn
(
b
'Listing '
,
quiet
)
# Ensure that the default behavior of compileall's CLI is to create
# PEP 3147 pyc/pyo files.
for
name
,
ext
,
switch
in
[
...
...
Misc/NEWS
Dosyayı görüntüle @
e68a3ce0
...
...
@@ -29,6 +29,9 @@ Core and Builtins
Library
-------
- Issue #19532: python -m compileall with no filename/directory arguments now
respects the -f and -q flags instead of ignoring them.
- Issue #19623: Fixed writing to unseekable files in the aifc module.
- Issue #17919: select.poll.register() again works with poll.POLLNVAL on AIX.
...
...
Modules/_decimal/libmpdec/mpdecimal.c
Dosyayı görüntüle @
e68a3ce0
...
...
@@ -4421,21 +4421,22 @@ mpd_qfma(mpd_t *result, const mpd_t *a, const mpd_t *b, const mpd_t *c,
const
mpd_context_t
*
ctx
,
uint32_t
*
status
)
{
uint32_t
workstatus
=
0
;
const
mpd_t
*
cc
=
c
;
mpd_t
*
cc
=
NULL
;
if
(
result
==
c
)
{
if
((
cc
=
mpd_qncopy
(
c
))
==
NULL
)
{
mpd_seterror
(
result
,
MPD_Malloc_error
,
status
);
return
;
}
c
=
cc
;
}
_mpd_qmul
(
result
,
a
,
b
,
ctx
,
&
workstatus
);
if
(
!
(
workstatus
&
MPD_Invalid_operation
))
{
mpd_qadd
(
result
,
result
,
c
c
,
ctx
,
&
workstatus
);
mpd_qadd
(
result
,
result
,
c
,
ctx
,
&
workstatus
);
}
if
(
cc
!=
c
)
mpd_del
((
mpd_t
*
)
cc
);
if
(
cc
)
mpd_del
(
cc
);
*
status
|=
workstatus
;
}
...
...
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