mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Merged revisions 86670 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86670 | eric.araujo | 2010-11-22 04:09:19 +0100 (lun., 22 nov. 2010) | 5 lines Remove unnecessary `object` base class in docs (#10366). Also add a note about inheritance from `object` being default. ........
This commit is contained in:
parent
f213d2317c
commit
da825ab2dd
11 changed files with 24 additions and 15 deletions
|
|
@ -12,7 +12,7 @@ import operator
|
|||
|
||||
##
|
||||
|
||||
class Foo(object):
|
||||
class Foo:
|
||||
def f(self):
|
||||
print('you called Foo.f()')
|
||||
def g(self):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import sqlite3
|
||||
|
||||
class Point(object):
|
||||
class Point:
|
||||
def __init__(self, x, y):
|
||||
self.x, self.y = x, y
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import sqlite3
|
||||
|
||||
class Point(object):
|
||||
class Point:
|
||||
def __init__(self, x, y):
|
||||
self.x, self.y = x, y
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import sqlite3
|
||||
|
||||
class Point(object):
|
||||
class Point:
|
||||
def __init__(self, x, y):
|
||||
self.x, self.y = x, y
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue