Loading multiple versions of the same package at the same time

della matteodellamico at gmail.com
Thu Nov 27 06:03:51 EST 2008


On 27 Nov, 11:21, "Diez B. Roggisch" <de... at nospam.web.de> wrote:

> You can't do that. How should python distinguish between the two modules
> with the same name?

That's why I was trying to import them with different names :)

> What you can do is
>
>  - import the old package
>  - unpickle
>  - convert to some neutral exchange format, simple dicts, lists, tuples
>  - pickle that
>
>  - import the new package
>  - unpickle the exchange data
>  - stuff it into the new classes

Thanks, this is what I did.

matteo



More information about the Python-list mailing list