On Mon, 2025-01-27 at 01:05 -0800, omri.sarig via lists.yoctoproject.org wrote: > I have a Python code I'd like to add to my Yocto build. > In this code, I use the string module from Python. > > To make my code run on the target, I need to add the dependency of > "python3-stringold" to my recipe. > I've looked at the description of this package, and it says: "Python > string APIs [deprecated]". > > My code works as expected on the target, but the naming of the > package, and its description confuses me. > As far as I can tell, Python's string module is not currently > deprecated. In the past, this module did use to contain more > functionality, which moved to be part of the str object itself, but > the module still contains other functionality, which is not > deprecated. > > I tried to trace the log of meta-poky to see when the deprecation > notice was added, and it looks like it is there from the first commit > adding this python (and this package) to the project: > > commit 7defc582e098a099f9056aa4ff18e200361ad512 > Author: Richard Purdie <rich...@openedhand.com> > Date: Tue May 23 11:07:10 2006 +0000 > > Add python+pyhton-pygtk2 > > > git-svn-id: https://svn.o-hand.com/repos/poky/trunk@415 311d38ba- > 8fff-0310-9ca6-ca027cbcb966 > > Is this deprecation message for the package wrong, or am I doing > something wrong by using it?
That wasn't the commit this came from. The history gets a bit weird around that time as things were in flux and you can trace it back to here: https://git.openembedded.org/openembedded/commit/packages/python/?id=22e48b2859280d7dbb51581c8315dc6d6bd0cd38 or older again for the "stringold" package itself: https://git.openembedded.org/openembedded/commit/packages/python/python-2.4.1-manifest.inc?id=718607c5dcffb837e0cbe09363c8959a2abe2f3e or in python 2.3.4 here: https://git.openembedded.org/openembedded/commit/packages/python?id=6579e8daf68dd520b702412208bfeae85af6fadc I can't see anything older. As you say, the string module is fine and I think this is historical confusion about the mode of some of the methods to strings themselves. I'd accept a patch to tweak the description and perhaps the naming although we have a compatibility issue to think about if we change that. Patches need to go to the openembedded-core list. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64634): https://lists.yoctoproject.org/g/yocto/message/64634 Mute This Topic: https://lists.yoctoproject.org/mt/110835885/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-