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
1c2353b0
Kaydet (Commit)
1c2353b0
authored
Ara 20, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
builtin-ins -> builtins
üst
6ab5d083
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
future_builtins.rst
Doc/library/future_builtins.rst
+6
-6
No files found.
Doc/library/future_builtins.rst
Dosyayı görüntüle @
1c2353b0
:mod:`future_builtins` --- Python 3 built
-
ins
:mod:`future_builtins` --- Python 3 builtins
============================================
=
============================================
.. module:: future_builtins
.. module:: future_builtins
.. sectionauthor:: Georg Brandl
.. sectionauthor:: Georg Brandl
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
This module provides functions that exist in 2.x, but have different behavior in
This module provides functions that exist in 2.x, but have different behavior in
Python 3, so they cannot be put into the 2.x builtins namespace.
Python 3, so they cannot be put into the 2.x builtins namespace.
Instead, if you want to write code compatible with Python 3 built
-
ins, import
Instead, if you want to write code compatible with Python 3 builtins, import
them from this module, like this::
them from this module, like this::
from future_builtins import map, filter
from future_builtins import map, filter
...
@@ -16,17 +16,17 @@ them from this module, like this::
...
@@ -16,17 +16,17 @@ them from this module, like this::
... code using Python 3-style map and filter ...
... code using Python 3-style map and filter ...
The :term:`2to3` tool that ports Python 2 code to Python 3 will recognize
The :term:`2to3` tool that ports Python 2 code to Python 3 will recognize
this usage and leave the new built
-
ins alone.
this usage and leave the new builtins alone.
.. note::
.. note::
The Python 3 :func:`print` function is already in the built
-
ins, but cannot be
The Python 3 :func:`print` function is already in the builtins, but cannot be
accessed from Python 2 code unless you use the appropriate future statement::
accessed from Python 2 code unless you use the appropriate future statement::
from __future__ import print_function
from __future__ import print_function
Available built
-
ins are:
Available builtins are:
.. function:: ascii(object)
.. function:: ascii(object)
...
...
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