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
34721d56
Kaydet (Commit)
34721d56
authored
May 14, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate al/AL for removal in 3.0.
üst
c72df330
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
3 deletions
+18
-3
AL.py
Lib/plat-irix5/AL.py
+4
-0
AL.py
Lib/plat-irix6/AL.py
+4
-0
test_al.py
Lib/test/test_al.py
+2
-2
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
NEWS
Misc/NEWS
+3
-0
almodule.c
Modules/almodule.c
+4
-0
No files found.
Lib/plat-irix5/AL.py
Dosyayı görüntüle @
34721d56
from
warnings
import
warnpy3k
warnpy3k
(
"the AL module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
RATE_48000
=
48000
RATE_48000
=
48000
RATE_44100
=
44100
RATE_44100
=
44100
RATE_32000
=
32000
RATE_32000
=
32000
...
...
Lib/plat-irix6/AL.py
Dosyayı görüntüle @
34721d56
from
warnings
import
warnpy3k
warnpy3k
(
"the AL module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
RATE_48000
=
48000
RATE_48000
=
48000
RATE_44100
=
44100
RATE_44100
=
44100
RATE_32000
=
32000
RATE_32000
=
32000
...
...
Lib/test/test_al.py
Dosyayı görüntüle @
34721d56
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
"""Whimpy test script for the al module
"""Whimpy test script for the al module
Roger E. Masse
Roger E. Masse
"""
"""
import
al
from
test.test_support
import
verbose
,
import_module
from
test.test_support
import
verbose
al
=
import_module
(
'al'
,
deprecated
=
True
)
alattrs
=
[
'__doc__'
,
'__name__'
,
'getdefault'
,
'getminmax'
,
'getname'
,
'getparams'
,
alattrs
=
[
'__doc__'
,
'__name__'
,
'getdefault'
,
'getminmax'
,
'getname'
,
'getparams'
,
'newconfig'
,
'openport'
,
'queryparams'
,
'setparams'
]
'newconfig'
,
'openport'
,
'queryparams'
,
'setparams'
]
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
34721d56
...
@@ -131,7 +131,7 @@ class TestStdlibRemovals(unittest.TestCase):
...
@@ -131,7 +131,7 @@ class TestStdlibRemovals(unittest.TestCase):
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
,
'compiler'
,
'dircache'
,
'fpformat'
,
'Bastion'
,
'compiler'
,
'dircache'
,
'fpformat'
,
'ihooks'
,
'mhlib'
)
'ihooks'
,
'mhlib'
)
inclusive_platforms
=
{
'irix'
:
(
'pure'
,),
inclusive_platforms
=
{
'irix'
:
(
'pure'
,
'AL'
,
'al'
),
'darwin'
:
(
'autoGIL'
,
'Carbon'
,
'OSATerminology'
,
'darwin'
:
(
'autoGIL'
,
'Carbon'
,
'OSATerminology'
,
'icglue'
,
'Nav'
,
'MacOS'
,
'aepack'
,
'aetools'
,
'icglue'
,
'Nav'
,
'MacOS'
,
'aepack'
,
'aetools'
,
'aetypes'
,
'applesingle'
,
'appletrawmain'
,
'aetypes'
,
'applesingle'
,
'appletrawmain'
,
...
...
Misc/NEWS
Dosyayı görüntüle @
34721d56
...
@@ -30,6 +30,9 @@ Extension Modules
...
@@ -30,6 +30,9 @@ Extension Modules
Library
Library
-------
-------
- The al and AL modules for IRIX have been deprecated for removal in
Python 3.0.
- #1713041: fix pprint's handling of maximum depth.
- #1713041: fix pprint's handling of maximum depth.
- The timing module has been deprecated for removal in Python 3.0.
- The timing module has been deprecated for removal in Python 3.0.
...
...
Modules/almodule.c
Dosyayı görüntüle @
34721d56
...
@@ -1994,6 +1994,10 @@ inital(void)
...
@@ -1994,6 +1994,10 @@ inital(void)
{
{
PyObject
*
m
,
*
d
,
*
x
;
PyObject
*
m
,
*
d
,
*
x
;
if
(
PyErr_WarnPy3k
(
"the al module has been removed in "
"Python 3.0"
,
2
)
<
0
)
return
;
/* Create the module and add the functions */
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"al"
,
al_methods
,
m
=
Py_InitModule4
(
"al"
,
al_methods
,
al_module_documentation
,
al_module_documentation
,
...
...
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