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
d0169000
Kaydet (Commit)
d0169000
authored
Haz 15, 2013
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge heads
üst
36f01ad9
6b3d64ab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
2 deletions
+36
-2
enum.rst
Doc/library/enum.rst
+0
-0
imp.rst
Doc/library/imp.rst
+3
-0
types.rst
Doc/library/types.rst
+28
-2
enum.py
Lib/enum.py
+0
-0
test_enum.py
Lib/test/test_enum.py
+0
-0
NEWS
Misc/NEWS
+5
-0
No files found.
Doc/library/enum.rst
0 → 100644
Dosyayı görüntüle @
d0169000
This diff is collapsed.
Click to expand it.
Doc/library/imp.rst
Dosyayı görüntüle @
d0169000
...
@@ -112,6 +112,9 @@ This module provides an interface to the mechanisms used to implement the
...
@@ -112,6 +112,9 @@ This module provides an interface to the mechanisms used to implement the
Return a new empty module object called *name*. This object is *not* inserted
Return a new empty module object called *name*. This object is *not* inserted
in ``sys.modules``.
in ``sys.modules``.
.. deprecated:: 3.4
Use :class:`types.ModuleType` instead.
.. function:: reload(module)
.. function:: reload(module)
...
...
Doc/library/types.rst
Dosyayı görüntüle @
d0169000
...
@@ -107,9 +107,35 @@ Standard names are defined for the following types:
...
@@ -107,9 +107,35 @@ Standard names are defined for the following types:
C".)
C".)
..
data:: ModuleType
..
class:: ModuleType(name, doc=None)
The type of modules.
The type of :term:`modules <module>`. Constructor takes the name of the
module to be created and optionally its :term:`docstring`.
.. attribute:: __doc__
The :term:`docstring` of the module. Defaults to ``None``.
.. attribute:: __loader__
The :term:`loader` which loaded the module. Defaults to ``None``.
.. versionchanged:: 3.4
Defaults to ``None``. Previously the attribute was optional.
.. attribute:: __name__
The name of the module.
.. attribute:: __package__
Which :term:`package` a module belongs to. If the module is top-level
(i.e. not a part of any specific package) then the attribute should be set
to ``''``, else it should be set to the name of the package (which can be
:attr:`__name__` if the module is a package itself). Defaults to ``None``.
.. versionchanged:: 3.4
Defaults to ``None``. Previously the attribute was optional.
.. data:: TracebackType
.. data:: TracebackType
...
...
Lib/enum.py
0 → 100644
Dosyayı görüntüle @
d0169000
This diff is collapsed.
Click to expand it.
Lib/test/test_enum.py
0 → 100644
Dosyayı görüntüle @
d0169000
This diff is collapsed.
Click to expand it.
Misc/NEWS
Dosyayı görüntüle @
d0169000
...
@@ -123,6 +123,9 @@ Core and Builtins
...
@@ -123,6 +123,9 @@ Core and Builtins
Library
Library
-------
-------
-
Issue
#
17907
:
Document
imp
.
new_module
()
as
deprecated
in
favour
of
types
.
ModuleType
.
-
Issue
#
18192
:
Introduce
importlib
.
util
.
MAGIC_NUMBER
and
document
as
deprecated
-
Issue
#
18192
:
Introduce
importlib
.
util
.
MAGIC_NUMBER
and
document
as
deprecated
imp
.
get_magic
().
imp
.
get_magic
().
...
@@ -378,6 +381,8 @@ Library
...
@@ -378,6 +381,8 @@ Library
- Implement PEP 443 "Single-dispatch generic functions".
- Implement PEP 443 "Single-dispatch generic functions".
- Implement PEP 435 "Adding an Enum type to the Python standard library".
Tests
Tests
-----
-----
...
...
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