a question
Steven D'Aprano
steve at REMOVETHIScyber.com.au
Sun Jul 3 04:51:07 EDT 2005
On Sun, 03 Jul 2005 03:19:45 -0400, Xinyue Ye wrote:
> 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.
>>> import sys
>>> sys.ps2
'... '
Can you cut and past the relevant lines from your interactive session?
--
Steven.
More information about the Python-list
mailing list