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
997b8c14
Unverified
Kaydet (Commit)
997b8c14
authored
Şub 16, 2018
tarafından
Barry Warsaw
Kaydeden (comit)
GitHub
Şub 16, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update and sync importlib.resources documentation (#5694)
üst
7745ec4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
importlib.rst
Doc/library/importlib.rst
+22
-5
No files found.
Doc/library/importlib.rst
Dosyayı görüntüle @
997b8c14
...
@@ -369,9 +369,9 @@ ABC hierarchy::
...
@@ -369,9 +369,9 @@ ABC hierarchy::
An
abstract
base
class
for
a
:
term
:`
loader
`.
An
abstract
base
class
for
a
:
term
:`
loader
`.
See
:
pep
:`
302
`
for
the
exact
definition
for
a
loader
.
See
:
pep
:`
302
`
for
the
exact
definition
for
a
loader
.
For
loaders
that
wish
to
support
resource
reading
,
they
should
Loaders
that
wish
to
support
resource
reading
should
implement
a
implement
a
``
get_resource_reader
(
fullname
)``
method
as
specified
``
get_resource_reader
(
fullname
)``
method
as
specified
by
by
:
class
:`
importlib
.
abc
.
ResourceReader
`.
:
class
:`
importlib
.
abc
.
ResourceReader
`.
..
versionchanged
::
3.7
..
versionchanged
::
3.7
Introduced
the
optional
``
get_resource_reader
()``
method
.
Introduced
the
optional
``
get_resource_reader
()``
method
.
...
@@ -813,8 +813,25 @@ Resources are roughly akin to files inside directories, though it's important
...
@@ -813,8 +813,25 @@ Resources are roughly akin to files inside directories, though it's important
to
keep
in
mind
that
this
is
just
a
metaphor
.
Resources
and
packages
**
do
to
keep
in
mind
that
this
is
just
a
metaphor
.
Resources
and
packages
**
do
not
**
have
to
exist
as
physical
files
and
directories
on
the
file
system
.
not
**
have
to
exist
as
physical
files
and
directories
on
the
file
system
.
Loaders
can
support
resources
by
implementing
the
:
class
:`
ResourceReader
`
..
note
::
abstract
base
class
.
This
module
provides
functionality
similar
to
`
pkg_resources
<
https
://
setuptools
.
readthedocs
.
io
/
en
/
latest
/
pkg_resources
.
html
>`
_
`
Basic
Resource
Access
<
http
://
setuptools
.
readthedocs
.
io
/
en
/
latest
/
pkg_resources
.
html
#
basic
-
resource
-
access
>`
_
without
the
performance
overhead
of
that
package
.
This
makes
reading
resources
included
in
packages
easier
,
with
more
stable
and
consistent
semantics
.
The
standalone
backport
of
this
module
provides
more
information
on
`
using
importlib
.
resources
<
http
://
importlib
-
resources
.
readthedocs
.
io
/
en
/
latest
/
using
.
html
>`
_
and
`
migrating
from
pkg_resources
to
importlib
.
resources
<
http
://
importlib
-
resources
.
readthedocs
.
io
/
en
/
latest
/
migration
.
html
>`
_
.
Loaders
that
wish
to
support
resource
reading
should
implement
a
``
get_resource_reader
(
fullname
)``
method
as
specified
by
:
class
:`
importlib
.
abc
.
ResourceReader
`.
The
following
types
are
defined
.
The
following
types
are
defined
.
...
...
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