This has nothing to do with the R Pi.
But it does have to do with Python - a language I know next to nothing about.
But I am (and have been for a year or so) a happy user of on specific Python script - called youtube-dl.py (Google it!).
A very nice feature of the youtube-dl.py script is its "auto-update" feature - that is, if you run it (on an Internet connected machine) with the -U option, it will "contact the mother ship" and figure out if there is a new version available, and, if so, download it and replace your copy on disk with the updated version. So, I run it with -U every so often (like once a month), and usually it finds and installs a new version. Usually the file is about 160K in size.
However, today, I did this, and the resulting file was only about 40K size. This struck me as odd, although the programs seemed (in very limited testing!) to work OK. Further inspection showed that the file was no longer a script file. In fact, it looks like this:
#!//usr/local/bin/env python
PK{lots and lots of binary glop}
Aha!, says I. That PK makes it look like a ZIP file. So, I pop the script up in an editor, remove the first line, and save the result. Sure enough, "file" says it is a now a ZIP file. See:
$ unzip -v /tmp/glod
Archive: /tmp/glod
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
24532 Defl:N 7633 69% 07-14-12 08:32 632ca8cc FileDownloader.py
97717 Defl:N 19367 80% 06-30-12 09:42 438204e9 InfoExtractors.py
6816 Defl:N 2349 66% 07-14-12 08:33 f90d7567 PostProcessor.py
20538 Defl:N 6187 70% 06-22-12 07:33 f5d9ab8b __init__.py
108 Defl:N 93 14% 04-14-12 08:02 27cad4c7 __main__.py
10007 Defl:N 3953 61% 06-22-12 07:33 9066c645 utils.py
-------- ------- --- -------
159718 39582 75% 6 files
So, I have several questions about this format change, but I'd like to hear from the python experts first. Is this common? Is this normal? What is going on here?