(Mar-30-2022, 07:05 PM)Skaperen Wrote: but it was not working in my 3.6.9The method is available long before that, even in python2. Here is the docs for python 3.6
If it is "not working" then there is problem in how you try to use it - show minimal reproducible example of your code that does not work, as well as full traceback you get (if any).
BTW, my question "why" was targeted at others, suggesting functions that mimic the method.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs