[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
R. David Murray rdmur...@bitdance.com added the comment: Since boost has changed their code and no one else has reported a problem and 2.6 is now in bug fix only mode, I'm going to close this as out of date (sorry I overlooked it for 2.6.5). If anyone disagrees, let me know what we should change and why in 2.7. -- resolution: - out of date stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +pveloz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Moriyoshi Koizumi mozo+pyt...@mozo.jp added the comment: See my comment on issue #5890. I attached a patch to solve the Boost.Python issue. -- nosy: +moriyoshi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Barry A. Warsaw ba...@python.org added the comment: Robert indicated later that this probably did /not/ affect Bazaar. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
R. David Murray rdmur...@bitdance.com added the comment: I added some tests in test_property in my checkout and the __doc__ property is not, as far as I can tell, set read-only by the issue 5890 fix. The error message referenced in the report is: AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only If Boost.Python.StaticProperty is a subclass of Property, which seems likely, then the 5890 fix could well be triggering this error, since if a property created with a subclass is given a docstring, the fix creates a __doc__ attribute in the subclass's dict. If the subclass dict is read only, the above error would be triggered. I don't know enough about extension types to know if the property code should be special casing extension types, but if it should, then IMO that would qualify 5890 as a regression. Otherwise I don't think it is, though we could still consider whether making a change to reduce user pain is worthwhile. (To be worthwhile it would have to be likely to reach the users before the Boost fix does...apparently Boos has a fix in their SVN for this problem.) I'm guessing that this is a problem only with extension types, not with pure Python code. -- nosy: +r.david.murray stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
R. David Murray rdmur...@bitdance.com added the comment: That should have been 'instance's dict', not the subclass dict. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Barry A. Warsaw ba...@python.org added the comment: Thanks David, that's what I suspect too (that's its a problem with extension types). Unless we get more information, I'm not inclined to hold up the 2.6.4 release for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Antoine Pitrou pit...@free.fr added the comment: I'm not sure I understand, how do you create a read-only instance dict? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
R. David Murray rdmur...@bitdance.com added the comment: I'm not sure you do. I have no idea how Boost works, but the fact that removing a Boost 'read-only' declaration circumvents the problem in at least some cases argues that Boost is setting _something_ read-only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Barry A. Warsaw ba...@python.org added the comment: After discussion on python-dev, this will not block 2.6.4 -- priority: release blocker - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
New submission from Zooko O'Whielacronx zo...@zooko.com: According to https://bugs.edge.launchpad.net/ubuntu/+source/boost1.38/+bug/457688 , Python 2.6.3 stopped working for something that Python 2.6.2 worked for, involving Boost. Andrew Mitchell looked at the Python 2.6.3 release notes, saw http://bugs.python.org/issue5890 which was fixed by http://svn.python.org/view/python/branches/release26- maint/Objects/descrobject.c?r1=71756r2=72302pathrev=72302 . Could this patch be causing this problem? -- components: Interpreter Core messages: 94329 nosy: zooko severity: normal status: open title: did 2.6.3 regress for some uses of the __doc__ property? versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Barry A. Warsaw ba...@python.org added the comment: I think this is caused by the fix for bug 5890 and isn't a regression. -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Barry A. Warsaw ba...@python.org added the comment: Apparently this affects more than just Boost. lifeless (Robert Collins) tells me that __doc__ becoming readonly buggered some code of ours in bzr too, IIRC. He thinks it was in pure Python (i.e. not extension code). Does anybody have a pure Python reproducible example? -- priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com