harold fellermann <[EMAIL PROTECTED]> writes:
> Hi all,
>
> I have a problem pickling an extension class. As written in the
> Extending/Embedding Manual, I
> provided a function __reduce__ that returns the appropreate tuple.
> This seams to work fine,
> but I still cannot pickle because of the fol
harold fellermann <[EMAIL PROTECTED]> wrote:
...
> Here it goes...:
> OOPS, error (exceptions.ImportError): No module named hyper
So, the __import__ in pickle fails -- indeed, __import__('foo') when
'foo' ``is imported from a subpackage'' is _supposed_ to fail, as
'hyper' is not the name you
On 18.01.2005, at 20:31, Alex Martelli wrote:
harold fellermann <[EMAIL PROTECTED]> wrote:
File "/sw/lib/python2.4/pickle.py", line 760, in save_global
raise PicklingError(
pickle.PicklingError: Can't pickle : it's
not found as hyper.PeriodicGrid
dir(hyper)
['Dir', 'Neighbors', 'PeriodicGri
harold fellermann <[EMAIL PROTECTED]> wrote:
>File "/sw/lib/python2.4/pickle.py", line 760, in save_global
> raise PicklingError(
> pickle.PicklingError: Can't pickle : it's
> not found as hyper.PeriodicGrid
> >>> dir(hyper)
> ['Dir', 'Neighbors', 'PeriodicGrid', 'PeriodicPos', '__doc__
Hi all,
I have a problem pickling an extension class. As written in the
Extending/Embedding Manual, I
provided a function __reduce__ that returns the appropreate tuple. This
seams to work fine,
but I still cannot pickle because of the following error:
>>> from model import hyper
>>> g = hyper.Pe