[Python-Dev] where is the python "import" implemented

2012-12-10 Thread Isml
Hi, everyone,     I am testing modifying the pyc file when it is imported. As I know, there is three situation:     1、runing in the python.exe eg: python.exe test.pyc     in this situation, I find the source on line 1983 in file pythonrun.c     2、import the pyc from a zip file   

[Python-Dev] 回复: where is the python "import" implemented

2012-12-11 Thread Isml
According to your advice, Now I can see my modified log. It's great! Thanks to Antoine and Martin!   Hello,Le Tue, 11 Dec 2012 14:08:27 +0800,"Isml" <76069...@qq.com> a écrit :> Hi, everyone,> I am testing modifying the pyc file when it is imported. As I>

[Python-Dev] compile python 3.3 with bz2 support

2012-12-20 Thread Isml
hi, everyone: I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to do that. Here is how I do it: 1??download bzip2 and compile it(make??make -f Makefile_libbz2_so??make install) 2??chang to python 3.3 source directory : ./configure --with-bz2=/usr/local/include

Re: [Python-Dev] compile python 3.3 with bz2 support

2012-12-20 Thread Isml
OK, thanks -- Original -- From:  "Oleg Broytman"; Date:  Fri, Dec 21, 2012 02:17 PM To:  "Isml"<76069...@qq.com>; Cc:  "python-dev"; Subject:  Re: [Python-Dev] compile python 3.3 with bz2 support Hello.   We ar