recover pickled data: pickle data was truncated

2021-12-25 Thread iMath
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 ? Currently I just get "pickle data was truncated" exception after reading a po

Uninstall old python version(Python 3.9.7)

2021-12-25 Thread Công Huy
I uninstalled Python 3.9.7 but I can't delete completely. And I received a notification "no Python 3.9 was detected". Of course, it won't be an issue if it defaulted my python version on my computer and it makes me can't use some libraries I installed before like numpy, matplotlib and n

Uninstall old python version(Python 3.9.7)

2021-12-25 Thread Công Huy
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 if it defaulted my main Python version on my computer

Re: Isn't TypeError built in?

2021-12-25 Thread Mike Dewhirst via Python-list
Thanks Peter ... the problem was all mine.Can't quite remember what it was exactly but I introduced a bug in my own code and it manifested down there in the bowels of the snake.I suppose that indicates a possible kink to be ironed out and if that interests you I am happy to retrace my steps and

Re: email.message_from_file & quoted printable

2021-12-25 Thread Skip Montanaro
> That sometimes you want the raw content as it was in the file? That if > you have that choice (decoded or raw) the default should be False, as it > does less? Yeah, thinking back later, the round-trip possibility seemed plausible. I'll stop overthinking this now... > That we my _first_ instinct

Re: Isn't TypeError built in?

2021-12-25 Thread Peter J. Holzer
On 2021-12-13 12:22:28 +1100, Mike Dewhirst via Python-list wrote: > Obviously something is wrong elsewhere but I'm not sure where to look. > Ubuntu 20.04 with plenty of RAM. [...] > [Mon Dec 13 01:15:49.885659 2021] [mpm_event:notice] [pid 1033:tid > 140446449658944] AH00489: Apache/2.4.41 (Ubuntu