Re: _namemapper: check error from PyImport_ImportModule
paul jobs <[email protected]>
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
runs without error in python 2.5.2 Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) Type "copyright", "credits" or "license" for more information. IPython 0.8.4 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: import sys In [2]: import Cheetah In [3]: sys.path[:] = ["/foo/bar"] In [4]: import Cheetah._namemapper In [5]: On Sun, Jun 7, 2009 at 3:41 PM, Bogdano Arendartchuk <[email protected]>wrote: > 2009/6/7 R. Tyler Ballance <[email protected]>: > > > > One more thing, this doesn't reproduce the error for me, since the > > 'level' parameter is only passed in 2.6+ when using relative or absolute > > imports. If I run this test on my Python 2.4 sandbox I get no issues > > whatsoever. > > > > Do you have an actual full reproduction case? :/ > > > > Indeed, with Python 2.4 it requires some kind of cheating to reproduce it: > > import sys > import Cheetah > sys.path[:] = ["/foo/bar"] > import Cheetah._namemapper > > -- > Bogdano Arendartchuk > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Cheetahtemplate-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss > -- BidEgg - Worlds best low price Auction site http://bidegg.com ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss