Re: No usage of recursiveGet/Set/DelAttr
Andy Robinson <[email protected]> Tue, 1 Mar 2022 15:33:56 +0000
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CABjtApsFjFbNE3ciWhUceg-orsGQ+74tfQ9KR6OJnsfndF04Ww@mail.gmail.com> |
We have discussed this. How do we know that there is nobody out there using the function? Our graphics framework and object hierarchy are quite nested, and so this function was quite useful to us and might have been to others. There are probably tens of thousands of projects using ReportLab including many in-house ones we have no way to even know about. Regrettably we did not have any kind of strict separation of external API and internal details when we started, and many times in the last 20 years we have 'tidied something up' and broken somebody else's application. We feel that unless something is actually broken, or there is a risk, it's safer not to change things for the sake of change. There is a more elegant implementation of recursiveSetAttr on StackOverflow, but more elegant can also mean "harder to understand" so we see no need to change it now. Best Regards Andy On Tue, 1 Mar 2022 at 07:48, Claude Paroz <[email protected]> wrote: > Hi Andy, > > Then maybe it would just be a matter of moving the function(s) to your > internal commercial code? > > Claude > > Le 28.02.22 à 14:23, Andy Robinson a écrit : > > Claude, I see that recursiveSetAttr is used by our commercial product > > `rml2pdf`. It's possible we could remove them, as python provides much > > better tools for that kind of thing than it did in 2001. We have to > > scan a few other repositories to see if there are other uses before we > > can be sure. > > > > - Andy Robinson > > > > On Mon, 28 Feb 2022 at 13:17, Claude Paroz <[email protected] > > <mailto:[email protected]>> wrote: > > > > Hi, > > > > I didn't find any usage of > > recursiveGetAttr/recursiveSetAttr/recursiveDelAttr in reportlab > > public code. > > So if they are not used in other client code, I guess they could > simply > > be removed, as the attached patch is doing. > > > > Claude > > -- > > www.2xlibre.net >