Re: PYTHON NOT WORKING

2022-01-01 Thread Dan Stromberg
On Sat, Jan 1, 2022 at 1:52 PM the derek team wrote: > HI, I am trying to use python 3.10-1 on windows but, When I try to open > python, it crashes. Anaconda also does not work. When I try to use the > powershell, it gives me an error message saying that this is not recognized > as a valid cmdlet

PYTHON NOT WORKING

2022-01-01 Thread the derek team
HI, I am trying to use python 3.10-1 on windows but, When I try to open python, it crashes. Anaconda also does not work. When I try to use the powershell, it gives me an error message saying that this is not recognized as a valid cmdlet. Please help. -- https://mail.python.org/mailman/listinfo/pyt

Re: How to make a type of a C extension compatible with mypy

2022-01-01 Thread Kirill Ratkin
Hi Marco, It seems issue is about file py.typed and PEP-561. As I understand issue's description you don't need to do it in C but some work in Python files need to done. Maybe this link helps (https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/) // BR (KR) 0

Re: How to implement freelists in dict 3.10 for previous versions?

2022-01-01 Thread Marco Sulla
Ooookay, I suppose I have to study a little the thing :D On Thu, 30 Dec 2021 at 07:59, Inada Naoki wrote: > > On Wed, Dec 29, 2021 at 7:25 PM Marco Sulla > wrote: > > > > I noticed that now freelists in dict use _Py_dict_state. I suppose > > this is done for thread safety. > > > > Some core-dev

How to make a type of a C extension compatible with mypy

2022-01-01 Thread Marco Sulla
I created a type in a C extension, that is an immutable dict. If I do: a: mydict[str, str] it works. But it doesn't work with mypy, as signalled to me by an user: https://github.com/Marco-Sulla/python-frozendict/issues/39 How can I make it work? I don't know what he means with annotating method

Re: using OpenGL on windows 11

2022-01-01 Thread Kirill Ratkin
Hi! Your machine remembers but you probably use different virtual envs. PyCharm, as I remember, creates its own venv (per project maybe). It's better to remove python interpreter installed from MS application market and download python installer from python.org. Install it as user or system.

Re: recover pickled data: pickle data was truncated

2022-01-01 Thread Marco Sulla
I agree with Barry. You can create a folder or a file with pseudo-random names. I recommend you to use str(uuid.uuid4()) On Sat, 1 Jan 2022 at 14:11, Barry wrote: > > > > > On 31 Dec 2021, at 17:53, iMath wrote: > > > > 在 2021年12月30日星期四 UTC+8 03:13:21, 写道: > >>> On Wed, 29 Dec 2021 at 18:33, iM

Re: recover pickled data: pickle data was truncated

2022-01-01 Thread Barry
> On 31 Dec 2021, at 17:53, iMath wrote: > > 在 2021年12月30日星期四 UTC+8 03:13:21, 写道: >>> On Wed, 29 Dec 2021 at 18:33, iMath wrote: >>> But I found the size of the file of the shelve data didn't change much, so >>> I guess the data are still in it , I just wonder any way to recover my data. >>