When using the python module zipfile, for some reason I don't know I can't set a password for an archive created.
When trying to unzip following empty zip archive, I can do so without prompting a password..
Here is my code, what's wrong?
import zipfile  
with zipfile.ZipFile("1.zip","w") as zip:
    zip.setpassword("1234")