[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-22 Thread Andrei Kulakov
Andrei Kulakov added the comment: Liu: also please delete the quoted text when replying via email, otherwise it's hard to read on the issue page; much thanks! -- ___ Python tracker _

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-22 Thread Xiaolong Liu
Xiaolong Liu added the comment: Andrei: Exactly, different extraction tool gave different results. File no.tool platform 674the built-in tool on Win10win10 674winrarwin10 13997zipwin10 1399360zipwin10 674

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-22 Thread Andrei Kulakov
Andrei Kulakov added the comment: Liu: builtin MacOS archive tool also reports 674. since Google archiver, and built-in tools on all major platforms report 674 files; it looks like 7zip might be the outlier here [note also that 7zip have their own format]. Unless it can be shown that Pyth

[issue44913] segfault in call to embedded PyModule_New

2021-08-22 Thread hai shi
hai shi added the comment: > which can be wrapped within the calls to PyGILState_Ensure/Release. OK, it's a good idea. But I think this enhancement will break the back compatibility. > python is initialized within that entrypoint python is initialized when you run python :) -- type

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-22 Thread Xiaolong Liu
Xiaolong Liu added the comment: Andrei: The zipped file was created by zipfile module of Python. That's the reason I posted it here. I achived more than 2000 files to the abnormal zipped file. And no tool can extract whole files archived within. 7zip got the first part, and other tools g

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not a bug in archivers, it is just a broken archive. The ZIP archive contains a central directory which lists all files in the archive, so the archiver can just read the central directory without reading all archive to get the list of files. There ar

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the zipped file was created by zipfile module of Python, it is a bug. Could you reproduce the sequence of actions that creates such broken archive? -- ___ Python tracker _

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-08-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Defining complex.__complex__ and bytes.__bytes__ would not solve anything, because >>> issubclass(int, SupportsComplex) False >>> issubclass(float, SupportsComplex) False >>> issubclass(bytearray, SupportsBytes) False >>> issubclass(memoryview, SupportsByte

[issue4442] document immutable type subclassing via __new__

2021-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

<    1   2