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
e3b1940e
Kaydet (Commit)
e3b1940e
authored
May 08, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate the user module for removal in 3.0.
üst
cae4f5f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
user.rst
Doc/library/user.rst
+2
-0
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
user.py
Lib/user.py
+3
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/user.rst
Dosyayı görüntüle @
e3b1940e
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
.. module:: user
.. module:: user
:synopsis: A standard way to reference user-specific modules.
:synopsis: A standard way to reference user-specific modules.
:deprecated:
.. deprecated:: The user module has been removed in Python 3.0.
.. index::
.. index::
pair: .pythonrc.py; file
pair: .pythonrc.py; file
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
e3b1940e
...
@@ -126,7 +126,7 @@ class TestPy3KWarnings(unittest.TestCase):
...
@@ -126,7 +126,7 @@ class TestPy3KWarnings(unittest.TestCase):
class
TestStdlibRemovals
(
unittest
.
TestCase
):
class
TestStdlibRemovals
(
unittest
.
TestCase
):
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
)
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
)
def
check_removal
(
self
,
module_name
):
def
check_removal
(
self
,
module_name
):
"""Make sure the specified module, when imported, raises a
"""Make sure the specified module, when imported, raises a
...
...
Lib/user.py
Dosyayı görüntüle @
e3b1940e
...
@@ -20,6 +20,9 @@ The user's .pythonrc.py could conceivably test for sys.version if it
...
@@ -20,6 +20,9 @@ The user's .pythonrc.py could conceivably test for sys.version if it
wishes to do different things depending on the Python version.
wishes to do different things depending on the Python version.
"""
"""
from
warnings
import
warnpy3k
warnpy3k
(
"the user module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
import
os
import
os
...
...
Misc/NEWS
Dosyayı görüntüle @
e3b1940e
...
@@ -20,6 +20,8 @@ Extension Modules
...
@@ -20,6 +20,8 @@ Extension Modules
Library
Library
-------
-------
- The user module has been deprecated for removal in Python 3.0.
- The stringold module has been deprecated for removal in Python 3.0.
- The stringold module has been deprecated for removal in Python 3.0.
- The mutex module has been deprecated for removal in Python 3.0.
- The mutex module has been deprecated for removal in Python 3.0.
...
...
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