question

Y

yipusi

IDLE 1.0.3
Traceback (most recent call last):
File "<pyshell#1>", line 1, in -toplevel-
sys.ps2
AttributeError: 'module' object has no attribute 'ps2'
where is the problem?

---------- Forwarded message ----------
From: Steven D'Aprano <[email protected]>
To: (e-mail address removed)
Date: Sun, 03 Jul 2005 18:51:07 +1000
Subject: Re: a question
when I type sys.ps2 after import sys,
I got the message like:
Traceback (most recent call last):
File "<pyshell#10>", line 1, in -toplevel-
sys.ps2
AttributeError: 'module' object has no attribute 'ps2'
why does it happen?

It works for me.
'... '

Can you cut and past the relevant lines from your interactive session?
 
M

Michael Hoffman

yipusi said:
IDLE 1.0.3



Traceback (most recent call last):
File "<pyshell#1>", line 1, in -toplevel-
sys.ps2
AttributeError: 'module' object has no attribute 'ps2'


where is the problem?

The problem is that you are using IDLE (and an old version at that),
which doesn't use sys.ps2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,308
Members
47,956
Latest member
AmeeBerger

Latest Threads

Top