[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: The patch actually already contained a doc change addressing Terry’s second request, thank you Xuanji Li. I reverted the changes to howto as per Raymond’s comment, made some other slight editions (like removing trailing whitespace) and committed as r86670 and r

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: These mostly look good. Do leave the howto documents as-is. They have some value across multiple versions of Python. Also, the descriptor how-to in particular gets some benefit from keeping (object) explicit because it helps remind users which version o

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: “I also think the doc for 'class' should say that the default inheritance is from the base class *object*” -- ___ Python tracker ___

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Xuanji Li
Xuanji Li added the comment: Hi eric, what doc change are you referring to? -- status: pending -> open ___ Python tracker ___ ___ Pyt

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: I will commit the patch this week unless someone opposes to it. We still need a doc change as described in Terry’s original message. -- assignee: d...@python -> eric.araujo resolution: -> accepted stage: needs patch -> patch review status: open -> pendin

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-12 Thread Xuanji Li
Xuanji Li added the comment: Attached a patch to implement the suggested changes on 3.2. If the patch is ok I can do the same for 3.1. -- keywords: +patch nosy: +xuanji Added file: http://bugs.python.org/file19591/issue10366_remove_unneeded_object_py3.2.diff _

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Other unneeded uses of object, courtesy of grep: library/sqlite3.rst:713: class Point(object): library/multiprocessing.rst:1335: class MathsClass(object): library/functions.rst:281: >>> class Foo(object): library/functions.rst:897: class C(object): l

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Terry J. Reedy
New submission from Terry J. Reedy : In 3.x, "(object)" is now superfluous in class statements. Reference manual 7.7. Class definitions has simply class Foo: pass In library manual 2. Built-in Functions, class examples for classmethod and staticmethod are the same. Class examples for dir,