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
0751d1ad
Kaydet (Commit)
0751d1ad
authored
Ock 21, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapt pydoc to new doc URLs.
üst
ae747dcc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
building.rst
Doc/extending/building.rst
+1
-1
pydoc.rst
Doc/library/pydoc.rst
+1
-1
pydoc.py
Lib/pydoc.py
+6
-7
No files found.
Doc/extending/building.rst
Dosyayı görüntüle @
0751d1ad
...
...
@@ -80,7 +80,7 @@ example below. ::
description = 'This is a demo package',
author = 'Martin v. Loewis',
author_email = 'martin@v.loewis.de',
url = 'http://
www.python.org/doc/current/ext/building.html
',
url = 'http://
docs.python.org/extending/building
',
long_description = '''
This is really just a demo package.
''',
...
...
Doc/library/pydoc.rst
Dosyayı görüntüle @
0751d1ad
...
...
@@ -59,7 +59,7 @@ documents precisely the version of the module you would get if you started the
Python interpreter and typed ``import spam``.
Module docs for core modules are assumed to reside in
http://
www.python.org/doc/current/lib
/. This can be overridden by setting the
http://
docs.python.org/library
/. This can be overridden by setting the
:envvar:`PYTHONDOCS` environment variable to a different URL or to a local
directory containing the Library Reference Manual pages.
Lib/pydoc.py
Dosyayı görüntüle @
0751d1ad
...
...
@@ -27,7 +27,7 @@ to a file named "<name>.html".
Module docs for core modules are assumed to be in
http://
www.python.org/doc/current/lib
/
http://
docs.python.org/library
/
This can be overridden by setting the PYTHONDOCS environment variable
to a different URL or to a local directory containing the Library
...
...
@@ -346,7 +346,7 @@ class Doc:
file
=
'(built-in)'
docloc
=
os
.
environ
.
get
(
"PYTHONDOCS"
,
"http://
www.python.org/doc/current/lib
"
)
"http://
docs.python.org/library
"
)
basedir
=
os
.
path
.
join
(
sys
.
exec_prefix
,
"lib"
,
"python"
+
sys
.
version
[
0
:
3
])
if
(
isinstance
(
object
,
type
(
os
))
and
...
...
@@ -355,11 +355,10 @@ class Doc:
'thread'
,
'zipimport'
)
or
(
file
.
startswith
(
basedir
)
and
not
file
.
startswith
(
os
.
path
.
join
(
basedir
,
'site-packages'
))))):
htmlfile
=
"module-
%
s.html"
%
object
.
__name__
if
docloc
.
startswith
(
"http://"
):
docloc
=
"
%
s/
%
s"
%
(
docloc
.
rstrip
(
"/"
),
htmlfile
)
docloc
=
"
%
s/
%
s"
%
(
docloc
.
rstrip
(
"/"
),
object
.
__name__
)
else
:
docloc
=
os
.
path
.
join
(
docloc
,
htmlfile
)
docloc
=
os
.
path
.
join
(
docloc
,
object
.
__name__
+
".html"
)
else
:
docloc
=
None
return
docloc
...
...
@@ -541,7 +540,7 @@ class HTMLDoc(Doc):
url
=
'http://www.rfc-editor.org/rfc/rfc
%
d.txt'
%
int
(
rfc
)
results
.
append
(
'<a href="
%
s">
%
s</a>'
%
(
url
,
escape
(
all
)))
elif
pep
:
url
=
'http://www.python.org/peps/pep-
%04
d
.html
'
%
int
(
pep
)
url
=
'http://www.python.org/peps/pep-
%04
d'
%
int
(
pep
)
results
.
append
(
'<a href="
%
s">
%
s</a>'
%
(
url
,
escape
(
all
)))
elif
text
[
end
:
end
+
1
]
==
'('
:
results
.
append
(
self
.
namelink
(
name
,
methods
,
funcs
,
classes
))
...
...
@@ -1710,7 +1709,7 @@ has the same effect as typing a particular string at the help> prompt.
Welcome to Python
%
s! This is the online help utility.
If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://
www.python.org/doc/tut
/.
the tutorial on the Internet at http://
docs.python.org/tutorial
/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
...
...
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