This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients alexandre.vassalotti, christian.heimes, gvanrossum
Date 2007-10-14.00:51:49
SpamBayes Score 0.05846291
Marked as misclassified No
Message-id <1192323109.63.0.541678273577.issue1272@psf.upfronthosting.co.za>
In-reply-to
Content
> > Oh. Hm. I still wish that PyCode_New() could just insist that the
> > filename argument is a PyUnicode instance. Why can't it? Perhaps the
> > caller should be fixed instead?

> I'll try.

I figured out the problem -- it came from marshalled old code objects. 
If you throw away all .pyc files the problem goes away.  You can also
get rid of the similar checks for the 'name' argument -- this should
just be a PyUnicode too.  A systematic approach to invalidating all the
.pyc files is updating the magic number in import.c.
History
Date User Action Args
2007-10-14 00:51:49gvanrossumsetspambayes_score: 0.0584629 -> 0.05846291
recipients: + gvanrossum, christian.heimes, alexandre.vassalotti
2007-10-14 00:51:49gvanrossumsetspambayes_score: 0.0584629 -> 0.0584629
messageid: <1192323109.63.0.541678273577.issue1272@psf.upfronthosting.co.za>
2007-10-14 00:51:49gvanrossumlinkissue1272 messages
2007-10-14 00:51:49gvanrossumcreate