New submission from Ivan Bykov :
multiprocessing module creates duplicates of .pyc files
in __pycache__ dirs
because subprocess._args_from_interpreter_flags()
ignores "-X pycache_prefix=PATH" option.
--
components: Library (Lib)
messages: 362974
nosy: ivb
priority: norma
New submission from Ivan Bykov :
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>
New submission from Ivan Bykov:
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit
(AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import platform
>>> platform.win32_ver
Ivan Bykov added the comment:
Python 3.5.0b2 (v3.5.0b2:7a088af5615b, May 31 2015, 06:22:19) [MSC v.1900 64
bit (AMD64)] on win32
Type copyright, credits or license() for more information.
import ctypes
ctypes.windll.user32.GetSystemMetrics(1)
1067
#must be 1600
#Python 3.5 also affected
Ivan Bykov added the comment:
SetProcessDpiAwareness not available for Windows 7. For Windows 7 available
SetProcessDPIAware, but:
Note SetProcessDPIAware is subject to a possible *race* *condition* if a DLL
caches dpi settings during initialization. For this reason, it is recommended
Ivan Bykov added the comment:
https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx#declaring_dpi_awareness
assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0
xmlns:asmv3=urn:schemas-microsoft-com:asm.v3
asmv3:application
asmv3:windowsSettings
New submission from Ivan Bykov:
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit
(AMD64)] on win32
Type copyright, credits or license() for more information.
SM_CYSCREEN = 1
from ctypes import windll
GetSystemMetrics = windll.user32.GetSystemMetrics
New submission from Ivan Bykov:
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit
(Intel)] on win32
Type help, copyright, credits or license for more information.
b = b't'
b[0] in [b]
False
u = 't'
u[0] in [u]
True
--
messages: 177817
nosy: ivb
priority
New submission from Ivan Bykov ivan.by...@gmail.com:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on win32
IDLE 2.6.2
import zipfile
new = zipfile.ZipFile('C:\\x', 'w', zipfile.ZIP_DEFLATED)
zi = zipfile.ZipInfo('test',(1,2,3,4,5,6))
new.writestr(zi