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
af8838f4
Kaydet (Commit)
af8838f4
authored
Mar 11, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#17351: remove "object" inheritance from docs. Patch by Phil Elson.
üst
42a541bd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
descriptor.rst
Doc/howto/descriptor.rst
+3
-3
logging-cookbook.rst
Doc/howto/logging-cookbook.rst
+3
-3
sorting.rst
Doc/howto/sorting.rst
+1
-1
functions.rst
Doc/library/functions.rst
+1
-1
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/howto/descriptor.rst
Dosyayı görüntüle @
af8838f4
...
...
@@ -224,17 +224,17 @@ here is a pure Python equivalent::
if obj is None:
return self
if self.fget is None:
raise AttributeError
, "unreadable attribute"
raise AttributeError
("unreadable attribute")
return self.fget(obj)
def __set__(self, obj, value):
if self.fset is None:
raise AttributeError
, "can't set attribute"
raise AttributeError
("can't set attribute")
self.fset(obj, value)
def __delete__(self, obj):
if self.fdel is None:
raise AttributeError
, "can't delete attribute"
raise AttributeError
("can't delete attribute")
self.fdel(obj)
The :func:`property` builtin helps whenever a user interface has granted
...
...
Doc/howto/logging-cookbook.rst
Dosyayı görüntüle @
af8838f4
...
...
@@ -1036,7 +1036,7 @@ arbitrary object as a message format string, and that the logging package will
call ``str()`` on that object to get the actual format string. Consider the
following two classes::
class BraceMessage
(object)
:
class BraceMessage:
def __init__(self, fmt, *args, **kwargs):
self.fmt = fmt
self.args = args
...
...
@@ -1045,7 +1045,7 @@ following two classes::
def __str__(self):
return self.fmt.format(*self.args, **self.kwargs)
class DollarMessage
(object)
:
class DollarMessage:
def __init__(self, fmt, **kwargs):
self.fmt = fmt
self.kwargs = kwargs
...
...
@@ -1345,7 +1345,7 @@ works::
import random
import time
class MyHandler
(object)
:
class MyHandler:
"""
A simple handler for logging events. It runs in the listener process and
dispatches events to loggers based on the name in the received record,
...
...
Doc/howto/sorting.rst
Dosyayı görüntüle @
af8838f4
...
...
@@ -225,7 +225,7 @@ function. The following wrapper makes that easy to do::
def cmp_to_key(mycmp):
'Convert a cmp= function into a key= function'
class K
(object)
:
class K:
def __init__(self, obj, *args):
self.obj = obj
def __lt__(self, other):
...
...
Doc/library/functions.rst
Dosyayı görüntüle @
af8838f4
...
...
@@ -317,7 +317,7 @@ are always available. They are listed here in alphabetical order.
['Struct', '__builtins__', '__doc__', '__file__', '__name__',
'__package__', '_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
'unpack', 'unpack_from']
>>> class Shape
(object)
:
>>> class Shape:
def __dir__(self):
return ['area', 'perimeter', 'location']
>>> s = Shape()
...
...
Misc/ACKS
Dosyayı görüntüle @
af8838f4
...
...
@@ -303,6 +303,7 @@ Eric Eisner
Andrew Eland
Julien Élie
Lance Ellinghaus
Phil Elson
David Ely
Jeff Epler
Tom Epperly
...
...
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