Alex Zaslavskis added the comment:
Thanks guys. Microsoft is always pain for us.
Bit wmic seems nice solution.
Is still working for windows lower than 11?
--
___
Python tracker
<https://bugs.python.org/issue45
Alex Zaslavskis added the comment:
The quick research on web gived me that C/C++ developers will just get the
build version and compare it with predefined list.
See more there:
https://docs.microsoft.com/answers/questions/672988/c-detect-windows-build.html
ср, 26 янв. 2022 г., 05:05 Eryk Sun
Alex Zaslavskis added the comment:
The quick research on web gived me that C/C++ developers will just get the
build version and compare it with predefined list.
See more there:
https://docs.microsoft.com/answers/questions/672988/c-detect-windows-build.html
New submission from Alex Zaslavskis :
If we will try to split bytes we will got quite strange error in console.
Traceback (most recent call last):
File "C:/Users/ProAdmin/Desktop/bug_in_python.py", line 6, in
byte_message.split(",")
TypeError: a bytes-like object i
Change by Alex Zaslavskis :
--
type: compile error -> behavior
___
Python tracker
<https://bugs.python.org/issue45087>
___
___
Python-bugs-list mailing list
Un
Change by Alex Zaslavskis :
Added file: https://bugs.python.org/file50258/bug_in_python.py
___
Python tracker
<https://bugs.python.org/issue45087>
___
___
Python-bug
Change by Alex Zaslavskis :
Removed file: https://bugs.python.org/file50257/bug_in_python.py
___
Python tracker
<https://bugs.python.org/issue45087>
___
___
Python-bug
Alex Zaslavskis added the comment:
I am not really sure that it is working as it should be. Even with your example
it gives :
TypeError: a bytes-like object is required, not 'str'
The problem is why error message says that bytes-like is required , when the
string i
Alex Zaslavskis added the comment:
''.split(',') # works as it should be
b''.split(',') # gives strange error message.
TypeError: a bytes-like object is required, not 'str'
The problem here is that message is saying that for fix error you
Alex Zaslavskis added the comment:
Moreover according Python docs : This exception may be raised by user code to
indicate that an attempted operation on an object is not supported. But also
the Python interpreter gives that a bytes-like object is required, not 'str'
that I
Alex Zaslavskis added the comment:
Thanks that really works.
So as I understand that b''.split() != ''.split()
--
resolution: -> not a bug
___
Python tracker
<https://
Alex Zaslavskis added the comment:
What about adding alert message for beginners that can stuck with that in docs?
To warn others , is that good idea you think. Or it is redundant ?
--
___
Python tracker
<https://bugs.python.org/issue45
New submission from Alex Zaslavskis :
I am updated to windows 11 . Now I am trying to write script that will detect
is user use windows 11 or windows 10 .
I was using the simplest way as possible:
import platform
print(platform.platform())
The result I got is : Windows-10-10.0.22000-SP0
Alex Zaslavskis added the comment:
The
platform.win32_ver() returns same answer
--
___
Python tracker
<https://bugs.python.org/issue45382>
___
___
Python-bug
Alex Zaslavskis added the comment:
The bug comes from Microsoft terminal bug : If I type there : ver it will
return Microsoft Windows [Version 10.0.22000.194] only one patch is if that
will check the build .
so :
info = subprocess.check_output(cmd
Alex Zaslavskis added the comment:
demo.py contains dirty hack that can be used as a fix for some time before
microsoft will not fix it.
--
Added file: https://bugs.python.org/file50327/demo.py
___
Python tracker
<https://bugs.python.
Alex Zaslavskis added the comment:
systeminfo can be option
--
Added file: https://bugs.python.org/file50329/import subprocess.py
___
Python tracker
<https://bugs.python.org/issue45
Alex Zaslavskis added the comment:
That nice idea . So the dist can contain the minimal build required to say that
is for example windows 11 . The simplest solution that came in mind is . Is far
from perfect but it works.
--
Added file: https://bugs.python.org/file50330/main.py
Alex Zaslavskis added the comment:
Beter solution . Using match in python 3.10
--
Added file: https://bugs.python.org/file50331/main.py
___
Python tracker
<https://bugs.python.org/issue45
Alex Zaslavskis added the comment:
On my Win11 it returns me :
C:\Users\Win10Home>wmic os get Caption,Version /value
Caption=Microsoft Windows 11 Home Single Language
Version=10.0.22000
--
___
Python tracker
<https://bugs.python.org/issu
20 matches
Mail list logo