AKF_SDS n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Apr 2013 Posts: 22
|
Posted: Wed May 08, 2013 8:58 pm Post subject: Python hanging when called from a file |
|
|
Python is hanging when invoked from a file.
Code: | [computer src] truss ./test.py
tracing pid 7791
|
No progress is made after this point and the bash prompt is not returned.
./test.py is:
Code: | #!/usr/bin/env python
s = 'test'
print s |
When these are run explicitly from the command prompt there is no problem:
Code: | [computer src] /usr/bin/env python
Python 2.7.2 (default, Aug 30 2011, 13:08:05)
[GCC 4.2.4 (Gentoo 4.2.4-r01.3 p1.1)] on interix3
Type "help", "copyright", "credits" or "license" for more information.
>>> s = 'test'
s = 'test'
>>> print s
print s
test
>>> |
Has anyone encountered this before? What could cause this behavior? |
|