Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread Senthil Kumaran
On Mon, Jan 17, 2011 at 2:03 PM, Mark Summerfield  wrote:
> Hi Georg,
>
> I can't be sure it is a bug, but there is a definite difference of
> behavior between 3.0/3.1 and 3.2rc1.
>
> I can do the relative import with Python 3.0 and 3.1 but not with
> 3.2rc1:

Are you sure that the package that you are trying to import is the
PYTHONPATH of your system's Python 3.0 and Python 3.1
and Not in RC1? Looks to me a PYTHONPATH problem than a problem with rc1.

- I tried to recreate the directory structure that you mentioned and
tried from Graphics.Vector import *
It failed with ImportError on python3, 3.1 and rc.

- Just to test the relative imports, I created a directory structure
as mentioned here: http://www.python.org/dev/peps/pep-0328/
and tried to test the relative import for usecase :- from ..moduleA
import foo and works fine in rc1.

- I also find that your use case (from ..Graphics import XPM in
Graphics/Vector/Svg.py) is not one of the listed ones in PEP-0328.


-- 
Senthil
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problems while using pexpect: pexcept.TIMEOUT always

2009-06-08 Thread Senthil Kumaran
On Jun 8, 10:19 pm, "R. David Murray"  wrote:
> I would suggest using the 'setlog' method of child to get
> more debugging information from pexpect.  I've found that the
> best way to diagnose the source of a timeout.
>

setlog method seems to be deprecated and 'not allowed' too as the help
says.
But, I just figured out with help from another forum (bangpypers) that
I was not closing the ssh session.
so doing child.sendline('logout') and then doing child.read() in my
script worked out.

Thanks,
Senthil
-- 
http://mail.python.org/mailman/listinfo/python-list