Tutorial Chapter 6, item 6.2 - Standard Modules
Trying to see the variables "sys.ps1" and "sys.ps2" raise an error: *>>> import sys>>> sys.ps1Traceback (most recent call last): File "<pyshell#73>", line 1, in <module> sys.ps1AttributeError: module 'sys' has no attribute 'ps1'* https://docs.python.org/3/tutorial/modules.html Att., -- Edilson Vieira +55 21 99245-4633
Hi Edilson, On 5/9/20 5:27 PM, Edilson Vieira wrote:
Trying to see the variables "sys.ps1" and "sys.ps2" raise an error
I tried and it worked for me: $ python3 Python 3.8.2 (default, Mar 27 2020, 15:28:53) [GCC 9.2.1 20200306] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.ps1 '>>> ' >>> sys.ps2 '... ' >>> To investigate further we'll need more information about your environment, first, what's pyshell? Can you see sys.version_info? sys.executable? Bests, -- Julien Palard
Hi Edison, Was it using the IDLE? I can see this bug that might be related: https://bugs.python.org/issue13657 Based on the bug message: IDLE doesn't support nor set sys.ps1 and sys.ps2.
sys.ps1 Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> sys.ps1 AttributeError: 'module' object has no attribute 'ps1'
Kind regards El lun., 11 may. 2020 a las 23:27, Julien Palard via docs (<docs@python.org>) escribió:
Hi Edilson,
On 5/9/20 5:27 PM, Edilson Vieira wrote:
Trying to see the variables "sys.ps1" and "sys.ps2" raise an error
I tried and it worked for me:
$ python3 Python 3.8.2 (default, Mar 27 2020, 15:28:53) [GCC 9.2.1 20200306] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.ps1 '>>> ' >>> sys.ps2 '... ' >>>
To investigate further we'll need more information about your environment, first, what's pyshell? Can you see sys.version_info? sys.executable?
Bests, -- Julien Palard _______________________________________________ docs mailing list -- docs@python.org To unsubscribe send an email to docs-leave@python.org https://mail.python.org/mailman3/lists/docs.python.org/ Member address: raulcumplido@gmail.com
participants (3)
-
Edilson Vieira -
Julien Palard -
Raúl Cumplido