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
fe598518
Kaydet (Commit)
fe598518
authored
May 10, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate the fpformat module for removal in 3.0.
üst
e35a3a1d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
3 deletions
+14
-3
fpformat.rst
Doc/library/fpformat.rst
+5
-0
fpformat.py
Lib/fpformat.py
+3
-0
test_fpformat.py
Lib/test/test_fpformat.py
+3
-2
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/fpformat.rst
Dosyayı görüntüle @
fe598518
...
...
@@ -4,6 +4,11 @@
.. module:: fpformat
:synopsis: General floating point formatting functions.
:deprecated:
.. deprecated:: 2.6
The fpformat module has been removed in Python 3.0.
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
...
...
Lib/fpformat.py
Dosyayı görüntüle @
fe598518
...
...
@@ -10,6 +10,9 @@ Parameters:
x: number to be formatted; or a string resembling a number
digits_behind: number of digits behind the decimal point
"""
from
warnings
import
warnpy3k
warnpy3k
(
"the fpformat module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
import
re
...
...
Lib/test/test_fpformat.py
Dosyayı görüntüle @
fe598518
...
...
@@ -2,9 +2,10 @@
Tests for fpformat module
Nick Mathewson
'''
from
test.test_support
import
run_unittest
from
test.test_support
import
run_unittest
,
import_module
import
unittest
from
fpformat
import
fix
,
sci
,
NotANumber
fpformat
=
import_module
(
'fpformat'
,
deprecated
=
True
)
fix
,
sci
,
NotANumber
=
fpformat
.
fix
,
fpformat
.
sci
,
fpformat
.
NotANumber
StringType
=
type
(
''
)
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
fe598518
...
...
@@ -129,7 +129,7 @@ class TestStdlibRemovals(unittest.TestCase):
# test.testall not tested as it executes all unit tests as an
# import side-effect.
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
,
'compiler'
,
'dircache'
)
'Bastion'
,
'compiler'
,
'dircache'
,
'fpformat'
)
inclusive_platforms
=
{
'irix'
:(
'pure'
,)}
# XXX Don't know if lib-tk is only installed if _tkinter is built.
optional_modules
=
(
'bsddb185'
,
'Canvas'
,
'dl'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
fe598518
...
...
@@ -23,6 +23,8 @@ Extension Modules
Library
-------
- The fpformat module has been deprecated for removal in Python 3.0.
- The dl module has been deprecated for removal in Python 3.0.
- The Canvas 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