[egenix-users] pyrunning zip files

Paul A. Giannaros paul at giannaros.org
Wed Mar 6 09:50:02 CET 2013


On Tue, Mar 5, 2013 at 7:40 PM, M.-A. Lemburg <mal at egenix.com> wrote:
> On 05.03.2013 19:45, Paul A. Giannaros wrote:
>> CPython >= 2.6 lets you run a script __main__.py within a zip archive
>> foo.zip with:
>>
>>     $ python foo.zip
>>
>> This doesn't work with pyrun:
>>
>>     $ pyrun foo.zip
>>     ...
>>     SyntaxError: Non-ASCII character '\xf1' in file foo.zip on line 2,
>> but no encoding declared; see http://www.python.org/peps/pep-0263.html
>> for details
>>
>>
>> It's a useful feature (it's how we deploy code in the company that I
>> work). Would you please consider adding it?
>
> I'll open a ticket for this. Didn't even know this feature existed :-)

Thanks! Is there somewhere where I can follow its status or is it an
internal tracker?

>
> Apparently, this never got documented apart from the issue in the
> bug tracker and the "What's new" entry:
>
> http://docs.python.org/2/whatsnew/2.6.html?highlight=python%20run%20zip%20files#other-language-changes
>
> ... searching for "__main__.py" returns 0 results. I've also opened
> a ticket on the Python bug tracker for this.
>
> Thanks,
> --
> Marc-Andre Lemburg
> eGenix.com
>
> Professional Python Services directly from the Source  (#1, Mar 05 2013)
>>>> Python Projects, Consulting and Support ...   http://www.egenix.com/
>>>> mxODBC.Zope/Plone.Database.Adapter ...       http://zope.egenix.com/
>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
> ________________________________________________________________________
>
> ::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::
>
>    eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>     D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>            Registered at Amtsgericht Duesseldorf: HRB 46611
>                http://www.egenix.com/company/contact/



More information about the egenix-users mailing list