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:
Éric Araujo 2010-11-22 03:18:24 +00:00
parent f213d2317c
commit da825ab2dd
11 changed files with 24 additions and 15 deletions

View file

@ -12,7 +12,7 @@ import operator
##
class Foo(object):
class Foo:
def f(self):
print('you called Foo.f()')
def g(self):

View file

@ -1,6 +1,6 @@
import sqlite3
class Point(object):
class Point:
def __init__(self, x, y):
self.x, self.y = x, y

View file

@ -1,6 +1,6 @@
import sqlite3
class Point(object):
class Point:
def __init__(self, x, y):
self.x, self.y = x, y

View file

@ -1,6 +1,6 @@
import sqlite3
class Point(object):
class Point:
def __init__(self, x, y):
self.x, self.y = x, y