Python Forum
How to correct, save, run with ptpython
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to correct, save, run with ptpython
#1
Hi all. I am Administrator. With Notepad: I go to correct the error, then I click on "save" icon, then I go to Command Prompt and run with "python Filename".

But with ptpython , where to correct, where to save, where to run.
Beside that , At the bottom, right corner I have "Meta+Enter Execute". What is it ?
Also at the bottom I have "History". I should like to use that, but I don't know how.
Error:
C:\Users\Sylvain λ ptpython >>> class Selfless: ... def __init__(Self, data): ... self.data=data ... def selfless(arg1,arg2): ... return arg1+arg2 ... def normal(self,arg1,arg2): ... return self.data+arg1+arg2 >>> X=Selfless(2) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 3, in __init__ NameError: name 'self' is not defined name 'self' is not defined >>>
Reply


Messages In This Thread
How to correct, save, run with ptpython - by sylas - May-29-2018, 04:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to save to multiple locations during save cubangt 1 601 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  How to handle "History" in ptpython sylas 4 4,057 Oct-07-2018, 11:09 PM
Last Post: Larz60+
  Cannot use functions at the bottom of ptpython sylas 1 2,237 Aug-29-2018, 12:02 PM
Last Post: sylas
  Error in a file and problem with ptpython sylas 7 4,304 Aug-25-2018, 10:17 AM
Last Post: sylas
  ptpython docstring metulburr 4 4,534 Nov-17-2017, 01:36 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020