Bug 32024 - Sphinx не умеет копировать объекты классов с закрытыми property.
Summary: Sphinx не умеет копировать объекты классов с закрытыми property.
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python-module-sphinx (show other bugs)
Version: unstable
Hardware: all Linux
: P3 minor
Assignee: Grigory Ustinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-27 09:54 MSK by nbr
Modified: 2021-09-08 17:33 MSK (History)
19 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nbr 2016-04-27 09:54:10 MSK

    
Comment 1 nbr 2016-04-27 09:57:15 MSK
This "new copy" cannot copy classes like that:
class _AttributeString(str):
    """
    Simple string subclass to allow arbitrary attribute access.
    """
    @property
    def stdout(self):
        return str(self)

These classes can happen and, despite that it is possible to add setter to that classes to allow that new copy do this task, it is not the desirable behavour.

Exception occurred:
  File "/usr/lib/python2.7/site-packages/sphinx/util/nodes.py", line 302, in _new_copy
    newnode.line = self.line
AttributeError: can't set attribute
The full traceback has been saved in /usr/src/tmp/sphinx-err-D5RFSs.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error messaDge can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
error: Bad exit status from /usr/src/tmp/rpm-tmp.34537 (%build)
Comment 2 Grigory Ustinov 2021-09-08 17:33:19 MSK
[#282038] DONE (try 12) del=python-module-sphinx