Steve Holden wrote:
> oscartheduck wrote:
[...]
>>
> Yes. SyntaxError is raised when the interpreter is compiling the Python
> into byetcodes ready for execution. This *can* happen at run time, but
> usually it's when you are importing a module and so it gets
> transmogrified into an ImportError
Wow. Thanks, everyone, for the responses. It helps a lot having such a
well informed and helpful resource.
--
http://mail.python.org/mailman/listinfo/python-list
On 4 Apr 2007 10:38:24 -0700, oscartheduck <[EMAIL PROTECTED]> wrote:
> I have a small script for doing some ssh stuff for me. I could have
> written it as shell script, but wanted to improve my python skills
> some.
>
> RIght now, I'm not catching a syntax error as I'd like to.
...
> port = input(
(Are you Howard the Duck's lesser known cousin?)
> "oscar" == oscartheduck <[EMAIL PROTECTED]> writes:
oscar> I have a small script for doing some ssh stuff for me. I could
oscar> have written it as shell script, but wanted to improve my python
oscar> skills some.
oscar> RIg
oscartheduck wrote:
> I have a small script for doing some ssh stuff for me. I could have
> written it as shell script, but wanted to improve my python skills
> some.
>
> RIght now, I'm not catching a syntax error as I'd like to.
>
> Here's my code:
>
> #!/usr/bin/env python
> import sys
> impor
"oscartheduck" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|I have a small script for doing some ssh stuff for me. I could have
| written it as shell script, but wanted to improve my python skills
| some.
|
| RIght now, I'm not catching a syntax error as I'd like to.
|
| Here's my
On Apr 4, 12:38 pm, "oscartheduck" <[EMAIL PROTECTED]> wrote:
> I have a small script for doing some ssh stuff for me. I could have
> written it as shell script, but wanted to improve my python skills
> some.
>
> RIght now, I'm not catching a syntax error as I'd like to.
>
> Here's my code:
>
> #!/
I have a small script for doing some ssh stuff for me. I could have
written it as shell script, but wanted to improve my python skills
some.
RIght now, I'm not catching a syntax error as I'd like to.
Here's my code:
#!/usr/bin/env python
import sys
import os
port = input("Please enter a port to