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
825bae7c
Kaydet (Commit)
825bae7c
authored
Kas 02, 1995
tarafından
Sjoerd Mullender
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Also remember the module a class is defined in.
üst
fa7aece2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pyclbr.py
Lib/pyclbr.py
+3
-2
No files found.
Lib/pyclbr.py
Dosyayı görüntüle @
825bae7c
...
...
@@ -52,7 +52,8 @@ _modules = {} # cache of modules we've seen
# each Python class is represented by an instance of this class
class
Class
:
'''Class to represent a Python class.'''
def
__init__
(
self
,
name
,
super
,
file
,
lineno
):
def
__init__
(
self
,
module
,
name
,
super
,
file
,
lineno
):
self
.
module
=
module
self
.
name
=
name
if
super
is
None
:
super
=
[]
...
...
@@ -187,7 +188,7 @@ def readmodule(module, path = []):
names
.
append
(
n
)
inherit
=
names
# remember this class
cur_class
=
Class
(
class_name
,
inherit
,
file
,
lineno
)
cur_class
=
Class
(
module
,
class_name
,
inherit
,
file
,
lineno
)
dict
[
class_name
]
=
cur_class
continue
if
is_method
.
match
(
line
)
>=
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