[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: $ python -c "import this" | grep "silently" Errors should never pass silently -- ___ Python tracker ___ ___

[issue19054] Descriptors howto

2013-09-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: By the way, it does not pass all the tests in Python 2.7: $ python2.7 -m doctest descriptor_modified.rst | tail -n 1 ***Test Failed*** 3 failures. If we want to be very rigorous, in order to pass the tests in Py2.7 too (kipping the rst aligned between py2 and py3

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: You are right. Now it should be ok -- Added file: http://bugs.python.org/file31835/py3full.patch ___ Python tracker ___ ___

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31834/py3full.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19054] Descriptors howto

2013-09-21 Thread Ezio Melotti
Ezio Melotti added the comment: In the latest patch there are 5-spaces indents in several places. -- nosy: +ezio.melotti ___ Python tracker ___ __

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: By looking at the other examples in the howto, I saw there is the same problem in all the definitions in the prompt, and furthermore, we are using a different number of spaces to indent MyClass respect the rest of the classes defined in the prompt. There is also

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Changes by Marco Buttu : -- resolution: invalid -> works for me status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mai

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31830/py2howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: I think the indentation is a problem, for several reasons. In all the examples in the documentation, the form by using the interactive shell is the following: >>> class MyClass: ... pass otherwise: class MyClass: pass This one is awful:

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31831/py3howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19054] Descriptors howto

2013-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: The indentation is not incorrect. What you're seeing is normal for the interactive prompt. Also, it is not incorrect to inherit from object in Python 3. There is some value in keeping the document the same between versions. -- resolution: -> inval

[issue19054] Descriptors howto

2013-09-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-l

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Marco Buttu added the comment: I saw right now your decision about keeping object in the Python 3 doc: http://bugs.python.org/issue17351#msg183870 So, now the py3 patch takes in account just the indentation of the `RevealAccess` example and the "class or not" suggestion. -- Added file

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31828/py3howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Added file: http://bugs.python.org/file31830/py2howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31829/py2howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Marco Buttu added the comment: Maybe is better to underline the difference between classes and non-classes objects, instead of between objects and classes, because a class is an object, so it could be confusing). Raymond, what do you think about rewriting this sentence: `The details of invo

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Added file: http://bugs.python.org/file31829/py2howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31821/py2howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31820/py3howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19054] Descriptors howto

2013-09-19 Thread Ned Deily
Changes by Ned Deily : -- nosy: +rhettinger versions: -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue19054] Descriptors howto

2013-09-19 Thread Marco Buttu
Changes by Marco Buttu : -- keywords: +patch Added file: http://bugs.python.org/file31820/py3howto.patch ___ Python tracker ___ ___ Py

[issue19054] Descriptors howto

2013-09-19 Thread Marco Buttu
Changes by Marco Buttu : Added file: http://bugs.python.org/file31821/py2howto.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19054] Descriptors howto

2013-09-19 Thread Marco Buttu
New submission from Marco Buttu: I think in the descriptor howto, at this point: >>> class MyClass(object): x = RevealAccess(10, 'var "x"') y = 5 or the prompt should not have been, or there is a wrong indentation. Furthermore, in Python 3: http://docs.python.org/3/howto/descriptor.htm