[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python versions and bytecode



On Tue, Mar 05, 2002 at 08:06:38PM +0100, Josselin Mouette wrote:
| Hi,
| 
| as I'm currently packaging solarwolf, I have a question about python
| bytecode. I have put the .py files used by the game in
| /usr/lib/games/solarwolf/ and I compile them in postinst with
| compileall.py. The question is : will the generated .pyc and .pyo files
| still work if the major python version changes ?

No.  The bytecodes change when the developers feel like it (more or
less).  That interface is not constant between even "minor" version
changes.

-D

-- 

The remote desktop feature of Windows XP is really nice (and *novel*!).
As a Microsoft consultant can *remotely* disable the personal firewall
and control the system.  We'll ignore the fact that this tampering with
the firewall is not logged, and more importantly, that the firewall
isn't restored when the clowns from Redmond are done with their job.
                                                            -- bugtraq



Reply to: