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
768d44f5
Kaydet (Commit)
768d44f5
authored
May 10, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate the bsddb185 module for removal in 3.0.
üst
4c1f881f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
3 deletions
+16
-3
bsddb.rst
Doc/library/bsddb.rst
+2
-1
test_bsddb185.py
Lib/test/test_bsddb185.py
+2
-2
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+6
-0
NEWS
Misc/NEWS
+2
-0
bsddbmodule.c
Modules/bsddbmodule.c
+4
-0
No files found.
Doc/library/bsddb.rst
Dosyayı görüntüle @
768d44f5
...
...
@@ -82,7 +82,8 @@ arguments should be used in most instances.
Beginning in 2.3 some Unix versions of Python may have a :mod:`bsddb185` module.
This is present *only* to allow backwards compatibility with systems which ship
with the old Berkeley DB 1.85 database library. The :mod:`bsddb185` module
should never be used directly in new code.
should never be used directly in new code. The module has been removed in
Python 3.0.
.. seealso::
...
...
Lib/test/test_bsddb185.py
Dosyayı görüntüle @
768d44f5
...
...
@@ -4,9 +4,9 @@ The file 185test.db found in Lib/test/ is for testing purposes with this
testing suite.
"""
from
test.test_support
import
run_unittest
,
findfile
from
test.test_support
import
run_unittest
,
findfile
,
import_module
import
unittest
import
bsddb185
bsddb185
=
import_module
(
'bsddb185'
,
deprecated
=
True
)
import
anydbm
import
whichdb
import
os
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
768d44f5
...
...
@@ -131,6 +131,7 @@ class TestStdlibRemovals(unittest.TestCase):
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
)
inclusive_platforms
=
{
'irix'
:(
'pure'
,)}
optional_modules
=
(
'bsddb185'
,)
def
check_removal
(
self
,
module_name
,
optional
=
False
):
"""Make sure the specified module, when imported, raises a
...
...
@@ -169,6 +170,11 @@ class TestStdlibRemovals(unittest.TestCase):
for
module_name
in
self
.
inclusive_platforms
.
get
(
sys
.
platform
,
[]):
self
.
check_removal
(
module_name
,
optional
=
True
)
def
test_optional_module_removals
(
self
):
# Test the removal of modules that may or may not be built.
for
module_name
in
self
.
optional_modules
:
self
.
check_removal
(
module_name
,
optional
=
True
)
def
test_os_path_walk
(
self
):
msg
=
"In 3.x, os.path.walk is removed in favor of os.walk."
def
dumbo
(
where
,
names
,
args
):
pass
...
...
Misc/NEWS
Dosyayı görüntüle @
768d44f5
...
...
@@ -23,6 +23,8 @@ Extension Modules
Library
-------
- The bsddb185 module has been deprecated for removal in Python 3.0.
- The pure module has been deprecated for removal in Python 3.0.
- Issue #2487: change the semantics of math.ldexp(x, n) when n is too
...
...
Modules/bsddbmodule.c
Dosyayı görüntüle @
768d44f5
...
...
@@ -847,6 +847,10 @@ PyMODINIT_FUNC
initbsddb185
(
void
)
{
PyObject
*
m
,
*
d
;
if
(
PyErr_WarnPy3k
(
"the bsddb185 module has been removed in "
"Python 3.0"
,
2
)
<
0
)
return
;
Bsddbtype
.
ob_type
=
&
PyType_Type
;
m
=
Py_InitModule
(
"bsddb185"
,
bsddbmodule_methods
);
if
(
m
==
NULL
)
...
...
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