Massimo Sala added the comment:
I choosed to use the internal variable *concat* because
- if I recollect correctly, it is calculated before successive routines;
- I didn't see your solution (!), there is a very nice computed variable in
front of my eyes.
Mmh
1) Reliability
Cannot be sure
Massimo Sala added the comment:
Sorry I forgot to mention one specific case.
We have valid archives with a starting "blob": digitally signed zip files,
their filename extension is ".zip.p7m".
I agree your tip can be useful to other readers.
Best regards, Sala
On Sat,
Massimo Sala added the comment:
Hi Daniel
Could you please elaborate the advantages of your loop versus my two lines
of code?
I don't grasp...
Thanks, Massimo
On Sat, 18 Apr 2020 at 03:26, Daniel Hillier wrote:
>
> Daniel Hillier added the comment:
>
> Could something si
Massimo Sala added the comment:
Hi Serhiy
Thanks for the suggestion but I don't need to analyse different
self-extraction payloads (and I think it is always unreliable, there are
too many self-extractors in the wild).
I spend two words about my work.
I analyze ZIP archives because the
Massimo Sala added the comment:
On Sat, 18 Apr 2020 at 04:37, Steven D'Aprano
wrote:
If we made an exception for you, then people using Python 2.7 still
couldn't use this feature:
`myzipfile.offset` would fail on code using Python 2.7, 2.7.1, 2.7.2,
2.7.3, ... 2.7.17 and
Massimo Sala added the comment:
Hi Steven
Every software "ecosystem" has its guidelines and I am a newbie about
python development.
Mmh I see your concerns. I agree about your deletions of all py 3 versions
before the latest 3.9.
About Py 2, I remark these facts:
- there ar
Massimo Sala added the comment:
Gavin, zipfile works on all the operating systems where python runs.
Your request is OS dependent... BSD? linux?
The tilde isn't into the ZIP file specifications.
I have to agree with Serhiy: the correct solution is
os.path.expanduser(&qu
Change by Massimo Sala :
--
title: zipfile module: new feature (two lines of code) -> zipfile module: new
feature (two lines of code), useful for test, security and forensics
___
Python tracker
<https://bugs.python.org/issu
New submission from Massimo Sala :
module zipfile
Tag "Components": I am not sure "Library (Lib)" is the correct one. If it
isn't, please fix.
I use python to check zip files against malware.
In these files the are binary blobs outside the ZIP archive.
The malware
Massimo added the comment:
Where is this documented? Sorry, I couldn't find it.
In any case, I'd say this behaviour is quite unexpected, and unless technical
reasons are overwhelming, would be nice to change it.
--
___
Python track
New submission from Massimo :
```
from enum import Enum
class T(Enum):
TEST = 1
print(T["TEST"])
class S(Enum):
TEST = lambda a: a
print(S["TEST"])
```
fails with `KeyError: 'TEST'` on the last line.
--
components: Interpreter Core
messages: 354003
New submission from Massimo Fidanza :
I need to build mod_wsgi under Windows 10 64bit, but I get a linking error
mod_wsgi.obj : error LNK2001: unresolved external symbol
PyOS_AfterFork_Child
build\lib.win-amd64-3.7\mod_wsgi\server\mod_wsgi.cp37-win_amd64.pyd : fatal
error LNK1120: 1
Massimo Paladin added the comment:
Will follow it.
Thanks,
-Massimo
--
resolution: -> works for me
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Massimo Paladin added the comment:
$ cd ~; gdb -args python /tmp/example.py
GNU gdb (GDB) Fedora (7.3.50.20110722-10.fc16)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are f
Massimo Paladin added the comment:
The line which is mentioned in the exception for the file example.py is 7
because I have something commented out which I didn't past in the text before.
--
___
Python tracker
<http://bugs.python.org/is
Massimo Paladin added the comment:
Yes, the expected one:
^CTraceback (most recent call last):
File "/tmp/example.py", line 7, in
p = Popen(args)
File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib64/pytho
New submission from Massimo Paladin :
Here is the behavior I am getting only on Python 2.7.2 in a Fedora 16:
$ cat /tmp/example.py
from subprocess import Popen,PIPE
args = "whatever program".split()
p = Popen(args)
If I run the program with:
$ cd /tmp/; python example.py
I get fo
17 matches
Mail list logo