Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: running python 2 vs 3 Date: Thu, 20 Mar 2014 19:47:10 +0200 Organization: A noiseless patient Spider Lines: 14 Message-ID: <87fvmcn4o1.fsf@elektro.pacujo.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="8497"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19j7mmRnEwwH2oeWiiI5gbd" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:N22xi94D7gyxQV9efGitSSfJH8k= sha1:xyQ+sGIDplXBeLO10EhxuJpeG6U= Xref: csiph.com comp.lang.python:68593 Mark H Harris : > If you wanted to you could run your python scripts from the .pyc file > alone. In other words, you may import as long as the .pyc file exists > and the source does not need to be there. Some folks use this (not > recommended) trick to hide or obfuscate their source from their > users). I've seen it done, but at least in those Python 2 days the pyc format changed between minor releases of Python, so Python itself had to be shipped with the pyc files. Marko