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
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
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
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
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
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24064
___
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
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: commit review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24064
___
___
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
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
___
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
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
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24064
___
___
Python-bugs-list
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:
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24064
___
___
Python-bugs-list
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__ =
16 matches
Mail list logo