Re: recover pickled data: pickle data was truncated

2021-12-26 Thread Barry Scott
> On 26 Dec 2021, at 13:44, Marco Sulla wrote: > > Use a semaphore. > > On Sun, 26 Dec 2021 at 03:30, iMath wrote: >> >> Normally, the shelve data should be read and write by only one process at a >> time, but unfortunately it was simultaneously read and write by two >> processes, thus co

A Newspaper for Python Mailing Lists

2021-12-26 Thread Abdur-Rahmaan Janhangeer
Greetings lists, I have started a newspaper (not newsletter) focused on interesting reads on Python mailing lists. Don't tag on the fact that holiday seasons are the worst times for launch according to marketing folks, I started this to note down interesting mails. This might also be a great way t

Re: Uninstall old python version(Python 3.9.7)

2021-12-26 Thread Barry Scott
> On 25 Dec 2021, at 06:13, Công Huy wrote: > > I had uninstalled Python 3.9.7 before but it wasn't uninstalled > completely. I found it still in my computer and when I click "uninstall", > it sent me a board "No Python 3.9 installation was detected". Of course, > it won't be an issue i

Re: What's the public API alternative to _PyObject_GC_IS_TRACKED()?

2021-12-26 Thread Barry Scott
> On 26 Dec 2021, at 13:48, Marco Sulla wrote: > > I have to use _PyObject_GC_IS_TRACKED(). It can't be used unless you > define Py_BUILD_CORE. I want to avoid this. What macro or function can > substitute it? Why is this needed by your code? Surely the GC does its thing as an implementation

What's the public API alternative to _PyObject_GC_IS_TRACKED()?

2021-12-26 Thread Marco Sulla
I have to use _PyObject_GC_IS_TRACKED(). It can't be used unless you define Py_BUILD_CORE. I want to avoid this. What macro or function can substitute it? -- https://mail.python.org/mailman/listinfo/python-list

Re: recover pickled data: pickle data was truncated

2021-12-26 Thread Marco Sulla
Use a semaphore. On Sun, 26 Dec 2021 at 03:30, iMath wrote: > > Normally, the shelve data should be read and write by only one process at a > time, but unfortunately it was simultaneously read and write by two > processes, thus corrupted it. Is there any way to recover all data in it ? > Curre