Re: what's the reasonale of loghelper() in mathmodule.c

2008-04-10 Thread rockins
On Apr 9, 9:11 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > On Apr 9, 4:38 am,rockins<[EMAIL PROTECTED]> wrote: > > > I cannot understand it well, can anyone explain me why and how > > loghelper() can compute any base logarithm? Or could anyone give me > &

what's the reasonale of loghelper() in mathmodule.c

2008-04-09 Thread rockins
ouble (*func)(double), char *format, PyObject *arg) { .. } I cannot understand it well, can anyone explain me why and how loghelper() can compute any base logarithm? Or could anyone give me some reference(such as, books or papers)? Thanks in advance, -Rockins Chen -- http://mail.python.org/mailman/listinfo/python-list

Re: How to pass shell variable to shell script from python

2008-02-26 Thread Rockins Chen
Clearly, I made some typing mistake, it's the shbang line! it should be: #!/usr/bin/python then, just set os.environ is okay: os.environ["target"] = "localhost.localdomain.org" according python's documentation, setting os.environ will implicitly call os.putenv(). 2

How to pass shell variable to shell script from python

2008-02-26 Thread Rockins Chen
bin/bash echo $target exit 0 But, unluckily, it didn't work. What can I do? TIA, -- BRs, Rockins Chen UESTC, Chengdu, Sichuan, China http://www.dormforce.net/blog/rockins http://rockins.cublog.cn [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list