[issue24064] Make the property doctstring writeable

2015-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5262dd507ee5 by Raymond Hettinger in branch 'default': Issue #24064: Docuement that oroperty docstrings are now writeable. https://hg.python.org/cpython/rev/5262dd507ee5 -- ___ Python tracker

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - serhiy.storchaka Added file: http://bugs.python.org/file39356/property_clear.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24064

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset bde652ae05fd by Berker Peksag in branch 'default': Issue #24064: Add __doc__ to the example in collections.rst. https://hg.python.org/cpython/rev/bde652ae05fd -- ___ Python tracker rep...@bugs.python.org

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An example of uncollectable loop if tp_clear is not implemented: class A: @property def f(self): pass A.f.__doc__ = (A.f,) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24064

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: serhiy.storchaka - rhettinger stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24064 ___

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24064 ___

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ddadd0e736d by Raymond Hettinger in branch 'default': Issue #24064: Help property() support GC https://hg.python.org/cpython/rev/2ddadd0e736d -- ___ Python tracker rep...@bugs.python.org

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24064 ___ ___

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: If make docstrings writable, it would be good to ensure that they exactly are strings. I don't see a need for this restriction. Even regular classes don't enforce this. -- assignee: - rhettinger ___ Python

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps the property class now need set the tp_clear slot? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24064 ___

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e8a768fa0a5 by Raymond Hettinger in branch 'default': Issue #24064: Property() docstrings are now writeable. https://hg.python.org/cpython/rev/1e8a768fa0a5 -- nosy: +python-dev ___ Python tracker

[issue24064] Make the property doctstring writeable

2015-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If make docstrings writable, it would be good to ensure that they exactly are strings. And if make the property doctstring writable, may be make other docstrings writable? It may be useful for setting the same docstring for Python implementation and C

[issue24064] Make the property doctstring writeable

2015-05-01 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24064 ___ ___ Python-bugs-list

[issue24064] Make the property doctstring writeable

2015-04-27 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch. I'm not familiar with this part of the CPython source. So please tell me if there is a better way to do it. I only updated Doc/whatsnew/3.5, but other places in the documentation needs to be updated. -- keywords: +patch nosy:

[issue24064] Make the property doctstring writeable

2015-04-27 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24064 ___ ___ Python-bugs-list

[issue24064] Make the property doctstring writeable

2015-04-26 Thread Raymond Hettinger
New submission from Raymond Hettinger: I can't see any reason for property docstrings to be readonly: p = property(doc='basic') p.__doc__ 'basic' p.__doc__ = 'extended' Traceback (most recent call last): File pyshell#46, line 1, in module p.__doc__ =