On 4/5/07, Mae <[EMAIL PROTECTED]> wrote:
...
> Is what I'm doing "monkey patching"?  What does "monkey patching"
> mean?  How am I making it difficult for the pickling functions to
> figure out my "type name"?  What should I do to fix it?
>

No, but if your code is that simple and still fails, you have less
work to do to figure out what's going wrong.  ;-)

http://en.wikipedia.org/wiki/Monkey_patching

> Is it possible that running svn update on my directories and
> restarting Apache without deleting all of the old compiled *.pyc files
> first is the "monkey patching" that screws up my server?

Err, I don't -think- so; python is generally smart enough to re-gen
pyc if the py is later, but the python process has to have permissions
to do so...

Why not include deleting *.pyc when you do an svn up, just as a simple test?

> Thanks so much,
> Mae
>
> On Apr 5, 11:50 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> > On 4/5/07, paceman <[EMAIL PROTECTED]> wrote:
> > ...
> >
> > > I wonder if apache prefork reloads modules (maybe psycopg2) that I am
> > > not aware of and that causes the pickling of the object not to work?
> >
> > This would also occur if you were monkey patching classes, I think.
> >
> > Do you have anything that does something like this:
> >
> > import x
> >
> > class Y(object):

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to